summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2011-05-18 19:01:39 +0800
committerLily Zhang <r58066@freescale.com>2011-05-19 11:11:54 +0800
commit845634d76c3425741e0aa4598274659e9dee892a (patch)
tree8b6f384b07c9f487c27d8508b7049b97013c550e /arch
parentbbf3e59476f8e2b2453bd5a90664514ed3568207 (diff)
ENGR00141131-1: MX53_ARD: MLB can't support 1024fs data transfer
Change board file for adding fps_sel function. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx5/mx53_ard.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/mx53_ard.c b/arch/arm/mach-mx5/mx53_ard.c
index c4f36965dce6..c7081be27707 100644
--- a/arch/arm/mach-mx5/mx53_ard.c
+++ b/arch/arm/mach-mx5/mx53_ard.c
@@ -900,9 +900,31 @@ static struct platform_device ard_smsc_lan9220_device = {
.resource = ard_smsc911x_resources,
};
+#define IOMUXC_GPR0_MLBCLK_IN_INV_OFFSET 11
+#define IOMUXGPR0 (IO_ADDRESS(IOMUXC_BASE_ADDR))
+
+static void mlb_fps_sel(int mlbfs)
+{
+ u32 reg;
+
+ switch (mlbfs) {
+ case 1024:
+ reg = readl(IOMUXGPR0);
+
+ reg |= (1 << IOMUXC_GPR0_MLBCLK_IN_INV_OFFSET);
+ writel(reg, IOMUXGPR0);
+ break;
+ case 256:
+ case 512:
+ default:
+ break;
+ }
+}
+
static struct mxc_mlb_platform_data mlb_data = {
.reg_nvcc = NULL,
.mlb_clk = "mlb_clk",
+ .fps_sel = mlb_fps_sel,
};
/* NAND Flash Partitions */