diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-01 22:35:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-15 19:44:36 +0200 |
commit | a029e32d7fd9dd323abfb0d11356a4468bcbce71 (patch) | |
tree | eeaf88aea31d638a9324f460b4b7dee885122b22 /arch/arm/mach-imx/include/mach/imx27-regs.h | |
parent | cff397271278257991705e5c4ecf15c47bd61208 (diff) | |
download | barebox-a029e32d7fd9dd323abfb0d11356a4468bcbce71.tar.gz barebox-a029e32d7fd9dd323abfb0d11356a4468bcbce71.tar.xz |
ARM i.MX: rework bootsource setting
This moves the known i.MX bootsource settings to a single file
so that the code can be shared. Also we add a enum for the different
boot sources so that it can be used in C Code and not only on the shell.
The pcm038 board is changed to use it instead of digging in the registers
manually.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/imx27-regs.h')
-rw-r--r-- | arch/arm/mach-imx/include/mach/imx27-regs.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-imx/include/mach/imx27-regs.h b/arch/arm/mach-imx/include/mach/imx27-regs.h index 5db1a3c3eb..e7372e4646 100644 --- a/arch/arm/mach-imx/include/mach/imx27-regs.h +++ b/arch/arm/mach-imx/include/mach/imx27-regs.h @@ -129,16 +129,6 @@ #define WBCR __REG(MX27_SYSCTRL_BASE_ADDR + 0x1C) /* Well Bias Control Register */ #define DSCR(x) __REG(MX27_SYSCTRL_BASE_ADDR + 0x1C + ((x) << 2)) /* Driving Strength Control Register 1 - 13 */ -#define GPCR_BOOT_SHIFT 16 -#define GPCR_BOOT_MASK (0xf << GPCR_BOOT_SHIFT) -#define GPCR_BOOT_UART_USB 0 -#define GPCR_BOOT_8BIT_NAND_2k 2 -#define GPCR_BOOT_16BIT_NAND_2k 3 -#define GPCR_BOOT_16BIT_NAND_512 4 -#define GPCR_BOOT_16BIT_CS0 5 -#define GPCR_BOOT_32BIT_CS0 6 -#define GPCR_BOOT_8BIT_NAND_512 7 - #include "esdctl.h" /* PLL registers */ |