Skip to content

Commit

Permalink
[ARM] mmp2: add mfpr setting
Browse files Browse the repository at this point in the history
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Haojian Zhuang authored and Eric Miao committed Mar 1, 2010
1 parent 4e3b4da commit 247b459
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-mmp/include/mach/mfp-mmp2.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@
/* Codec*/
#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 */

7 changes: 7 additions & 0 deletions arch/arm/mach-mmp/mmp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@

#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 */
static APBC_CLK(uart1, MMP2_UART1, 1, 26000000);
static APBC_CLK(uart2, MMP2_UART2, 1, 26000000);
Expand Down Expand Up @@ -61,6 +67,7 @@ static int __init mmp2_init(void)
{
if (cpu_is_mmp2()) {
mfp_init_base(MFPR_VIRT_BASE);
mfp_init_addr(mmp2_addr_map);
clks_register(ARRAY_AND_SIZE(mmp2_clkregs));
}

Expand Down

0 comments on commit 247b459

Please sign in to comment.