summaryrefslogtreecommitdiff
path: root/include/configs/rk3036_common.h
diff options
context:
space:
mode:
authorJacob Chen <jacob2.chen@rock-chips.com>2016-09-19 10:46:25 (GMT)
committerSimon Glass <sjg@chromium.org>2016-10-02 00:36:55 (GMT)
commit73a85989713cce45a6999ea4305a5d09f0db25dd (patch)
tree772ee8776610f93b52526ad524fbd4e7464bc48b /include/configs/rk3036_common.h
parentc12777a625544a6ac19c4496d255ff6010f3a8a8 (diff)
downloadu-boot-73a85989713cce45a6999ea4305a5d09f0db25dd.tar.xz
rockchip: move partitons define from 3036-kylin to 3036-common
To keep it same with 3288. Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/rk3036_common.h')
-rw-r--r--include/configs/rk3036_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/rk3036_common.h b/include/configs/rk3036_common.h
index 1b411c0..6ddf0d9 100644
--- a/include/configs/rk3036_common.h
+++ b/include/configs/rk3036_common.h
@@ -79,6 +79,9 @@
#define CONFIG_G_DNL_VENDOR_NUM 0x2207
#define CONFIG_G_DNL_PRODUCT_NUM 0x310a
+/* Enable gpt partition table */
+#define CONFIG_CMD_GPT
+
#include <config_distro_defaults.h>
#define ENV_MEM_LAYOUT_SETTINGS \
@@ -88,6 +91,12 @@
"kernel_addr_r=0x62000000\0" \
"ramdisk_addr_r=0x64000000\0"
+#define CONFIG_RANDOM_UUID
+#define PARTS_DEFAULT \
+ "uuid_disk=${uuid_gpt_disk};" \
+ "name=boot,start=8M,size=64M,bootable,uuid=${uuid_gpt_boot};" \
+ "name=rootfs,size=-,uuid=${uuid_gpt_rootfs};\0" \
+
/* First try to boot from SD (index 0), then eMMC (index 1 */
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \
@@ -99,6 +108,7 @@
* so limit the fdt reallocation to that */
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdt_high=0x7fffffff\0" \
+ "partitions=" PARTS_DEFAULT \
ENV_MEM_LAYOUT_SETTINGS \
BOOTENV
#endif