mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 01/12] tegra: beaver: set hostname in board init
@ 2014-11-03 22:52 Lucas Stach
  2014-11-03 22:52 ` [PATCH 02/12] tegra: jetson-tk1: " Lucas Stach
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Lucas Stach @ 2014-11-03 22:52 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/boards/nvidia-beaver/board.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/nvidia-beaver/board.c b/arch/arm/boards/nvidia-beaver/board.c
index 20707d8..d270301 100644
--- a/arch/arm/boards/nvidia-beaver/board.c
+++ b/arch/arm/boards/nvidia-beaver/board.c
@@ -20,7 +20,7 @@
 #include <i2c/i2c.h>
 #include <init.h>
 
-static int nvidia_beaver_devices_init(void)
+static int nvidia_beaver_fs_init(void)
 {
 	struct i2c_client client;
 	u8 data;
@@ -44,4 +44,15 @@ static int nvidia_beaver_devices_init(void)
 
 	return 0;
 }
-fs_initcall(nvidia_beaver_devices_init);
+fs_initcall(nvidia_beaver_fs_init);
+
+static int nvidia_beaver_device_init(void)
+{
+	if (!of_machine_is_compatible("nvidia,beaver"))
+		return 0;
+
+	barebox_set_hostname("beaver");
+
+	return 0;
+}
+device_initcall(nvidia_beaver_device_init);
-- 
1.9.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-11-04  9:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03 22:52 [PATCH 01/12] tegra: beaver: set hostname in board init Lucas Stach
2014-11-03 22:52 ` [PATCH 02/12] tegra: jetson-tk1: " Lucas Stach
2014-11-03 22:52 ` [PATCH 03/12] tegra: colibri-t20: " Lucas Stach
2014-11-03 22:52 ` [PATCH 04/12] tegra: beaver: switch to upstream Tegra30 dtsi Lucas Stach
2014-11-03 22:52 ` [PATCH 05/12] tegra: beaver: add stdout-path Lucas Stach
2014-11-03 22:52 ` [PATCH 06/12] tegra: colibri-t20: " Lucas Stach
2014-11-03 22:52 ` [PATCH 07/12] tegra: tegra124: add serial alias nodes Lucas Stach
2014-11-03 22:52 ` [PATCH 08/12] tegra: jetson-tk1: add stdout-path Lucas Stach
2014-11-03 22:52 ` [PATCH 09/12] serial: ns16550: enable clock if available Lucas Stach
2014-11-03 22:52 ` [PATCH 10/12] serial: ns16550: add Tegra support Lucas Stach
2014-11-03 22:52 ` [PATCH 11/12] tegra: remove custom UART setup Lucas Stach
2014-11-03 22:52 ` [PATCH 12/12] clk: tegra: don't enable UART clocks by default Lucas Stach
2014-11-04  9:14 ` [PATCH 01/12] tegra: beaver: set hostname in board init Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox