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/mips/boards/dlink-dir-320 | |
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/mips/boards/dlink-dir-320')
-rw-r--r-- | arch/mips/boards/dlink-dir-320/Kconfig | 6 | ||||
-rw-r--r-- | arch/mips/boards/dlink-dir-320/serial.c | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/arch/mips/boards/dlink-dir-320/Kconfig b/arch/mips/boards/dlink-dir-320/Kconfig deleted file mode 100644 index 0393d04530..0000000000 --- a/arch/mips/boards/dlink-dir-320/Kconfig +++ /dev/null @@ -1,6 +0,0 @@ -if BOARD_DLINK_DIR320 - -config BOARDINFO - default "D-Link DIR-320" - -endif diff --git a/arch/mips/boards/dlink-dir-320/serial.c b/arch/mips/boards/dlink-dir-320/serial.c index 099af2057d..bddb6838c9 100644 --- a/arch/mips/boards/dlink-dir-320/serial.c +++ b/arch/mips/boards/dlink-dir-320/serial.c @@ -31,6 +31,9 @@ static struct NS16550_plat serial_plat = { static int dir320_console_init(void) { + barebox_set_model("D-Link DIR-320"); + barebox_set_hostname("dir320"); + /* Register the serial port */ add_ns16550_device(DEVICE_ID_DYNAMIC, DEBUG_LL_UART_ADDR, 8, IORESOURCE_MEM_8BIT, &serial_plat); |