summaryrefslogtreecommitdiff
path: root/include/configs/sun8i.h
diff options
context:
space:
mode:
authorDaniel KochmaƄski <dkochmanski@turtle-solutions.eu>2015-05-26 17:00:42 +0200
committerHans de Goede <hdegoede@redhat.com>2015-05-29 13:46:36 +0200
commitf76eba38b3eda905ff3bdc18dd1240d3dcbc6e5a (patch)
tree56a788b048b1f8121f45ac335fb98ce157c9eb9a /include/configs/sun8i.h
parentd0f4200392515194bf67213165be906e5b9e5748 (diff)
downloadu-boot-f76eba38b3eda905ff3bdc18dd1240d3dcbc6e5a.tar.gz
sunxi/nand: Add support to the SPL for loading u-boot from internal NAND memory
This commit adds support to the sunxi SPL to load u-boot from the internal NAND. Note this only adds support to access the boot partitions to load u-boot, full NAND support to load the kernel, etc. from the nand data partition will come later. Signed-off-by: Roy Spliet <r.spliet@ultimaker.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/configs/sun8i.h')
-rw-r--r--include/configs/sun8i.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/sun8i.h b/include/configs/sun8i.h
index 7111c635c1..cd3375889e 100644
--- a/include/configs/sun8i.h
+++ b/include/configs/sun8i.h
@@ -20,6 +20,12 @@
#define CONFIG_SUNXI_USB_PHYS 2
+#if defined(CONFIG_MACH_SUN8I_A23)
+#define CONFIG_NAND_SUNXI_GPC_PORTS {16, 17, 18}
+#elif defined(CONFIG_MACH_SUN8I_A33)
+#define CONFIG_NAND_SUNXI_GPC_PORTS {16}
+#endif
+
/*
* Include common sunxi configuration where most the settings are
*/