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/pcm037 | |
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/pcm037')
-rw-r--r-- | board/pcm037/pcm037.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/pcm037/pcm037.c b/board/pcm037/pcm037.c index 8f39e42d63..9a94869f71 100644 --- a/board/pcm037/pcm037.c +++ b/board/pcm037/pcm037.c @@ -27,6 +27,7 @@ #include <driver.h> #include <environment.h> #include <asm/arch/imx-regs.h> +#include <asm/armlinux.h> #include <asm/arch/gpio.h> #include <asm/io.h> #include <partition.h> @@ -123,6 +124,9 @@ static int imx31_devices_init(void) register_device(&sdram_dev); + armlinux_set_bootparams((void *)0x08000100); + armlinux_set_architecture(1147); + return 0; } |