From: Joonyoung Shim Date: Fri, 16 Jan 2015 07:59:04 +0000 (+0900) Subject: Odroid-XU3: adjust to support Tizen requirements X-Git-Tag: accepted/tizen/ivi/20160425.094023~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8e8a4825d505fff6de1fd79ccc5241e9dbdc98b;p=platform%2Fkernel%2Fu-boot.git Odroid-XU3: adjust to support Tizen requirements This patch includes changes required to boot Tizen, by varoius authors: arm: exynos5420: Adding support for board_usb_{init|cleanup}() functions Signed-off-by: Joonyoung Shim Signed-off-by: Lukasz Majewski samsung: common: board: call dwc3_uboot_exit() for boards with DWC3 Signed-off-by: Przemyslaw Marczak config: Odroid-XU3: Support DFU download Signed-off-by: Inha Song smdk5420: Add dfu_alt_info settings interface for support DFU download Signed-off-by: Inha Song Signed-off-by: Przemyslaw Marczak config: Odroid-XU3: Enable dwc3 usb gadget Signed-off-by: Joonyoung Shim config: Odroid-XU3: Add default dfu device environment Signed-off-by: Inha Song usb: config: odroid XU3: Enable UMS (Mass Storage) gadget Signed-off-by: Lukasz Majewski Odroid-XU3: Enable check board signature when download bootloader Signed-off-by: Inha Song odroid-xu3: config: add platform autoboot command Signed-off-by: Przemyslaw Marczak Odroid-XU3: Set rootfs device number to 0 Signed-off-by: Inha Song --- diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h index 500f0f9..431c7a5 100644 --- a/include/configs/odroid_xu3.h +++ b/include/configs/odroid_xu3.h @@ -10,11 +10,13 @@ #include "exynos5420-common.h" #include +#include #undef CONFIG_ENV_IS_IN_SPI_FLASH #define CONFIG_IDENT_STRING " for ODROID-XU3" #define CONFIG_BOARD_COMMON +#define CONFIG_SIG #define CONFIG_SYS_SDRAM_BASE 0x40000000 #define CONFIG_SYS_TEXT_BASE 0x43E00000 @@ -80,6 +82,7 @@ /* UMS */ #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 +#define CONFIG_USB_GADGET_MASS_STORAGE #define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_CMD_USB_MASS_STORAGE @@ -87,6 +90,13 @@ #undef CONFIG_EXYNOS_TMU #undef CONFIG_TMU_CMD_DTT +/* Partitions name for Tizen 3.0 */ +#define PARTS_BOOT "boot" +#define PARTS_ROOT "platform" +#define PARTS_DATA "system-data" +#define PARTS_USER "user" +#define PARTS_MODULES "modules" + #define CONFIG_DFU_ALT_SYSTEM \ "uImage fat 0 1;" \ "zImage fat 0 1;" \ @@ -97,8 +107,11 @@ "exynos5422-odroidxu3.dtb fat 0 1;" \ "exynos5422-odroidxu3-lite.dtb fat 0 1;" \ "exynos5422-odroidxu4.dtb fat 0 1;" \ - "boot part 0 1;" \ - "root part 0 2\0" + ""PARTS_BOOT" part 0 1;" \ + ""PARTS_ROOT" part 0 2;" \ + ""PARTS_DATA" part 0 3;" \ + ""PARTS_USER" part 0 5;" \ + ""PARTS_MODULES" part 0 6\0" #define CONFIG_DFU_ALT_BOOT_EMMC \ "u-boot raw 0x3e 0x800 mmcpart 1;" \ @@ -135,7 +148,8 @@ EXYNOS_DEVICE_SETTINGS \ EXYNOS_FDTFILE_SETTING \ MEM_LAYOUT_ENV_SETTINGS \ - BOOTENV \ + PLATFORM_BOOT_INFO \ + "checkboard=\0" \ "bootdelay=0\0" \ "rootfstype=ext4\0" \ "console=" CONFIG_DEFAULT_CONSOLE \ @@ -145,6 +159,9 @@ "mmcrootdev=0\0" \ "mmcbootpart=1\0" \ "mmcrootpart=2\0" \ + "dfu_usb_con=0\0" \ + "dfu_interface=mmc\0" \ + "dfu_device=" __stringify(CONFIG_MMC_DEFAULT_DEV) "\0" \ "dfu_alt_system="CONFIG_DFU_ALT_SYSTEM \ "dfu_alt_info=Autoset by THOR/DFU command run.\0"