summaryrefslogtreecommitdiff
path: root/board/tqc/tqma6/tqma6.c
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@tq-group.com>2017-02-28 16:37:33 +0100
committerStefano Babic <sbabic@denx.de>2017-03-17 09:27:08 +0100
commit468fb1e4dfa805a86ff46b3875d9f6a08b34dbf8 (patch)
tree6aa5ee9d15c821f77a9452dff1c7a0a123986214 /board/tqc/tqma6/tqma6.c
parentd4b349e41ba3f7ade9cde6b9fd96a735c29bfcca (diff)
downloadu-boot-468fb1e4dfa805a86ff46b3875d9f6a08b34dbf8.tar.gz
arm: imx6: tqma6: add support for TQMa6DL variant
This adds support for TQMa6DL using i.MX6DL and 1GiB DRAM Since The module will use the same devicetree, we patch the ram size in ft_board_setup. Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
Diffstat (limited to 'board/tqc/tqma6/tqma6.c')
-rw-r--r--board/tqc/tqma6/tqma6.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/tqc/tqma6/tqma6.c b/board/tqc/tqma6/tqma6.c
index 49917c1d64..fdb0fa11b0 100644
--- a/board/tqc/tqma6/tqma6.c
+++ b/board/tqc/tqma6/tqma6.c
@@ -269,8 +269,15 @@ int checkboard(void)
* Device Tree Support
*/
#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
+#define MODELSTRLEN 32u
int ft_board_setup(void *blob, bd_t *bd)
{
+ char modelstr[MODELSTRLEN];
+
+ snprintf(modelstr, MODELSTRLEN, "TQ %s on %s", tqma6_get_boardname(),
+ tqma6_bb_get_boardname());
+ do_fixup_by_path_string(blob, "/", "model", modelstr);
+ fdt_fixup_memory(blob, (u64)PHYS_SDRAM, (u64)gd->ram_size);
/* bring in eMMC dsr settings */
do_fixup_by_path_u32(blob,
"/soc/aips-bus@02100000/usdhc@02198000",