diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-23 21:30:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-04 15:19:53 +0200 |
commit | 8b88e6dadb60d3aa4beb8c591a5be8b54f9f1fe8 (patch) | |
tree | 3c24995e810c7ae987abb448eb70a3e446534469 /arch/arm/mach-imx/imx27.c | |
parent | fcd2ece1c2421808e43b16d4e4ad270de68b9c0d (diff) | |
download | barebox-8b88e6dadb60d3aa4beb8c591a5be8b54f9f1fe8.tar.gz barebox-8b88e6dadb60d3aa4beb8c591a5be8b54f9f1fe8.tar.xz |
ARM i.MX: Add header file for WEIM cs setup
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/imx27.c')
-rw-r--r-- | arch/arm/mach-imx/imx27.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx27.c b/arch/arm/mach-imx/imx27.c index 76bb910b6b..0c923859b4 100644 --- a/arch/arm/mach-imx/imx27.c +++ b/arch/arm/mach-imx/imx27.c @@ -13,6 +13,7 @@ #include <common.h> #include <mach/imx-regs.h> +#include <mach/weim.h> #include <sizes.h> #include <init.h> #include <io.h> @@ -22,6 +23,14 @@ int imx_silicon_revision(void) return CID >> 28; } +void imx27_setup_weimcs(size_t cs, unsigned upper, unsigned lower, + unsigned additional) +{ + writel(upper, MX27_WEIM_BASE_ADDR + (cs * 0x10) + 0x0); + writel(lower, MX27_WEIM_BASE_ADDR + (cs * 0x10) + 0x4); + writel(additional, MX27_WEIM_BASE_ADDR + (cs * 0x10) + 0x8); +} + /* * Initialize MAX on i.MX27. necessary to give the DMA engine * higher priority to the memory than the CPU. Needed for proper |