9
0
Fork 0

arm: imx53: qsb: set hostname from board file

Otherwise it won't get set in a multiimage build.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2014-03-18 17:29:45 +01:00 committed by Sascha Hauer
parent 298e521b44
commit f20f362a0d
2 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,7 @@ static int loco_late_init(void)
rev = readl(MX53_IIM_BASE_ADDR + 0x878);
set_board_rev(rev);
printf("MCIMX53-START-R board 1.0 rev %c\n", (rev == 1) ? 'A' : 'B' );
barebox_set_hostname("loco-r");
armlinux_set_revision(loco_system_rev);
/* Set VDDGP to 1.25V for 1GHz on SW1 */
mc13xxx_reg_read(mc34708, MC13892_REG_SW_0, &val);
@ -146,6 +147,7 @@ static int loco_late_init(void)
} else {
/* so we have a DA9053 based board */
printf("MCIMX53-START board 1.0\n");
barebox_set_hostname("loco");
armlinux_set_revision(loco_system_rev);
return 0;
}

View File

@ -3,5 +3,4 @@
# board defaults, do not change in running system. Change /env/config
# instead
global.hostname=loco
global.linux.bootargs.base="console=ttymxc0,115200"