PKGBUILDs/alarm/at91bootstrap-arietta/0001-arietta-dtb-name-fix.patch
2015-10-29 04:13:09 +00:00

32 lines
1,019 B
Diff

From 71e4b550ede1e546640056b38d0e93b9d0b20bc3 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sat, 13 Jun 2015 19:37:54 -0600
Subject: [PATCH 1/2] arietta dtb name fix
This sets the dtb name based on RAM size.
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
---
board/at91sam9x5_arietta/at91sam9x5_arietta.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/board/at91sam9x5_arietta/at91sam9x5_arietta.c b/board/at91sam9x5_arietta/at91sam9x5_arietta.c
index 97851eb..eb3bf4a 100644
--- a/board/at91sam9x5_arietta/at91sam9x5_arietta.c
+++ b/board/at91sam9x5_arietta/at91sam9x5_arietta.c
@@ -238,7 +238,11 @@ static void sdcard_set_of_name_board(char *of_name)
{
//unsigned int cpu_board_id = get_cm_sn();
//unsigned int disp_board_id = get_dm_sn();
- strcpy(of_name, "acme-arietta");
+#ifdef CONFIG_RAM_128MB
+ strcpy(of_name, "dtbs/at91-arietta128");
+#else
+ strcpy(of_name, "dtbs/at91-arietta256");
+#endif
strcat(of_name, ".dtb");
}
--
2.6.1