mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
32 lines
1,015 B
Diff
32 lines
1,015 B
Diff
From f5fde76f3bf5e15c3599823f45e5a24dac04a4a6 Mon Sep 17 00:00:00 2001
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
Date: Sat, 13 Jun 2015 19:37:54 -0600
|
|
Subject: [PATCH] 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.4.1
|
|
|