aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/dra7xx_evm.h')
-rw-r--r--include/configs/dra7xx_evm.h59
1 files changed, 6 insertions, 53 deletions
diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
index 436750614a..627bca6e18 100644
--- a/include/configs/dra7xx_evm.h
+++ b/include/configs/dra7xx_evm.h
@@ -12,6 +12,8 @@
12#ifndef __CONFIG_DRA7XX_EVM_H 12#ifndef __CONFIG_DRA7XX_EVM_H
13#define __CONFIG_DRA7XX_EVM_H 13#define __CONFIG_DRA7XX_EVM_H
14 14
15#include <environment/ti/dfu.h>
16
15#define CONFIG_DRA7XX 17#define CONFIG_DRA7XX
16#define CONFIG_BOARD_EARLY_INIT_F 18#define CONFIG_BOARD_EARLY_INIT_F
17 19
@@ -28,7 +30,7 @@
28#define CONFIG_ENV_IS_IN_MMC 30#define CONFIG_ENV_IS_IN_MMC
29#define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */ 31#define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */
30#define CONFIG_ENV_SIZE (128 << 10) 32#define CONFIG_ENV_SIZE (128 << 10)
31#define CONFIG_ENV_OFFSET 0x140000 33#define CONFIG_ENV_OFFSET 0x260000
32#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) 34#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
33#define CONFIG_SYS_REDUNDAND_ENVIRONMENT 35#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
34#endif 36#endif
@@ -54,9 +56,9 @@
54 /* Android partitions */ \ 56 /* Android partitions */ \
55 "partitions_android=" \ 57 "partitions_android=" \
56 "uuid_disk=${uuid_gpt_disk};" \ 58 "uuid_disk=${uuid_gpt_disk};" \
57 "name=xloader,start=128K,size=128K,uuid=${uuid_gpt_xloader};" \ 59 "name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \
58 "name=bootloader,size=768K,uuid=${uuid_gpt_bootloader};" \ 60 "name=bootloader,size=2304K,uuid=${uuid_gpt_bootloader};" \
59 "name=environment,size=128K,uuid=${uuid_gpt_environment};" \ 61 "name=environment,size=256K,uuid=${uuid_gpt_environment};" \
60 "name=misc,size=128K,uuid=${uuid_gpt_misc};" \ 62 "name=misc,size=128K,uuid=${uuid_gpt_misc};" \
61 "name=reserved,size=384K,uuid=${uuid_gpt_reserved};" \ 63 "name=reserved,size=384K,uuid=${uuid_gpt_reserved};" \
62 "name=efs,size=16M,uuid=${uuid_gpt_efs};" \ 64 "name=efs,size=16M,uuid=${uuid_gpt_efs};" \
@@ -74,50 +76,6 @@
74 "name=videodata,size=5K,uuid=${uuid_gpt_videodata};" \ 76 "name=videodata,size=5K,uuid=${uuid_gpt_videodata};" \
75 "name=userdata,size=-,uuid=${uuid_gpt_userdata}" 77 "name=userdata,size=-,uuid=${uuid_gpt_userdata}"
76 78
77#define DFU_ALT_INFO_MMC \
78 "dfu_alt_info_mmc=" \
79 "boot part 0 1;" \
80 "rootfs part 0 2;" \
81 "MLO fat 0 1;" \
82 "MLO.raw raw 0x100 0x100;" \
83 "u-boot.img.raw raw 0x300 0x400;" \
84 "spl-os-args.raw raw 0x80 0x80;" \
85 "spl-os-image.raw raw 0x900 0x2000;" \
86 "spl-os-args fat 0 1;" \
87 "spl-os-image fat 0 1;" \
88 "u-boot.img fat 0 1;" \
89 "uEnv.txt fat 0 1\0"
90
91#define DFU_ALT_INFO_EMMC \
92 "dfu_alt_info_emmc=" \
93 "rawemmc raw 0 3751936;" \
94 "boot part 1 1;" \
95 "rootfs part 1 2;" \
96 "MLO fat 1 1;" \
97 "MLO.raw raw 0x100 0x100;" \
98 "u-boot.img.raw raw 0x300 0x400;" \
99 "spl-os-args.raw raw 0x80 0x80;" \
100 "spl-os-image.raw raw 0x900 0x2000;" \
101 "spl-os-args fat 1 1;" \
102 "spl-os-image fat 1 1;" \
103 "u-boot.img fat 1 1;" \
104 "uEnv.txt fat 1 1\0"
105
106#define DFU_ALT_INFO_RAM \
107 "dfu_alt_info_ram=" \
108 "kernel ram 0x80200000 0x4000000;" \
109 "fdt ram 0x80f80000 0x80000;" \
110 "ramdisk ram 0x81000000 0x4000000\0"
111
112#define DFU_ALT_INFO_QSPI \
113 "dfu_alt_info_qspi=" \
114 "MLO raw 0x0 0x040000;" \
115 "u-boot.img raw 0x040000 0x0100000;" \
116 "u-boot-spl-os raw 0x140000 0x080000;" \
117 "u-boot-env raw 0x1C0000 0x010000;" \
118 "u-boot-env.backup raw 0x1D0000 0x010000;" \
119 "kernel raw 0x1E0000 0x800000\0"
120
121#define DFUARGS \ 79#define DFUARGS \
122 "dfu_bufsiz=0x10000\0" \ 80 "dfu_bufsiz=0x10000\0" \
123 DFU_ALT_INFO_MMC \ 81 DFU_ALT_INFO_MMC \
@@ -148,11 +106,6 @@
148#define CONFIG_SPL_HASH_SUPPORT 106#define CONFIG_SPL_HASH_SUPPORT
149 107
150#ifdef CONFIG_SPL_LOAD_FIT 108#ifdef CONFIG_SPL_LOAD_FIT
151#define DFU_ALT_INFO_RAM \
152 "dfu_alt_info_ram=" \
153 "kernel ram 0x80200000 0x4000000;" \
154 "fdt ram 0x80f80000 0x80000;" \
155 "ramdisk ram 0x81000000 0x4000000\0"
156#define DFUARGS \ 109#define DFUARGS \
157 "dfu_bufsiz=0x10000\0" \ 110 "dfu_bufsiz=0x10000\0" \
158 DFU_ALT_INFO_RAM 111 DFU_ALT_INFO_RAM