diff options
Diffstat (limited to 'firmware/target/arm/imx31/iomuxc-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/iomuxc-imx31.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/iomuxc-imx31.c b/firmware/target/arm/imx31/iomuxc-imx31.c index 876b8b2a9c..412693e221 100644 --- a/firmware/target/arm/imx31/iomuxc-imx31.c +++ b/firmware/target/arm/imx31/iomuxc-imx31.c | |||
@@ -32,8 +32,8 @@ void iomuxc_set_pin_mux(enum IMX31_IOMUXC_PINS pin, | |||
32 | unsigned long index = pin / 4; | 32 | unsigned long index = pin / 4; |
33 | unsigned int shift = 8*(pin % 4); | 33 | unsigned int shift = 8*(pin % 4); |
34 | 34 | ||
35 | imx31_regmod32((unsigned long *)(IOMUXC_BASE_ADDR + 0xc) + index, | 35 | bitmod32((unsigned long *)(IOMUXC_BASE_ADDR + 0xc) + index, |
36 | mux << shift, IOMUXC_MUX_MASK << shift); | 36 | mux << shift, IOMUXC_MUX_MASK << shift); |
37 | } | 37 | } |
38 | 38 | ||
39 | 39 | ||
@@ -45,6 +45,6 @@ void iomuxc_set_pad_config(enum IMX31_IOMUXC_PINS pin, | |||
45 | unsigned long index = padoffs / 3; | 45 | unsigned long index = padoffs / 3; |
46 | unsigned int shift = 10*(padoffs % 3); | 46 | unsigned int shift = 10*(padoffs % 3); |
47 | 47 | ||
48 | imx31_regmod32((unsigned long *)(IOMUXC_BASE_ADDR + 0x154) + index, | 48 | bitmod32((unsigned long *)(IOMUXC_BASE_ADDR + 0x154) + index, |
49 | config << shift, IOMUXC_PAD_MASK << shift); | 49 | config << shift, IOMUXC_PAD_MASK << shift); |
50 | } | 50 | } |