From mboxrd@z Thu Jan 1 00:00:00 1970 From: Franklin S Cooper Jr Date: Thu, 2 Mar 2017 13:04:04 -0600 Subject: [U-Boot] [PATCH 00/31] ARM: k2g: Add support for new K2G ICE EVM. Message-ID: <20170302190435.23212-1-fcooper@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patchset adds support for the new Keystone 2 Industrial Communication Engine board. This patchset includes the introduction of embedded FIT images in U-boot. This creates a FIT image of dtb files that enables board specific code to select which DTB to use at runtime. Initially during boot a generic DTB is required that enables board detection to occur and once it has can later be swapped out for the correct dtb. Franklin S Cooper Jr (28): spl: fit: Break out some functions into a common file boot_fit: Create helper functions that can be used to select DTB out of FIT fdt: Enable selecting correct DTB from append FIT Image ti: common: board_detect: Add function to determine if EEPROM was read dts: Allow OF_LIST to depend on FIT_EMBED arm: dts: Add new "generic" 66AK2Gx device tree file. ti_armv7_keystone2: Define scratch space in SRAM ARM: k2g: Enable TI board detection code board_f: Add new function to allow runtime DTB selection Makefile: Build additional binaries for dtb FIT blobs appended to U-boot ARM: keystone2: Allow to build with all image formats ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards ks2_evm: Add EEPROM based board detection defconfig: keystone2: Enable U-boot runtime DTB detection ARM: keystone2: Add additional fields used for DDR3 configuration ARM: k2g: Program DDR PHY MR2 register with the default value ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables ks2_evm: Add EEPROM based board detection helper functions ARM: k2g: Add pinmux support for K2G ICE evm ARM: k2g: Add DDR3 configuration for K2G ICE evm board: ks2: Use board detection to wrap code not specific to K2G ICE evm ARM: k2g: Use board detection to wrap K2G GP specific calls ARM: k2g: Update board_name u-boot env variable at runtime ARM: dts: k2g: Disable netcp by default ARM: dts: k2g: Add DT support for K2G Industrial Communication Engine evm ARM: k2g: Add K2G ICE DTB to the list of possible DTBs defconfig: k2g_evm_defconfig: Add K2G ICE to OF_LIST Lokesh Vutla (1): ti: common: board_detect: Rename EEPROM scratch start macro Nishanth Menon (1): ti: common: board_detect: Allow settings board detection variables manually Roger Quadros (1): ARM: Use Kconfig for board EEPROM's I2C bus and chip address .gitignore | 1 + Makefile | 18 ++++- arch/arm/dts/Makefile | 4 +- arch/arm/dts/keystone-k2g-evm.dts | 4 ++ arch/arm/dts/keystone-k2g-generic.dts | 21 ++++++ arch/arm/dts/keystone-k2g-ice.dts | 25 +++++++ arch/arm/dts/keystone-k2g-netcp.dtsi | 1 + arch/arm/include/asm/omap_common.h | 8 ++- arch/arm/mach-keystone/Kconfig | 1 + arch/arm/mach-keystone/config.mk | 4 +- arch/arm/mach-keystone/ddr3.c | 35 ++++++++-- arch/arm/mach-keystone/include/mach/ddr3.h | 14 ++++ arch/arm/mach-keystone/include/mach/hardware.h | 3 + board/ti/common/Kconfig | 20 +++++- board/ti/common/board_detect.c | 34 ++++++++++ board/ti/common/board_detect.h | 28 +++++++- board/ti/ks2_evm/Kconfig | 2 + board/ti/ks2_evm/board.c | 21 ++++-- board/ti/ks2_evm/board.h | 21 ++++++ board/ti/ks2_evm/board_k2e.c | 10 +++ board/ti/ks2_evm/board_k2g.c | 93 +++++++++++++++++++++++--- board/ti/ks2_evm/board_k2hk.c | 10 +++ board/ti/ks2_evm/board_k2l.c | 10 +++ board/ti/ks2_evm/ddr3_k2g.c | 78 ++++++++++++++++++++- board/ti/ks2_evm/mux-k2g.h | 45 ++++++++++++- common/Kconfig | 18 +++++ common/Makefile | 2 + common/board_f.c | 3 + common/boot_fit.c | 58 ++++++++++++++++ common/common_fit.c | 86 ++++++++++++++++++++++++ common/spl/spl_fit.c | 76 +-------------------- configs/k2e_evm_defconfig | 3 + configs/k2g_evm_defconfig | 3 + configs/k2hk_evm_defconfig | 3 + configs/k2l_evm_defconfig | 3 + dts/Kconfig | 11 +-- include/boot_fit.h | 9 +++ include/common.h | 4 ++ include/configs/am57xx_evm.h | 4 -- include/configs/dra7xx_evm.h | 4 -- include/configs/k2g_evm.h | 14 +++- include/configs/ti_armv7_keystone2.h | 7 ++ include/image.h | 8 +++ lib/fdtdec.c | 10 +++ 44 files changed, 710 insertions(+), 127 deletions(-) create mode 100644 arch/arm/dts/keystone-k2g-generic.dts create mode 100644 arch/arm/dts/keystone-k2g-ice.dts create mode 100644 common/boot_fit.c create mode 100644 common/common_fit.c create mode 100644 include/boot_fit.h -- 2.10.0