diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-02-26 15:38:37 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-02-26 15:38:37 +0100 |
commit | 8d8f90036628581217e749827c8008dcb78c6cfc (patch) | |
tree | 279c7aac659d47d3862a83c2b3e69ff76067847e /board/imx27ads | |
parent | 066ac7abdbc814d272c294c47b0acc4a642da061 (diff) | |
download | barebox-8d8f90036628581217e749827c8008dcb78c6cfc.tar.gz barebox-8d8f90036628581217e749827c8008dcb78c6cfc.tar.xz |
[ARM] Remove CONFIG_ARCH_NUMBER from Kconfig system. Putting too many
values into kconfig which are not user configurable at all only
encourages people to put even more stuff in there. This is not
good because people tend to have board patches lying around and
these patches won't apply regularly if they all change the same
file (arch/arm/Kconfig)
Instead, introduce a function armlinux_set_architecture() which
everyone can call during board setup.
Similarly introduce armlinux_set_bootparams() for the boot
parameter pointer.
Diffstat (limited to 'board/imx27ads')
-rw-r--r-- | board/imx27ads/imx27ads.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/imx27ads/imx27ads.c b/board/imx27ads/imx27ads.c index bf20ea042a..53905a11dc 100644 --- a/board/imx27ads/imx27ads.c +++ b/board/imx27ads/imx27ads.c @@ -24,6 +24,7 @@ #include <init.h> #include <environment.h> #include <asm/arch/imx-regs.h> +#include <asm/armlinux.h> #include <asm/io.h> #include <fec.h> #include <asm/arch/gpio.h> @@ -136,6 +137,9 @@ static int pcm038_devices_init(void) dev_add_partition(&cfi_dev, 0x20000, 0x20000, PARTITION_FIXED, "env"); dev_protect(&cfi_dev, 0x20000, 0, 1); + armlinux_set_bootparams((void *)0xa0000100); + armlinux_set_architecture(MACH_TYPE_MX27ADS); + return 0; } |