diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-15 09:02:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-16 08:40:55 +0200 |
commit | 068bed22a6154aec1fe689603b8a8eaa27c0f350 (patch) | |
tree | 5cebcbbbcd486ee49552253d27d079b7f6703fd4 /arch/blackfin | |
parent | 774580c2bde4c8b126eed0a80d00cb22cbfb3193 (diff) | |
download | barebox-068bed22a6154aec1fe689603b8a8eaa27c0f350.tar.gz barebox-068bed22a6154aec1fe689603b8a8eaa27c0f350.tar.xz |
Set model and hostname at boardlevel
With multiboard support the compiletime generated BOARDINFO string
gets more and more meaningless. This removes it from Kconfig and
replaces it with a variable that can be set at boardlevel.
Also many boards have a standard setting for the hostname in the
environment. This patch also moves the standard to C code by calling
barebox_set_hostname().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/Kconfig | 3 | ||||
-rw-r--r-- | arch/blackfin/boards/ipe337/ipe337.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index 5d8a2e2a2c..bea9f51e1e 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig @@ -10,9 +10,6 @@ config BLACKFIN config BF561 bool -config BOARDINFO - default "PII IPE337" if MACH_IPE337 - config ARCH_TEXT_BASE hex default 0x00000000 diff --git a/arch/blackfin/boards/ipe337/ipe337.c b/arch/blackfin/boards/ipe337/ipe337.c index 9c1de2cd50..84cc786f85 100644 --- a/arch/blackfin/boards/ipe337/ipe337.c +++ b/arch/blackfin/boards/ipe337/ipe337.c @@ -36,6 +36,9 @@ device_initcall(ipe337_devices_init); static int blackfin_console_init(void) { + barebox_set_model("PII ipe337"); + barebox_set_hostname("ipe337"); + add_generic_device("blackfin_serial", DEVICE_ID_DYNAMIC, NULL, 0, 4096, IORESOURCE_MEM, NULL); @@ -43,4 +46,3 @@ static int blackfin_console_init(void) } console_initcall(blackfin_console_init); - |