ARM: AM335x: Add support for FIT and various platforms
Subsystems (3)
v2 cover ARM: AM335x: Add support for FIT and various platforms
This series adds support for FIT and various AM335x based platforms
Link to v1: https://www.mail-archive.com/u-boot%40lists.denx.de/msg212314.html
Lokesh Vutla (5):
board: am33xx: fit: add support for selecting dtb dynamically
ARM: dts: am335x-bone: Enable uart and timer
ARM: AM335x: Enable FIT
ARM: dts: AM335x-evmsk: Add initial support
ARM: dts: AM335x-BBG: Add initial support
Mugunthan V N (1):
ARM: dts: am335x: fix cd-gpios definition as per hardware design and
dt binding docs
Tom Rini (1):
configs: am335x_evm: Switch to env on FAT SD by default
arch/arm/dts/Makefile | 4 +- arch/arm/dts/am335x-bone-common.dtsi | 8 +- arch/arm/dts/am335x-bone.dts | 3 - arch/arm/dts/am335x-bonegreen.dts | 57 +++ arch/arm/dts/am335x-evm.dts | 2 +- arch/arm/dts/am335x-evmsk.dts | 720 +++++++++++++++++++++++++++++++++++ board/ti/am335x/MAINTAINERS | 1 - board/ti/am335x/board.c | 18 + configs/am335x_evm_defconfig | 17 +- configs/am335x_gp_evm_defconfig | 46 --- include/configs/am335x_evm.h | 40 +- include/dt-bindings/pinctrl/omap.h | 37 ++ 12 files changed, 874 insertions(+), 79 deletions(-) create mode 100644 arch/arm/dts/am335x-bonegreen.dts create mode 100644 arch/arm/dts/am335x-evmsk.dts delete mode 100644 configs/am335x_gp_evm_defconfig
Signature · 1 line
2.8.2
PATCH v2 1/7 board: am33xx: fit: add support for selecting dtb dynamically
FIT allows for a multiple dtb in a single image. SPL needs a way to detect the right dtb to be used. Adding support for the same.
---
Changes since v1:
- None
board/ti/am335x/board.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
board/ti/am335x/board.c +14 -0
@@ -632,3 +632,17 @@ int board_eth_init(bd_t *bis)#endif #endif /* CONFIG_DM_ETH */ + +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match (const char *name) +{ +if (board_is_gp_evm () && !strcmp (name,"am335x-evm" )) +return 0 ; +else if (board_is_bone () && !strcmp (name,"am335x-bone" )) +return 0 ; +else if (board_is_bone_lt () && !strcmp (name,"am335x-boneblack" )) +return 0 ; +else +return -1 ; +} +#endif
Signature · 1 line
2.8.2
PATCH v2 1/7 board: am33xx: fit: add support for selecting dtb dynamically
Quoted 4 lines · Lokesh Vutla
FIT allows for a multiple dtb in a single image. SPL needs a way to detect the right dtb to be used. Adding support for the same.
Signed-off-by Lokesh Vutla <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160516/69d5dbd8/attachment.sig>
PATCH v2 1/7 board: am33xx: fit: add support for selecting dtb dynamically
In reply to Lokesh VutlaQuoted 5 lines · Lokesh Vutla
FIT allows for a multiple dtb in a single image. SPL needs a way to detect the right dtb to be used. Adding support for the same.
Signed-off-by Lokesh Vutla <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/b68544ff/attachment.sig>
PATCH v2 2/7 ARM: dts: am335x-bone: Enable uart and timer
In reply to Lokesh VutlaAllow am335x-bone.dts to be built and enable uart and timer for all beaglebones.
---
Changes since v1:
- None
arch/arm/dts/Makefile | 2 +- arch/arm/dts/am335x-bone-common.dtsi | 5 +++++ arch/arm/dts/am335x-bone.dts | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-)
arch/arm/dts/Makefile +1 -1
@@ -89,7 +89,7 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \ zynqmp-zc1751-xm015-dc1.dtb \ zynqmp-zc1751-xm016-dc2.dtb \ zynqmp-zc1751-xm019-dc5.dtb -dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-evm.dtb +dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb \ am43x-epos-evm.dtb \ am437x-idk-evm.dtb
arch/arm/dts/am335x-bone-common.dtsi +5 -0
@@ -13,6 +13,11 @@ }; }; + chosen { + stdout-path = &uart0; + tick-timer = &timer2; + }; + memory { device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB */
arch/arm/dts/am335x-bone.dts +0 -3
@@ -13,9 +13,6 @@ / { model = "TI AM335x BeagleBone"; compatible = "ti,am335x-bone", "ti,am33xx"; - chosen { - stdout-path = &uart0; - }; }; &ldo3_reg {
Signature · 1 line
2.8.2
PATCH v2 2/7 ARM: dts: am335x-bone: Enable uart and timer
Quoted 5 lines · Lokesh Vutla
Allow
am335x-bone.dtsto be built and enable uart and timer for all beaglebones.Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/70d904ba/attachment.sig>
PATCH v2 3/7 ARM: AM335x: Enable FIT
In reply to Lokesh VutlaUse a single defconfig for all AM335x platforms by enabling FIT
---
Changes since v1:
- Removed am335x_evm_nodt_defconfig
board/ti/am335x/MAINTAINERS | 1 - configs/am335x_evm_defconfig | 17 +++++++++------ configs/am335x_gp_evm_defconfig | 46 ----------------------------------------- 3 files changed, 11 insertions(+), 53 deletions(-) delete mode 100644 configs/am335x_gp_evm_defconfig
board/ti/am335x/MAINTAINERS +0 -1
@@ -6,7 +6,6 @@ F: include/configs/am335x_evm.h F: configs/am335x_boneblack_defconfig F: configs/am335x_boneblack_vboot_defconfig F: configs/am335x_evm_defconfig -F: configs/am335x_gp_evm_defconfig F: configs/am335x_evm_nor_defconfig F: configs/am335x_evm_norboot_defconfig F: configs/am335x_evm_spiboot_defconfig
configs/am335x_evm_defconfig +11 -6
@@ -1,15 +1,11 @@ CONFIG_ARM=y CONFIG_TARGET_AM335X_EVM=y CONFIG_SPL_STACK_R_ADDR=0x82000000 +CONFIG_DEFAULT_DEVICE_TREE="am335x-evm" CONFIG_SPL=y CONFIG_SPL_STACK_R=y -CONFIG_FIT=y CONFIG_SYS_EXTRA_OPTIONS="NAND" CONFIG_HUSH_PARSER=y -CONFIG_AUTOBOOT_KEYED=y -CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n" -CONFIG_AUTOBOOT_DELAY_STR="d" -CONFIG_AUTOBOOT_STOP_STR=" " CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set CONFIG_CMD_ASKENV=y
@@ -30,9 +26,14 @@ CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_OF_CONTROL=y +CONFIG_DM_MMC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_WINBOND=y +CONFIG_DM_ETH=y CONFIG_SYS_NS16550=y +CONFIG_TIMER=y +CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_MUSB_HOST=y CONFIG_USB_MUSB_GADGET=y
@@ -41,4 +42,8 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 -CONFIG_OF_LIBFDT=y +CONFIG_RSA=y +CONFIG_FIT=y +CONFIG_SPL_OF_LIBFDT=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack"
configs/am335x_gp_evm_defconfig deleted +0 -46
46 lines not on this page · raw message
Signature · 1 line
2.8.2
PATCH v2 3/7 ARM: AM335x: Enable FIT
Quoted 3 lines · Lokesh Vutla
Use a single defconfig for all AM335x platforms by enabling FIT
Signed-off-by Lokesh Vutla <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160516/47426c27/attachment.sig>
PATCH v2 3/7 ARM: AM335x: Enable FIT
In reply to Lokesh VutlaQuoted 4 lines · Lokesh Vutla
Use a single defconfig for all AM335x platforms by enabling FIT
Signed-off-by Lokesh Vutla <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/0d20a03d/attachment.sig>
PATCH v2 4/7 ARM: dts: am335x: fix cd-gpios definition as per hardware design and dt binding docs
In reply to Lokesh VutlaFrom: Mugunthan V N <[email protected]>
As per mmc device tree binding documentation card detect gpio has to be active low signal. When a hardware is designed with active high card detect, gpio polarity has to be changed with cd-inverted dt property.
In AM335x the card detect gpio is designed as active low gpio. So correcting the dt card detect gpio definition.
---
Changes since v1:
- None
arch/arm/dts/am335x-bone-common.dtsi | 3 +-- arch/arm/dts/am335x-evm.dts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
arch/arm/dts/am335x-bone-common.dtsi +1 -2
@@ -388,8 +388,7 @@ bus-width = <0x4>; pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; - cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; - cd-inverted; + cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; &aes {
arch/arm/dts/am335x-evm.dts +1 -1
@@ -717,7 +717,7 @@ bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; - cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; &mmc3 {
Signature · 1 line
2.8.2
PATCH v2 4/7 ARM: dts: am335x: fix cd-gpios definition as per hardware design and dt binding docs
Quoted 7 lines · Lokesh Vutla
From: Mugunthan V N <[email protected]>
As per mmc device tree binding documentation card detect gpio has to be active low signal. When a hardware is designed with active high card detect, gpio polarity has to be changed with cd-inverted dt property.
Quoted 5 lines
In AM335x the card detect gpio is designed as active low gpio. So correcting the dt card detect gpio definition.
Reviewed-by Tom Rini <[email protected]>Signed-off-by Mugunthan V N <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/ba5927a5/attachment.sig>
PATCH v2 5/7 ARM: dts: AM335x-evmsk: Add initial support
In reply to Lokesh VutlaAdd initial DTS support for AM335x-evm sk.
---
Changes since v1:
- None
arch/arm/dts/Makefile | 3 +- arch/arm/dts/am335x-evmsk.dts | 720 +++++++++++++++++++++++++++++++++++++ board/ti/am335x/board.c | 2 + configs/am335x_evm_defconfig | 2 +- include/dt-bindings/pinctrl/omap.h | 37 ++ 5 files changed, 762 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/am335x-evmsk.dts
arch/arm/dts/Makefile +2 -1
@@ -89,7 +89,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \ zynqmp-zc1751-xm015-dc1.dtb \ zynqmp-zc1751-xm016-dc2.dtb \ zynqmp-zc1751-xm019-dc5.dtb -dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb +dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb \ + am335x-evmsk.dtb dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb \ am43x-epos-evm.dtb \ am437x-idk-evm.dtb
arch/arm/dts/am335x-evmsk.dts new file +720 -0
720 lines not on this page · raw message
board/ti/am335x/board.c +2 -0
@@ -642,6 +642,8 @@ int board_fit_config_name_match(const char *name)return 0 ; else if (board_is_bone_lt() && !strcmp(name, "am335x-boneblack"))return 0 ; + else if (board_is_evm_sk() && !strcmp(name, "am335x-evmsk")) +return 0 ; else return -1; }
configs/am335x_evm_defconfig +1 -1
@@ -46,4 +46,4 @@ CONFIG_RSA=y CONFIG_FIT=y CONFIG_SPL_OF_LIBFDT=y CONFIG_SPL_LOAD_FIT=y -CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack" +CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk"
include/dt-bindings/pinctrl/omap.h +37 -0
@@ -53,5 +53,42 @@#define PIN_OFF_INPUT_PULLDOWN (OFF_EN | OFF_PULL_EN)#define PIN_OFF_WAKEUPENABLE WAKEUP_EN +/* +* Macros to allow using the absolute physical address instead of the +* padconf registers instead of the offset from padconf base. +*/ +#define OMAP_IOPAD_OFFSET (pa, offset) (((pa) & 0xffff) - (offset)) + +#define OMAP2420_CORE_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x0030) (val) +#define OMAP2430_CORE_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) +#define OMAP3_CORE1_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) +#define OMAP3430_CORE2_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x25d8) (val) +#define OMAP3630_CORE2_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x25a0) (val) +#define OMAP3_WKUP_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x2a00) (val) +#define DM814X_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) +#define DM816X_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) +#define AM33XX_IOPAD (pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) + +/* +* Macros to allow using the offset from the padconf physical address +* instead of the offset from padconf base. +*/ +#define OMAP_PADCONF_OFFSET (offset, base_offset) ((offset) - (base_offset)) + +#define OMAP4_IOPAD (offset, val) OMAP_PADCONF_OFFSET((offset), 0x0040) (val) +#define OMAP5_IOPAD (offset, val) OMAP_PADCONF_OFFSET((offset), 0x0040) (val) + +/* +* Define some commonly used pins configured by the boards. +* Note that some boards use alternative pins, so check +* the schematics before using these. +*/ +#define OMAP3_UART1_RX 0x152 +#define OMAP3_UART2_RX 0x14a +#define OMAP3_UART3_RX 0x16e +#define OMAP4_UART2_RX 0xdc +#define OMAP4_UART3_RX 0x104 +#define OMAP4_UART4_RX 0x11c +#endif
Signature · 1 line
2.8.2
PATCH v2 5/7 ARM: dts: AM335x-evmsk: Add initial support
Quoted 4 lines · Lokesh Vutla
Add initial DTS support for AM335x-evm sk.
Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/fef3ff66/attachment.sig>
PATCH v2 6/7 ARM: dts: AM335x-BBG: Add initial support
In reply to Lokesh VutlaAdd initial DTS support for AM335x-BBG
---
Changes since v1:
- None
arch/arm/dts/Makefile | 3 ++- arch/arm/dts/am335x-bonegreen.dts | 57 +++++++++++++++++++++++++++++++++++++++ board/ti/am335x/board.c | 2 ++ configs/am335x_evm_defconfig | 2 +- 4 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/am335x-bonegreen.dts
arch/arm/dts/Makefile +2 -1
@@ -90,7 +90,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \ zynqmp-zc1751-xm016-dc2.dtb \ zynqmp-zc1751-xm019-dc5.dtb dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb \ - am335x-evmsk.dtb + am335x-evmsk.dtb \ + am335x-bonegreen.dtb dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb \ am43x-epos-evm.dtb \ am437x-idk-evm.dtb
arch/arm/dts/am335x-bonegreen.dts new file +57 -0
57 lines not on this page · raw message
board/ti/am335x/board.c +2 -0
@@ -644,6 +644,8 @@ int board_fit_config_name_match(const char *name)return 0 ; else if (board_is_evm_sk() && !strcmp(name, "am335x-evmsk"))return 0 ; + else if (board_is_bbg1() && !strcmp(name, "am335x-bonegreen")) +return 0 ; else return -1; }
configs/am335x_evm_defconfig +1 -1
@@ -46,4 +46,4 @@ CONFIG_RSA=y CONFIG_FIT=y CONFIG_SPL_OF_LIBFDT=y CONFIG_SPL_LOAD_FIT=y -CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk" +CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen"
Signature · 1 line
2.8.2
PATCH v2 6/7 ARM: dts: AM335x-BBG: Add initial support
Quoted 4 lines · Lokesh Vutla
Add initial DTS support for AM335x-BBG
Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/4843cd8f/attachment.sig>
PATCH v2 7/7 configs: am335x_evm: Switch to env on FAT SD by default
In reply to Lokesh VutlaFrom: Tom Rini <[email protected]>
Re-org env sections so that we can fall back to env is in FAT on SD card, for broader board compatibility
---
Changes since v1:
- None
include/configs/am335x_evm.h | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-)
include/configs/am335x_evm.h +21 -19
@@ -249,11 +249,6 @@"8m(NAND.kernel)," \ "-(NAND.file-system)"#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x000c0000 -#undef CONFIG_ENV_IS_NOWHERE -#define CONFIG_ENV_IS_IN_NAND -#define CONFIG_ENV_OFFSET 0x001c0000 -#define CONFIG_ENV_OFFSET_REDUND 0x001e0000 -#define CONFIG_SYS_ENV_SECT_SIZE CONFIG_SYS_NAND_BLOCK_SIZE/* NAND: SPL related configs */ #ifdef CONFIG_SPL_NAND_SUPPORT #define CONFIG_SPL_NAND_AM33XX_BCH
@@ -415,7 +410,6 @@"128k(u-boot-env2),3464k(kernel)," \ "-(rootfs)"#elif defined(CONFIG_EMMC_BOOT ) -#undef CONFIG_ENV_IS_NOWHERE#define CONFIG_ENV_IS_IN_MMC #define CONFIG_SPL_ENV_SUPPORT #define CONFIG_SYS_MMC_ENV_DEV 1
@@ -423,6 +417,27 @@#define CONFIG_ENV_OFFSET 0x0#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)#define CONFIG_SYS_REDUNDAND_ENVIRONMENT +#elif defined(CONFIG_NOR_BOOT ) +#define CONFIG_ENV_IS_IN_FLASH +#define CONFIG_ENV_SECT_SIZE (128 << 10)/* 128 KiB */ +#define CONFIG_ENV_OFFSET (512 << 10)/* 512 KiB */ +#define CONFIG_ENV_OFFSET_REDUND (768 << 10)/* 768 KiB */ +#define MTDIDS_DEFAULT "nor0=physmap-flash.0" +#define MTDPARTS_DEFAULT "mtdparts=physmap-flash.0:" \ + "512k(u-boot)," \ + "128k(u-boot-env1)," \ + "128k(u-boot-env2)," \ + "4m(kernel),-(rootfs)" +#elif defined(CONFIG_ENV_IS_IN_NAND ) +#define CONFIG_ENV_OFFSET 0x001c0000 +#define CONFIG_ENV_OFFSET_REDUND 0x001e0000 +#define CONFIG_SYS_ENV_SECT_SIZE CONFIG_SYS_NAND_BLOCK_SIZE +#elif !defined(CONFIG_ENV_IS_NOWHERE ) +/* Not NAND, SPI, NOR or eMMC env, so put ENV in a file on FAT */ +#define CONFIG_ENV_IS_IN_FAT +#define FAT_ENV_INTERFACE "mmc" +#define FAT_ENV_DEVICE_AND_PART "0:1" +#define FAT_ENV_FILE "uboot.env"#endif /* SPI flash. */
@@ -458,19 +473,6 @@#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT#define CONFIG_SYS_FLASH_SIZE 0x01000000#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE -/* Reduce SPL size by removing unlikey targets */ -#ifdef CONFIG_NOR_BOOT -#define CONFIG_ENV_IS_IN_FLASH -#define CONFIG_ENV_SECT_SIZE (128 << 10)/* 128 KiB */ -#define CONFIG_ENV_OFFSET (512 << 10)/* 512 KiB */ -#define CONFIG_ENV_OFFSET_REDUND (768 << 10)/* 768 KiB */ -#define MTDIDS_DEFAULT "nor0=physmap-flash.0" -#define MTDPARTS_DEFAULT "mtdparts=physmap-flash.0:" \ - "512k(u-boot)," \ - "128k(u-boot-env1)," \ - "128k(u-boot-env2)," \ - "4m(kernel),-(rootfs)" -#endif #endif /* NOR support */ #endif /* ! __CONFIG_AM335X_EVM_H */
Signature · 1 line
2.8.2
PATCH v2 7/7 configs: am335x_evm: Switch to env on FAT SD by default
Quoted 7 lines · Lokesh Vutla
From: Tom Rini <[email protected]>
Re-org env sections so that we can fall back to env is in FAT on SD card, for broader board compatibility
Signed-off-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/f917e859/attachment.sig>
PATCH v2 7/7 configs: am335x_evm: Switch to env on FAT SD by default
In reply to Lokesh VutlaQuoted 7 lines · Lokesh Vutla
From: Tom Rini <[email protected]>
Re-org env sections so that we can fall back to env is in FAT on SD card, for broader board compatibility
Signed-off-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/d19949f1/attachment.sig>