summaryrefslogtreecommitdiff
path: root/include/configs/sama7g5ek.h
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2020-03-10 12:56:38 +0300
committerEugen Hristev <eugen.hristev@microchip.com>2021-01-07 10:44:15 +0300
commit1d463d6735b8d9ec3342f52acbe9b0c49feeeca2 (patch)
tree9d803b30179036bf15ba620789d1e49bf02b4e56 /include/configs/sama7g5ek.h
parent626879b7946287b22ce800be3b18961dd2c38549 (diff)
downloadu-boot-1d463d6735b8d9ec3342f52acbe9b0c49feeeca2.tar.xz
board: atmel: sama7g5ek: add initial support for sama7g5ek
Add initial support for sama7g5 evaluation kit board. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'include/configs/sama7g5ek.h')
-rw-r--r--include/configs/sama7g5ek.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/include/configs/sama7g5ek.h b/include/configs/sama7g5ek.h
new file mode 100644
index 0000000000..3b3432ba5e
--- /dev/null
+++ b/include/configs/sama7g5ek.h
@@ -0,0 +1,46 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Configuration file for the SAMA7G5EK Board.
+ *
+ * Copyright (C) 2020 Microchip Corporation
+ * Eugen Hristev <eugen.hristev@microchip.com>
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CONFIG_SYS_AT91_SLOW_CLOCK 32768
+#define CONFIG_SYS_AT91_MAIN_CLOCK 24000000 /* from 24 MHz crystal */
+
+/* SDRAM */
+#define CONFIG_SYS_SDRAM_BASE 0x60000000
+#define CONFIG_SYS_SDRAM_SIZE 0x20000000
+
+#ifdef CONFIG_SPL_BUILD
+#define CONFIG_SYS_INIT_SP_ADDR 0x218000
+#else
+#define CONFIG_SYS_INIT_SP_ADDR \
+ (CONFIG_SYS_SDRAM_BASE + 16 * 1024 - GENERATED_GBL_DATA_SIZE)
+#endif
+
+#define CONFIG_SYS_LOAD_ADDR 0x62000000 /* load address */
+
+#undef CONFIG_BOOTCOMMAND
+#ifdef CONFIG_SD_BOOT
+/* u-boot env in sd/mmc card */
+#define FAT_ENV_INTERFACE "mmc"
+#define FAT_ENV_DEVICE_AND_PART "0"
+#define FAT_ENV_FILE "uboot.env"
+/* bootstrap + u-boot + env in sd card */
+#define CONFIG_BOOTCOMMAND "fatload mmc 0:1 0x61000000 at91-sama7g5ek.dtb; " \
+ "fatload mmc 0:1 0x62000000 zImage; " \
+ "bootz 0x62000000 - 0x61000000"
+#undef CONFIG_BOOTARGS
+#define CONFIG_BOOTARGS \
+ "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait"
+#endif
+
+/* Size of malloc() pool */
+#define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024)
+
+#endif