summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/edb93xx/edb93xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/boards/edb93xx/edb93xx.c')
-rw-r--r--arch/arm/boards/edb93xx/edb93xx.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/boards/edb93xx/edb93xx.c b/arch/arm/boards/edb93xx/edb93xx.c
index adfcc16e2d..27ba90abfd 100644
--- a/arch/arm/boards/edb93xx/edb93xx.c
+++ b/arch/arm/boards/edb93xx/edb93xx.c
@@ -83,6 +83,7 @@ device_initcall(ep93xx_devices_init);
static int edb93xx_console_init(void)
{
struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE;
+ char *shortname, *board;
/*
* set UARTBAUD bit to drive UARTs with 14.7456MHz instead of
@@ -98,6 +99,30 @@ static int edb93xx_console_init(void)
writel(0xAA, &syscon->sysswlock);
writel(value, &syscon->devicecfg);
+ if (IS_ENABLED(CONFIG_MACH_EDB9301))
+ shortname = "EDB9301";
+ else if (IS_ENABLED(CONFIG_MACH_EDB9302))
+ shortname = "EDB9302";
+ else if (IS_ENABLED(CONFIG_MACH_EDB9302))
+ shortname = "EDB9302A";
+ else if (IS_ENABLED(CONFIG_MACH_EDB9307))
+ shortname = "EDB9307";
+ else if (IS_ENABLED(CONFIG_MACH_EDB9307A))
+ shortname = "EDB9307A";
+ else if (IS_ENABLED(CONFIG_MACH_EDB9312))
+ shortname = "EDB9312";
+ else if (IS_ENABLED(CONFIG_MACH_EDB9315))
+ shortname = "EDB9315";
+ else if (IS_ENABLED(CONFIG_MACH_EDB9315A))
+ shortname = "EDB9315A";
+ else
+ shortname = "unknown";
+
+ board = asprintf("Cirrus Logic %s", shortname);
+ barebox_set_model(board);
+ free(board);
+ barebox_set_hostname(shortname);
+
add_generic_device("pl010_serial", DEVICE_ID_DYNAMIC, NULL, UART1_BASE, 4096,
IORESOURCE_MEM, NULL);