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/arm/boards/efika-mx-smartbook | |
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/arm/boards/efika-mx-smartbook')
-rw-r--r-- | arch/arm/boards/efika-mx-smartbook/board.c | 2 | ||||
-rw-r--r-- | arch/arm/boards/efika-mx-smartbook/env/config-board | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boards/efika-mx-smartbook/board.c b/arch/arm/boards/efika-mx-smartbook/board.c index 85ff466127..4469f975fb 100644 --- a/arch/arm/boards/efika-mx-smartbook/board.c +++ b/arch/arm/boards/efika-mx-smartbook/board.c @@ -185,6 +185,8 @@ static int efikamx_usb_init(void) if (!of_machine_is_compatible("genesi,imx51-sb")) return 0; + barebox_set_hostname("efikasb"); + gpio_direction_output(GPIO_BLUETOOTH, 0); gpio_direction_output(GPIO_WIFI_ENABLE, 1); gpio_direction_output(GPIO_WIFI_RESET, 0); diff --git a/arch/arm/boards/efika-mx-smartbook/env/config-board b/arch/arm/boards/efika-mx-smartbook/env/config-board index 22993f9c29..bc8e9aadc5 100644 --- a/arch/arm/boards/efika-mx-smartbook/env/config-board +++ b/arch/arm/boards/efika-mx-smartbook/env/config-board @@ -3,7 +3,6 @@ # board defaults, do not change in running system. Change /env/config # instead -global.hostname=efikasb global.linux.bootargs.base="console=ttymxc0,115200" [ -f /env/config ] && /env/config |