Commit 247b4592 authored by Haojian Zhuang's avatar Haojian Zhuang Committed by Eric Miao

[ARM] mmp2: add mfpr setting

Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
parent 4e3b4da9
...@@ -231,6 +231,10 @@ ...@@ -231,6 +231,10 @@
/* Codec*/ /* Codec*/
#define GPIO23_GPIO23 MFP_CFG(GPIO23, AF0) #define GPIO23_GPIO23 MFP_CFG(GPIO23, AF0)
#define GPIO101_GPIO101 MFP_CFG(GPIO101, AF0)
/* PMIC */
#define PMIC_PMIC_INT MFP_CFG(PMIC_INT, AF0)
#endif /* __ASM_MACH_MFP_MMP2_H */ #endif /* __ASM_MACH_MFP_MMP2_H */
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
#define MFPR_VIRT_BASE (APB_VIRT_BASE + 0x1e000) #define MFPR_VIRT_BASE (APB_VIRT_BASE + 0x1e000)
static struct mfp_addr_map mmp2_addr_map[] __initdata = {
MFP_ADDR(PMIC_INT, 0x2c4),
MFP_ADDR_END,
};
/* APB peripheral clocks */ /* APB peripheral clocks */
static APBC_CLK(uart1, MMP2_UART1, 1, 26000000); static APBC_CLK(uart1, MMP2_UART1, 1, 26000000);
static APBC_CLK(uart2, MMP2_UART2, 1, 26000000); static APBC_CLK(uart2, MMP2_UART2, 1, 26000000);
...@@ -61,6 +67,7 @@ static int __init mmp2_init(void) ...@@ -61,6 +67,7 @@ static int __init mmp2_init(void)
{ {
if (cpu_is_mmp2()) { if (cpu_is_mmp2()) {
mfp_init_base(MFPR_VIRT_BASE); mfp_init_base(MFPR_VIRT_BASE);
mfp_init_addr(mmp2_addr_map);
clks_register(ARRAY_AND_SIZE(mmp2_clkregs)); clks_register(ARRAY_AND_SIZE(mmp2_clkregs));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment