[PATCH 7/8] Set model and hostname at boardlevel
Sebastian Hesselbarth
sebastian.hesselbarth at gmail.com
Thu Aug 15 05:07:47 EDT 2013
On 08/15/13 09:29, Sascha Hauer wrote:
> 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 at pengutronix.de>
[...]
> diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
> index 24720d5..b1d148d 100644
> --- a/arch/arm/mach-mvebu/armada-370-xp.c
> +++ b/arch/arm/mach-mvebu/armada-370-xp.c
> @@ -100,6 +100,9 @@ static int armada_370_xp_init_soc(void)
> {
> unsigned long phys_base, phys_size;
>
> + barebox_set_model("Marvell Armada");
Marvell Armada SoC family comprises more than just 370 and XP. I suggest
to name it "Marvell Armada 370/XP" instead. More Armada SoCs may add to
this init, but right now it's only those two.
> + barebox_set_hostname("armada");
No need to change this though.
> +
> armada_370_xp_init_clocks();
> clkdev_add_physbase(tclk, (unsigned int)ARMADA_370_XP_TIMER_BASE, NULL);
> add_generic_device("mvebu-timer", DEVICE_ID_SINGLE, NULL,
> diff --git a/arch/arm/mach-mvebu/kirkwood.c b/arch/arm/mach-mvebu/kirkwood.c
> index 2ec175a..d114675 100644
> --- a/arch/arm/mach-mvebu/kirkwood.c
> +++ b/arch/arm/mach-mvebu/kirkwood.c
> @@ -85,6 +85,9 @@ static int kirkwood_init_soc(void)
> {
> unsigned long phys_base, phys_size;
>
> + barebox_set_model("Marvell kirkwood");
typo s/kirk/Kirk/
> + barebox_set_hostname("kirkwood");
> +
> kirkwood_init_clocks();
> clkdev_add_physbase(tclk, (unsigned int)KIRKWOOD_TIMER_BASE, NULL);
> add_generic_device("orion-timer", DEVICE_ID_SINGLE, NULL,
Also, corresponding changes for Dove are missing (diff below).
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-boardname.dove.diff
Type: text/x-patch
Size: 442 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20130815/c6a7b723/attachment.bin>
More information about the barebox
mailing list