summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2015-01-15 15:28:01 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-16 07:55:16 +0100
commit5d824d7796d069c810616175ed71ac41f58b0fca (patch)
tree61315a424d3700588ec64ef928230cd3ce7d3982
parent0d4160c185cdcca89633a63a375b51685089de69 (diff)
downloadbarebox-5d824d7796d069c810616175ed71ac41f58b0fca.tar.gz
barebox-5d824d7796d069c810616175ed71ac41f58b0fca.tar.xz
ARM: atmel: sama5d4 xplained: correct the name
Correct the function and board name for sama5d4 xplained board. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c b/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c
index fe6876a9eb..62a3c872ed 100644
--- a/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c
+++ b/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c
@@ -245,15 +245,15 @@ static void ek_add_led(void)
static void ek_add_led(void) {}
#endif
-static int sama5d4ek_mem_init(void)
+static int sama5d4_xplained_mem_init(void)
{
at91_add_device_sdram(0);
return 0;
}
-mem_initcall(sama5d4ek_mem_init);
+mem_initcall(sama5d4_xplained_mem_init);
-static const struct devfs_partition sama5d4ek_nand0_partitions[] = {
+static const struct devfs_partition sama5d4_xplained_nand0_partitions[] = {
{
.offset = 0x00000,
.size = SZ_256K,
@@ -283,7 +283,7 @@ static const struct devfs_partition sama5d4ek_nand0_partitions[] = {
}
};
-static int sama5d4ek_devices_init(void)
+static int sama5d4_xplained_devices_init(void)
{
ek_add_device_i2c();
ek_add_device_nand();
@@ -293,27 +293,27 @@ static int sama5d4ek_devices_init(void)
ek_add_device_mci();
ek_add_device_lcdc();
- devfs_create_partitions("nand0", sama5d4ek_nand0_partitions);
+ devfs_create_partitions("nand0", sama5d4_xplained_nand0_partitions);
return 0;
}
-device_initcall(sama5d4ek_devices_init);
+device_initcall(sama5d4_xplained_devices_init);
-static int sama5d4ek_console_init(void)
+static int sama5d4_xplained_console_init(void)
{
- barebox_set_model("Atmel sama5d4ek");
- barebox_set_hostname("sama5d4ek");
+ barebox_set_model("Atmel sama5d4_xplained");
+ barebox_set_hostname("sama5d4_xplained");
at91_register_uart(4, 0);
return 0;
}
-console_initcall(sama5d4ek_console_init);
+console_initcall(sama5d4_xplained_console_init);
-static int sama5d4ek_main_clock(void)
+static int sama5d4_xplained_main_clock(void)
{
at91_set_main_clock(12000000);
return 0;
}
-pure_initcall(sama5d4ek_main_clock);
+pure_initcall(sama5d4_xplained_main_clock);