1
2
3
4
5
6
7#include <common.h>
8#include <asm/io.h>
9
10#include "fsl_epu.h"
11
12
13
14
15void fsl_epu_clean(void *epu_base)
16{
17 u32 offset;
18
19
20
21 for (offset = EPACR0; offset <= EPACR15; offset += EPACR_STRIDE)
22 out_be32(epu_base + offset, 0);
23
24
25 for (offset = EPEVTCR0; offset <= EPEVTCR9; offset += EPEVTCR_STRIDE)
26 out_be32(epu_base + offset, 0);
27
28
29 out_be32(epu_base + EPGCR, 0);
30
31
32 for (offset = EPSMCR0; offset <= EPSMCR15; offset += EPSMCR_STRIDE)
33 out_be32(epu_base + offset, 0);
34
35
36 for (offset = EPCCR0; offset <= EPCCR31; offset += EPCCR_STRIDE)
37 out_be32(epu_base + offset, 0);
38
39
40 for (offset = EPCMPR0; offset <= EPCMPR31; offset += EPCMPR_STRIDE)
41 out_be32(epu_base + offset, 0);
42
43
44 for (offset = EPCTR0; offset <= EPCTR31; offset += EPCTR_STRIDE)
45 out_be32(epu_base + offset, 0);
46
47
48 for (offset = EPIMCR0; offset <= EPIMCR31; offset += EPIMCR_STRIDE)
49 out_be32(epu_base + offset, 0);
50
51
52 out_be32(epu_base + EPXTRIGCR, 0);
53
54
55 for (offset = EPECR0; offset <= EPECR15; offset += EPECR_STRIDE)
56 out_be32(epu_base + offset, 0);
57}
58