summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjino.cho <jino.cho@samsung.com>2016-04-14 16:10:23 +0900
committerjino.cho <jino.cho@samsung.com>2016-04-14 16:27:23 +0900
commite13c186820e1bcdf7134f1d1f3b99b24bfb9d9e9 (patch)
tree976fd5a77b141e38c9d3880d7ea36599e2b0c0b3 /include
parentdf35515c7bf2cd9c527e62337b39ef9bbf07cd33 (diff)
downloadu-boot-artik-e13c186820e1bcdf7134f1d1f3b99b24bfb9d9e9.tar.gz
u-boot-artik-e13c186820e1bcdf7134f1d1f3b99b24bfb9d9e9.tar.bz2
u-boot-artik-e13c186820e1bcdf7134f1d1f3b99b24bfb9d9e9.zip
artik: dfu: add DFU functions
This patch adds DFU functions and DFU informations for the ARTIK devices. set_dfu_alt_info - setting dfu information for the ARTIK devices. get_dfu_alt_system - getting system partition information. get_dfu_alt_boot - getting predefined boot partition information. Change-Id: I4361f75ba6889b86d6c6bb4501c38545c742442a Signed-off-by: jino.cho <jino.cho@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/artik_common.h40
1 files changed, 39 insertions, 1 deletions
diff --git a/include/configs/artik_common.h b/include/configs/artik_common.h
index a7000939c..47f03a372 100644
--- a/include/configs/artik_common.h
+++ b/include/configs/artik_common.h
@@ -277,6 +277,9 @@
#define CONFIG_MODULE_PART 2
#define CONFIG_ROOT_PART 3
+#define CONFIG_SET_DFU_ALT_INFO
+#define CONFIG_SET_DFU_ALT_BUF_LEN (1 << 10) /* 1 KB */
+
#define CONFIG_DFU_ALT_SYSTEM \
"uImage fat 0 1;" \
"zImage fat 0 1;" \
@@ -291,6 +294,38 @@
"system-data part 0 4;" \
"user part 0 5\0"
+#ifdef CONFIG_MACH_ARTIK5
+#define CONFIG_DFU_ALT_BOOT_EMMC \
+ "u-boot raw 0x3e 0x290 mmcpart 1;" \
+ "bl1 raw 0x0 0x1e mmcpart 1;" \
+ "bl2 raw 0x1e 0x20 mmcpart 1;" \
+ "tzsw raw 0x2ce 0x138 mmcpart 1;" \
+ "params raw 0x406 0x20 \0"
+
+#define CONFIG_DFU_ALT_BOOT_SD \
+ "u-boot raw 0x3e 0x290;" \
+ "bl1 raw 0x0 0x1e;" \
+ "bl2 raw 0x1e 0x20;" \
+ "tzsw raw 0x2ce 0x138;" \
+ "params raw 0x406 0x20\0"
+#endif
+
+#ifdef CONFIG_MACH_ARTIK10
+#define CONFIG_DFU_ALT_BOOT_EMMC \
+ "u-boot raw 0x3e 0x290 mmcpart 1;" \
+ "bl1 raw 0x0 0x1e mmcpart 1;" \
+ "bl2 raw 0x1e 0x20 mmcpart 1;" \
+ "tzsw raw 0x2ce 0x200 mmcpart 1;" \
+ "params raw 0x4ce 0x20 \0"
+
+#define CONFIG_DFU_ALT_BOOT_SD \
+ "u-boot raw 0x3e 0x290;" \
+ "bl1 raw 0x0 0x1e;" \
+ "bl2 raw 0x1e 0x20;" \
+ "tzsw raw 0x2ce 0x200;" \
+ "params raw 0x4ce 0x20\0"
+#endif
+
#define PARTS_DEFAULT \
"uuid_disk=${uuid_gpt_disk};" \
"name=boot,start=1MiB,size=" __stringify(CONFIG_BOOT_PART_SIZE) \
@@ -338,7 +373,10 @@
"fdtaddr=40800000\0" \
"initrd_file=uInitrd\0" \
"initrd_addr=43000000\0" \
- "dfu_alt_info=" CONFIG_DFU_ALT_SYSTEM \
+ "dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \
+ "dfu_usb_con=0\0" \
+ "dfu_interface=mmc\0" \
+ "dfu_device=${emmc_dev}\0" \
"sdrecovery=sdfuse format; sdfuse flashall 3\0" \
"factory_load=factory_info load mmc ${emmc_dev} 0x80 0x8\0" \
"factory_save=factory_info save mmc ${emmc_dev} 0x80 0x8\0" \