[U-Boot] [PATCH] board: ks2: README: Update NAND wording

2017-08-09 Thread Franklin S Cooper Jr
Traditional KS2 devices supported NAND via the AEMIF peripheral. However, 66AK2G doesn't use the AEMIF but rather the GPMC for NAND. Therefore, clarify some statements to indicate only certain devices have AEMIF and in other places just say NAND instead of AEMIF NAND Signed-off-by: Frank

Re: [U-Boot] [PATCH] boot_fit: Change return value from FDT_ERROR to -EINVAL in fdt_offset()

2017-08-09 Thread Franklin S Cooper Jr
n value from FDT_ERROR to -EINVAL. > > Signed-off-by: Nobuhiro Iwamatsu > CC: Franklin S Cooper Jr > --- > common/boot_fit.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/boot_fit.c b/common/boot_fit.c > index 51440a6e6f..0a723150b5 1

Re: [U-Boot] [PATCH] boot_fit: Fix warning: overflow in implicit constant conversion in fdt_offset()

2017-08-02 Thread Franklin S Cooper Jr
ff-by: Nobuhiro Iwamatsu > CC: Franklin S Cooper Jr > --- > common/boot_fit.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/boot_fit.c b/common/boot_fit.c > index 51440a6e6f..ca130f2308 100644 > --- a/common/boot_fit.c > +++ b

Re: [U-Boot] [PATCH] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-07-12 Thread Franklin S Cooper Jr
On 07/12/2017 10:20 AM, Jean-Jacques Hiblot wrote: > > > On 12/07/2017 14:58, Jean-Jacques Hiblot wrote: >> >> >> On 10/07/2017 18:34, Franklin S Cooper Jr wrote: >>> >>> On 07/07/2017 10:00 AM, Jean-Jacques Hiblot wrote: >>>> >&

Re: [U-Boot] [PATCH] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-07-10 Thread Franklin S Cooper Jr
On 07/07/2017 10:00 AM, Jean-Jacques Hiblot wrote: > > > On 07/07/2017 16:30, Tom Rini wrote: >> On Fri, Jul 07, 2017 at 01:44:39PM +0200, Jean-Jacques Hiblot wrote: >> >>> u-boot can be embedded within a FIT image with multiple DTBs. It then >>> selects at run-time which one is best suited fo

Re: [U-Boot] [PATCH v4 00/30]

2017-06-16 Thread Franklin S Cooper Jr
Sorry. Somehow I left out the subject from this. I resent just the cover letter with the proper subject. On 06/16/2017 05:25 PM, Franklin S Cooper Jr wrote: > This patchset adds support for the new Keystone 2 Industrial Communication > Engine board. > > This patchset includes the int

[U-Boot] [PATCH v4 22/30] board: ks2: Use board detection to wrap code not specific to K2G ICE evm

2017-06-16 Thread Franklin S Cooper Jr
Some code doesn't apply to K2G ICE evm. Therefore, use board detection to wrap these calls. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/board/ti/ks2_evm/board.c b/

[U-Boot] [PATCH v4 26/30] ARM: dts: keystone-k2g-evm: Add unit address to memory node

2017-06-16 Thread Franklin S Cooper Jr
Upstream Linux has the unit address being added to the various 66AK2Gx boards dts. Therefore, update the dts to mimic this change. Also remove memory node from the base K2G dtsi file. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/dts/keystone-k2g-evm.dts | 5

[U-Boot] [PATCH v4 25/30] ARM: dts: keystone-k2g: Remove skeleton.dtsi

2017-06-16 Thread Franklin S Cooper Jr
which was being included in keystone-k2g.dtsi. Adding a missing node was all that was needed to remove this deprecated dtsi file from the SoC dtsi. With skeleton.dtsi removed the dtc compiler no longer complained about including the unit address for the memory node. Signed-off-by: Franklin S

[U-Boot] [PATCH v4 27/30] ARM: dts: k2g: Disable netcp by default

2017-06-16 Thread Franklin S Cooper Jr
Disable netcp by default like all other peripherals in the dtsi file. Enable the peripheral explicitly in the board specific dts file. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/dts/keystone-k2g-evm.dts| 4 arch/arm/dts/keystone-k2g-netcp.dtsi | 1 + 2

[U-Boot] [PATCH v4 28/30] ARM: dts: k2g: Add DT support for K2G Industrial Communication Engine evm

2017-06-16 Thread Franklin S Cooper Jr
Add basic DT support for K2G ICE evm. Only minimal peripherals are supported to allow console output and MMC boot. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/keystone-k2g-ice-u-boot.dtsi | 19

[U-Boot] [PATCH v4 00/30] ARM: k2g: Add support for new K2G ICE EVM.

2017-06-16 Thread Franklin S Cooper Jr
ed or tweaked. The DT for K2G ICE is based on the version that has been accepted into Linux mainline https://lkml.org/lkml/2017/5/22/28 Franklin S Cooper Jr (29): spl: fit: Break out some functions into a common file boot_fit: Create helper functions that can be used to select DTB out o

[U-Boot] [PATCH v4 24/30] ARM: k2g: Update board_name u-boot env variable at runtime

2017-06-16 Thread Franklin S Cooper Jr
Enable CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to allow "board_name" to be set depending on the board it is being ran on. Update findfdt to use this new dynamic board_name value to determine which dtb should be used. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/

[U-Boot] [PATCH v4 23/30] ARM: k2g: Use board detection to wrap K2G GP specific calls

2017-06-16 Thread Franklin S Cooper Jr
Certain peripherals used by K2G GP aren't used on K2G ICE evm. Or configuration is slightly different. Therefore, use board detection to deal with these variations. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 16 ++-- 1 file ch

[U-Boot] [PATCH v4 19/30] ks2_evm: Add EEPROM based board detection helper functions

2017-06-16 Thread Franklin S Cooper Jr
Add a function that can be used to determine if the board being ran on is a K2G Industrial Communication Engine EVM or K2G General Purpose EVM based on values programmed on the EEPROM. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.h | 20

[U-Boot] [PATCH v4 30/30] defconfig: k2g_evm_defconfig: Add K2G ICE to OF_LIST

2017-06-16 Thread Franklin S Cooper Jr
Include K2G ICE to OF_LIST so it can be used for runtime board detection. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- configs/k2g_evm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig index

[U-Boot] [PATCH v4 17/30] ARM: k2g: Program DDR PHY MR2 register with the default value

2017-06-16 Thread Franklin S Cooper Jr
value. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach-keystone/ddr3.c | 3 +-- board/ti/ks2_evm/ddr3_k2g.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-keystone/ddr3.c b/arch/arm/mach-keystone/ddr3.c index ee8e12e..25a9637 1

[U-Boot] [PATCH v4 20/30] ARM: k2g: Add pinmux support for K2G ICE evm

2017-06-16 Thread Franklin S Cooper Jr
ction runs the proper pinmuxing can be reran to match the board being ran on. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 2 ++ board/ti/ks2_evm/mux-k2g.h | 45 +++- 2 files changed, 46 insertions(+), 1 del

[U-Boot] [PATCH v4 29/30] ARM: k2g: Add K2G ICE DTB to the list of possible DTBs

2017-06-16 Thread Franklin S Cooper Jr
K2G ICE evm will have its own dtb. Therefore, add it to the list of dtbs located in the appended U-boot dtb FIT image. Therefore, when swapping out dtbs K2G ICE boards can grab the correct one. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 2 ++ 1

[U-Boot] [PATCH v4 21/30] ARM: k2g: Add DDR3 configuration for K2G ICE evm

2017-06-16 Thread Franklin S Cooper Jr
Add configuration settings used by the K2G ICE evm. Also use board detection to determine which DDR3 configuration to use. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/ddr3_k2g.c | 62 +++-- 1 file changed, 60 insertions

[U-Boot] [PATCH v4 12/30] ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot

2017-06-16 Thread Franklin S Cooper Jr
S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.c | 7 +++ board/ti/ks2_evm/board_k2g.c | 38 ++ 2 files changed, 45 insertions(+) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 03254e1..4792311 100644 --- a/board

[U-Boot] [PATCH v4 18/30] ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables

2017-06-16 Thread Franklin S Cooper Jr
Different K2G evms may need to program the various KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use the mask and val registers for each KS2_DDRPHY_DATAX_X_OFFSET to properly program the register. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach

[U-Boot] [PATCH v4 13/30] ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards

2017-06-16 Thread Franklin S Cooper Jr
Now with support for U-boot runtime dtb selection each board needs to define board_fit_config_name_match so U-boot can determine what the correct dtb is within the FIT blob. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2e.c | 10 ++ board/ti

[U-Boot] [PATCH v4 16/30] ARM: keystone2: Add additional fields used for DDR3 configuration

2017-06-16 Thread Franklin S Cooper Jr
Future boards will need to configure DDR3 registers in a slightly different manner. Support this by defining additional variables and defines that will be utilized later. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach-keystone/include/mach/ddr3.h | 14

[U-Boot] [PATCH v4 08/30] arm: dts: Add new "generic" 66AK2Gx device tree file.

2017-06-16 Thread Franklin S Cooper Jr
With U-boot runtime board detect for DTB selection a "default" dtb needs to be created. This will be used temporarily until the "proper" dtb is selected. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/dts/Makefile | 3 ++- a

[U-Boot] [PATCH v4 15/30] defconfig: keystone2: Enable U-boot runtime DTB detection

2017-06-16 Thread Franklin S Cooper Jr
Enable various config options to allow U-boot at runtime to select the proper dtb to use from the list of dtb's within the FIT image. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- configs/k2e_evm_defconfig | 3 +++ configs/k2g_evm_defconfig | 3 +++ configs/k2hk_evm_defc

[U-Boot] [PATCH v4 06/30] dts: Allow OF_LIST to depend on FIT_EMBED

2017-06-16 Thread Franklin S Cooper Jr
OF_LIST will be useable by SPL and U-boot. Therefore, update its dependency to allow it to be enable by either SPL or U-boot specific config option. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini Reviewed-by: Lokesh Vutla Acked-by: Andrew F. Davis --- dts/Kconfig | 11

[U-Boot] [PATCH v4 11/30] ARM: keystone2: Allow to build with all image formats

2017-06-16 Thread Franklin S Cooper Jr
u-boot.bin is a copy of: u-boot-fit-dtb.bin if CONFIG_FIT_EMBED is enabled, u-boot-dtb.bin if CONFIG_OF_SEPARATE is enabled, u-boot-nodtb.bin if DT is not enabled. So, use u-boot.bin to to generate keystone images instead of u-boot-dtb.bin Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom

[U-Boot] [PATCH v4 14/30] ks2_evm: Add EEPROM based board detection

2017-06-16 Thread Franklin S Cooper Jr
hasn't ran. Finish board configuration once the board has been identified. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.h | 1 + board/ti/ks2_evm/board_k2g.c | 44 +++- 2 files changed, 24 insertions(+

[U-Boot] [PATCH v4 05/30] ti: common: board_detect: Add function to determine if EEPROM was read

2017-06-16 Thread Franklin S Cooper Jr
EPROM was previously read or not without having to perform a I2C transaction. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/common/board_detect.c | 10 ++ board/ti/common/board_detect.h | 9 + 2 files changed, 19 insertions(+) diff --git a/board/ti/c

[U-Boot] [PATCH v4 09/30] board_f: Add new function to allow runtime DTB selection

2017-06-16 Thread Franklin S Cooper Jr
specific code to run and perform what ever necessary configuration that is needed. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- common/Kconfig | 9 + common/board_f.c | 3 +++ include/common.h | 4 3 files changed, 16 insertions(+) diff --git a/common/Kconfig b

[U-Boot] [PATCH v4 07/30] ARM: dts: k2g: Introduce U-boot specific dtsi file

2017-06-16 Thread Franklin S Cooper Jr
. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/dts/keystone-k2g-evm-u-boot.dtsi | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 arch/arm/dts/keystone-k2g-evm-u-boot.dtsi diff --git a/arch/arm/dts/keystone-k2g-evm-u-boot.dtsi b/arch/arm/dts

[U-Boot] [PATCH v4 10/30] Makefile: Build additional binaries for dtb FIT blobs appended to U-boot

2017-06-16 Thread Franklin S Cooper Jr
Add additional make targets and options for building embedded FIT U-boot images. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- .gitignore | 1 + Makefile | 18 -- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index

[U-Boot] [PATCH v4 02/30] spl: fit: Break out some functions into a common file

2017-06-16 Thread Franklin S Cooper Jr
Some of the functions within spl_fit will be used for non spl purposes. Instead of duplicating functions simply break the functions to be reused into its own file. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- Version 4 changes: Updated to work with

[U-Boot] [PATCH v4 03/30] boot_fit: Create helper functions that can be used to select DTB out of FIT

2017-06-16 Thread Franklin S Cooper Jr
Some platforms may append a FIT image to the U-boot image. This function aids in parsing the FIT image and selecting the correct DTB at runtime. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- Version 4 changes: Updated to work with latest master. Reviewed-bys were left in since

[U-Boot] [PATCH v4 04/30] fdt: Enable selecting correct DTB from appended FIT Image

2017-06-16 Thread Franklin S Cooper Jr
This patch gives U-boot the runtime support to have the board specific code decide which FDT to use. This is especially useful for devices that need this type of runtime determination and also doesn't use SPL. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Lokesh Vutla Reviewed-by: Tom

[U-Boot] [PATCH v4 01/30] ti: common: board_detect: Allow settings board detection variables manually

2017-06-16 Thread Franklin S Cooper Jr
ay also be helpful in certain boot modes where doing i2c reads may be costly and the config supports running only a specific board. Signed-off-by: Nishanth Menon Signed-off-by: Tero Kristo Signed-off-by: Keerthy Signed-off-by: Franklin S Cooper Jr. Reviewed-by: Tom Rini --- board/ti/common/boar

[U-Boot] [PATCH v4 00/30]

2017-06-16 Thread Franklin S Cooper Jr
ed or tweaked. The DT for K2G ICE is based on the version that has been accepted into Linux mainline https://lkml.org/lkml/2017/5/22/28 Franklin S Cooper Jr (29): spl: fit: Break out some functions into a common file boot_fit: Create helper functions that can be used to select DTB out o

[U-Boot] [PATCH] ARM: dts: keystone-k2e-evm: Add U-boot specific dtsi file

2017-06-16 Thread Franklin S Cooper Jr
With Davinci I2C switching to device model, K2E requires U-boot specific device tree entries. This is only required for I2C 1 which is needed extremely early during the boot process. Fixes: 1743d040b1df ("ARM: keystone: Enable DM_I2C by default") Signed-off-by: Franklin S Cooper Jr ---

[U-Boot] [PATCH] ARM: dts: keystone-k2hk-evm: Add U-boot specific dtsi file

2017-06-08 Thread Franklin S Cooper Jr
With Davinci I2C switching to device model, K2HK requires U-boot specific device tree entries. This is only required for I2C 1 which is needed extremely early during the boot process. Fixes: 1743d040b1df ("ARM: keystone: Enable DM_I2C by default") Reported-by: Yan Liu Signed-off-by:

Re: [U-Boot] [PATCH v3 27/30] ARM: dts: k2g: Disable netcp by default

2017-05-26 Thread Franklin S Cooper Jr
On 05/26/2017 01:46 PM, Tom Rini wrote: > On Fri, May 26, 2017 at 01:22:17PM -0500, Franklin S Cooper Jr wrote: >> >> >> On 05/26/2017 01:09 PM, Tom Rini wrote: >>> On Wed, May 24, 2017 at 10:43:07AM -0500, Franklin S Cooper Jr wrote: >>> >>>>

Re: [U-Boot] [PATCH v2 09/30] board_f: Add new function to allow runtime DTB selection

2017-05-26 Thread Franklin S Cooper Jr
On 05/26/2017 03:08 AM, Lothar Waßmann wrote: > Franklin S Cooper Jr wrote: > >> Runtime U-boot dtb selection is generally a two step process. First step >> is to simply use an initial generic dtb. The second step is to select >> the dtb and perhaps execute additiona

Re: [U-Boot] [PATCH v3 27/30] ARM: dts: k2g: Disable netcp by default

2017-05-26 Thread Franklin S Cooper Jr
On 05/26/2017 01:09 PM, Tom Rini wrote: > On Wed, May 24, 2017 at 10:43:07AM -0500, Franklin S Cooper Jr wrote: > >> Disable netcp by default like all other peripherals in the dtsi file. >> Enable the peripheral explicitly in the board specific dts file. >> >> Si

[U-Boot] [PATCH v3 25/30] ARM: dts: keystone-k2g: Remove skeleton.dtsi

2017-05-24 Thread Franklin S Cooper Jr
which was being included in keystone-k2g.dtsi. Adding a missing node was all that was needed to remove this deprecated dtsi file from the SoC dtsi. With skeleton.dtsi removed the dtc compiler no longer complained about including the unit address for the memory node. Signed-off-by: Franklin S

[U-Boot] [PATCH v3 28/30] ARM: dts: k2g: Add DT support for K2G Industrial Communication Engine evm

2017-05-24 Thread Franklin S Cooper Jr
Add basic DT support for K2G ICE evm. Only minimal peripherals are supported to allow console output and MMC boot. Signed-off-by: Franklin S Cooper Jr --- Version 2 changes: Updated the dts to mimic version accepted into the Linux kernel. arch/arm/dts/Makefile | 3

[U-Boot] [PATCH v3 13/30] ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards

2017-05-24 Thread Franklin S Cooper Jr
Now with support for U-boot runtime dtb selection each board needs to define board_fit_config_name_match so U-boot can determine what the correct dtb is within the FIT blob. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2e.c | 10 ++ board/ti

[U-Boot] [PATCH v3 11/30] ARM: keystone2: Allow to build with all image formats

2017-05-24 Thread Franklin S Cooper Jr
u-boot.bin is a copy of: u-boot-fit-dtb.bin if CONFIG_FIT_EMBED is enabled, u-boot-dtb.bin if CONFIG_OF_SEPARATE is enabled, u-boot-nodtb.bin if DT is not enabled. So, use u-boot.bin to to generate keystone images instead of u-boot-dtb.bin Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom

[U-Boot] [PATCH v3 22/30] board: ks2: Use board detection to wrap code not specific to K2G ICE evm

2017-05-24 Thread Franklin S Cooper Jr
Some code doesn't apply to K2G ICE evm. Therefore, use board detection to wrap these calls. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/board/ti/ks2_evm/board.c b/

[U-Boot] [PATCH v3 18/30] ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables

2017-05-24 Thread Franklin S Cooper Jr
Different K2G evms may need to program the various KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use the mask and val registers for each KS2_DDRPHY_DATAX_X_OFFSET to properly program the register. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach

[U-Boot] [PATCH v3 19/30] ks2_evm: Add EEPROM based board detection helper functions

2017-05-24 Thread Franklin S Cooper Jr
Add a function that can be used to determine if the board being ran on is a K2G Industrial Communication Engine EVM or K2G General Purpose EVM based on values programmed on the EEPROM. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.h | 20

[U-Boot] [PATCH v3 21/30] ARM: k2g: Add DDR3 configuration for K2G ICE evm

2017-05-24 Thread Franklin S Cooper Jr
Add configuration settings used by the K2G ICE evm. Also use board detection to determine which DDR3 configuration to use. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/ddr3_k2g.c | 62 +++-- 1 file changed, 60 insertions

[U-Boot] [PATCH v3 17/30] ARM: k2g: Program DDR PHY MR2 register with the default value

2017-05-24 Thread Franklin S Cooper Jr
value. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach-keystone/ddr3.c | 3 +-- board/ti/ks2_evm/ddr3_k2g.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-keystone/ddr3.c b/arch/arm/mach-keystone/ddr3.c index ee8e12e..25a9637 1

[U-Boot] [PATCH v3 12/30] ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot

2017-05-24 Thread Franklin S Cooper Jr
S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.c | 7 +++ board/ti/ks2_evm/board_k2g.c | 38 ++ 2 files changed, 45 insertions(+) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 03254e1..4792311 100644 --- a/board

[U-Boot] [PATCH v3 29/30] ARM: k2g: Add K2G ICE DTB to the list of possible DTBs

2017-05-24 Thread Franklin S Cooper Jr
K2G ICE evm will have its own dtb. Therefore, add it to the list of dtbs located in the appended U-boot dtb FIT image. Therefore, when swapping out dtbs K2G ICE boards can grab the correct one. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 2 ++ 1

[U-Boot] [PATCH v3 23/30] ARM: k2g: Use board detection to wrap K2G GP specific calls

2017-05-24 Thread Franklin S Cooper Jr
Certain peripherals used by K2G GP aren't used on K2G ICE evm. Or configuration is slightly different. Therefore, use board detection to deal with these variations. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 16 ++-- 1 file ch

[U-Boot] [PATCH v3 05/30] ti: common: board_detect: Add function to determine if EEPROM was read

2017-05-24 Thread Franklin S Cooper Jr
EPROM was previously read or not without having to perform a I2C transaction. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/common/board_detect.c | 10 ++ board/ti/common/board_detect.h | 9 + 2 files changed, 19 insertions(+) diff --git a/board/ti/c

[U-Boot] [PATCH v3 30/30] defconfig: k2g_evm_defconfig: Add K2G ICE to OF_LIST

2017-05-24 Thread Franklin S Cooper Jr
Include K2G ICE to OF_LIST so it can be used for runtime board detection. Signed-off-by: Franklin S Cooper Jr --- configs/k2g_evm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig index 7b105da..a5639ea 100644

[U-Boot] [PATCH v3 24/30] ARM: k2g: Update board_name u-boot env variable at runtime

2017-05-24 Thread Franklin S Cooper Jr
Enable CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to allow "board_name" to be set depending on the board it is being ran on. Update findfdt to use this new dynamic board_name value to determine which dtb should be used. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/

[U-Boot] [PATCH v3 15/30] defconfig: keystone2: Enable U-boot runtime DTB detection

2017-05-24 Thread Franklin S Cooper Jr
Enable various config options to allow U-boot at runtime to select the proper dtb to use from the list of dtb's within the FIT image. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- configs/k2e_evm_defconfig | 3 +++ configs/k2g_evm_defconfig | 3 +++ configs/k2hk_evm_defc

[U-Boot] [PATCH v3 27/30] ARM: dts: k2g: Disable netcp by default

2017-05-24 Thread Franklin S Cooper Jr
Disable netcp by default like all other peripherals in the dtsi file. Enable the peripheral explicitly in the board specific dts file. Signed-off-by: Franklin S Cooper Jr --- arch/arm/dts/keystone-k2g-evm.dts| 4 arch/arm/dts/keystone-k2g-netcp.dtsi | 1 + 2 files changed, 5 insertions

[U-Boot] [PATCH v3 06/30] dts: Allow OF_LIST to depend on FIT_EMBED

2017-05-24 Thread Franklin S Cooper Jr
OF_LIST will be useable by SPL and U-boot. Therefore, update its dependency to allow it to be enable by either SPL or U-boot specific config option. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini Reviewed-by: Lokesh Vutla Acked-by: Andrew F. Davis --- dts/Kconfig | 11

[U-Boot] [PATCH v3 20/30] ARM: k2g: Add pinmux support for K2G ICE evm

2017-05-24 Thread Franklin S Cooper Jr
ction runs the proper pinmuxing can be reran to match the board being ran on. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 2 ++ board/ti/ks2_evm/mux-k2g.h | 45 +++- 2 files changed, 46 insertions(+), 1 del

[U-Boot] [PATCH v3 26/30] ARM: dts: keystone-k2g-evm: Add unit address to memory node

2017-05-24 Thread Franklin S Cooper Jr
Upstream Linux has the unit address being added to the various 66AK2Gx boards dts. Therefore, update the dts to mimic this change. Also remove memory node from the base K2G dtsi file. Signed-off-by: Franklin S Cooper Jr --- Version 2 changes: This patch attempts to get the dts closer to what is

[U-Boot] [PATCH v3 08/30] arm: dts: Add new "generic" 66AK2Gx device tree file.

2017-05-24 Thread Franklin S Cooper Jr
With U-boot runtime board detect for DTB selection a "default" dtb needs to be created. This will be used temporarily until the "proper" dtb is selected. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- Version 2 changes: Added keystone-k2g-generic-u-boot.dtsi

[U-Boot] [PATCH v3 09/30] board_f: Add new function to allow runtime DTB selection

2017-05-24 Thread Franklin S Cooper Jr
specific code to run and perform what ever necessary configuration that is needed. Signed-off-by: Franklin S Cooper Jr --- Version 3 changes: Dropped default n common/Kconfig | 9 + common/board_f.c | 3 +++ include/common.h | 4 3 files changed, 16 insertions(+) diff --git a

[U-Boot] [PATCH v3 10/30] Makefile: Build additional binaries for dtb FIT blobs appended to U-boot

2017-05-24 Thread Franklin S Cooper Jr
Add additional make targets and options for building embedded FIT U-boot images. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- .gitignore | 1 + Makefile | 18 -- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index

[U-Boot] [PATCH v3 03/30] boot_fit: Create helper functions that can be used to select DTB out of FIT

2017-05-24 Thread Franklin S Cooper Jr
Some platforms may append a FIT image to the U-boot image. This function aids in parsing the FIT image and selecting the correct DTB at runtime. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- common/Kconfig | 7 +++ common/Makefile| 1 + common/boot_fit.c | 58

[U-Boot] [PATCH v3 14/30] ks2_evm: Add EEPROM based board detection

2017-05-24 Thread Franklin S Cooper Jr
hasn't ran. Finish board configuration once the board has been identified. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.h | 1 + board/ti/ks2_evm/board_k2g.c | 44 +++- 2 files changed, 24 insertions(+

[U-Boot] [PATCH v3 16/30] ARM: keystone2: Add additional fields used for DDR3 configuration

2017-05-24 Thread Franklin S Cooper Jr
Future boards will need to configure DDR3 registers in a slightly different manner. Support this by defining additional variables and defines that will be utilized later. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach-keystone/include/mach/ddr3.h | 14

[U-Boot] [PATCH v3 07/30] ARM: dts: k2g: Introduce U-boot specific dtsi file

2017-05-24 Thread Franklin S Cooper Jr
. Signed-off-by: Franklin S Cooper Jr --- arch/arm/dts/keystone-k2g-evm-u-boot.dtsi | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 arch/arm/dts/keystone-k2g-evm-u-boot.dtsi diff --git a/arch/arm/dts/keystone-k2g-evm-u-boot.dtsi b/arch/arm/dts/keystone-k2g-evm-u

[U-Boot] [PATCH v3 01/30] ti: common: board_detect: Allow settings board detection variables manually

2017-05-24 Thread Franklin S Cooper Jr
ay also be helpful in certain boot modes where doing i2c reads may be costly and the config supports running only a specific board. Signed-off-by: Nishanth Menon Signed-off-by: Tero Kristo Signed-off-by: Keerthy Signed-off-by: Franklin S Cooper Jr. --- board/ti/common/board_det

[U-Boot] [PATCH v3 02/30] spl: fit: Break out some functions into a common file

2017-05-24 Thread Franklin S Cooper Jr
Some of the functions within spl_fit will be used for non spl purposes. Instead of duplicating functions simply break the functions to be reused into its own file. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- common/Makefile | 1 + common

[U-Boot] [PATCH v3 04/30] fdt: Enable selecting correct DTB from appended FIT Image

2017-05-24 Thread Franklin S Cooper Jr
This patch gives U-boot the runtime support to have the board specific code decide which FDT to use. This is especially useful for devices that need this type of runtime determination and also doesn't use SPL. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Lokesh Vutla Reviewed-by: Tom

[U-Boot] [PATCH v3 00/30] ARM: k2g: Add support for new K2G ICE EVM.

2017-05-24 Thread Franklin S Cooper Jr
upstream already. The addition davinci i2c device model in upstream resulted in some patches having to be added or tweaked. The DT for K2G ICE is based on the version that has been accepted into Linux mainline https://lkml.org/lkml/2017/5/22/28 Franklin S Cooper Jr (29): spl: fit: Break out some

Re: [U-Boot] [PATCH v2 09/30] board_f: Add new function to allow runtime DTB selection

2017-05-24 Thread Franklin S Cooper Jr
On 05/23/2017 12:42 PM, Franklin S Cooper Jr wrote: > Runtime U-boot dtb selection is generally a two step process. First step > is to simply use an initial generic dtb. The second step is to select > the dtb and perhaps execute additional code ones U-boot knows what board > it i

[U-Boot] [PATCH v2 29/30] ARM: k2g: Add K2G ICE DTB to the list of possible DTBs

2017-05-23 Thread Franklin S Cooper Jr
K2G ICE evm will have its own dtb. Therefore, add it to the list of dtbs located in the appended U-boot dtb FIT image. Therefore, when swapping out dtbs K2G ICE boards can grab the correct one. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 2 ++ 1

[U-Boot] [PATCH v2 28/30] ARM: dts: k2g: Add DT support for K2G Industrial Communication Engine evm

2017-05-23 Thread Franklin S Cooper Jr
Add basic DT support for K2G ICE evm. Only minimal peripherals are supported to allow console output and MMC boot. Signed-off-by: Franklin S Cooper Jr --- Version 2 changes: Updated to the dts recently accepted into the Linux kernel. arch/arm/dts/Makefile | 3 ++- arch/arm

[U-Boot] [PATCH v2 20/30] ARM: k2g: Add pinmux support for K2G ICE evm

2017-05-23 Thread Franklin S Cooper Jr
ction runs the proper pinmuxing can be reran to match the board being ran on. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 2 ++ board/ti/ks2_evm/mux-k2g.h | 45 +++- 2 files changed, 46 insertions(+), 1 del

[U-Boot] [PATCH v2 23/30] ARM: k2g: Use board detection to wrap K2G GP specific calls

2017-05-23 Thread Franklin S Cooper Jr
Certain peripherals used by K2G GP aren't used on K2G ICE evm. Or configuration is slightly different. Therefore, use board detection to deal with these variations. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2g.c | 16 ++-- 1 file ch

[U-Boot] [PATCH v2 04/30] fdt: Enable selecting correct DTB from appended FIT Image

2017-05-23 Thread Franklin S Cooper Jr
This patch gives U-boot the runtime support to have the board specific code decide which FDT to use. This is especially useful for devices that need this type of runtime determination and also doesn't use SPL. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Lokesh Vutla Reviewed-by: Tom

[U-Boot] [PATCH v2 30/30] defconfig: k2g_evm_defconfig: Add K2G ICE to OF_LIST

2017-05-23 Thread Franklin S Cooper Jr
Include K2G ICE to OF_LIST so it can be used for runtime board detection. Signed-off-by: Franklin S Cooper Jr --- configs/k2g_evm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig index 7b105da..a5639ea 100644

[U-Boot] [PATCH v2 01/30] ti: common: board_detect: Allow settings board detection variables manually

2017-05-23 Thread Franklin S Cooper Jr
ay also be helpful in certain boot modes where doing i2c reads may be costly and the config supports running only a specific board. Signed-off-by: Nishanth Menon Signed-off-by: Tero Kristo Signed-off-by: Keerthy Signed-off-by: Franklin S Cooper Jr. --- board/ti/common/board_det

[U-Boot] [PATCH v2 09/30] board_f: Add new function to allow runtime DTB selection

2017-05-23 Thread Franklin S Cooper Jr
specific code to run and perform what ever necessary configuration that is needed. Signed-off-by: Franklin S Cooper Jr --- common/Kconfig | 10 ++ common/board_f.c | 3 +++ include/common.h | 4 3 files changed, 17 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index

[U-Boot] [PATCH v2 22/30] board: ks2: Use board detection to wrap code not specific to K2G ICE evm

2017-05-23 Thread Franklin S Cooper Jr
Some code doesn't apply to K2G ICE evm. Therefore, use board detection to wrap these calls. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/board/ti/ks2_evm/board.c b/

[U-Boot] [PATCH v2 07/30] ARM: dts: k2g: Introduce U-boot specific dtsi file

2017-05-23 Thread Franklin S Cooper Jr
. Signed-off-by: Franklin S Cooper Jr --- arch/arm/dts/keystone-k2g-evm-u-boot.dtsi | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 arch/arm/dts/keystone-k2g-evm-u-boot.dtsi diff --git a/arch/arm/dts/keystone-k2g-evm-u-boot.dtsi b/arch/arm/dts/keystone-k2g-evm-u

[U-Boot] [PATCH v2 24/30] ARM: k2g: Update board_name u-boot env variable at runtime

2017-05-23 Thread Franklin S Cooper Jr
Enable CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to allow "board_name" to be set depending on the board it is being ran on. Update findfdt to use this new dynamic board_name value to determine which dtb should be used. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/

[U-Boot] [PATCH v2 14/30] ks2_evm: Add EEPROM based board detection

2017-05-23 Thread Franklin S Cooper Jr
hasn't ran. Finish board configuration once the board has been identified. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.h | 1 + board/ti/ks2_evm/board_k2g.c | 44 +++- 2 files changed, 24 insertions(+

[U-Boot] [PATCH v2 27/30] ARM: dts: k2g: Disable netcp by default

2017-05-23 Thread Franklin S Cooper Jr
Disable netcp by default like all other peripherals in the dtsi file. Enable the peripheral explicitly in the board specific dts file. Signed-off-by: Franklin S Cooper Jr --- arch/arm/dts/keystone-k2g-evm.dts| 4 arch/arm/dts/keystone-k2g-netcp.dtsi | 1 + 2 files changed, 5 insertions

[U-Boot] [PATCH v2 19/30] ks2_evm: Add EEPROM based board detection helper functions

2017-05-23 Thread Franklin S Cooper Jr
Add a function that can be used to determine if the board being ran on is a K2G Industrial Communication Engine EVM or K2G General Purpose EVM based on values programmed on the EEPROM. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.h | 20

[U-Boot] [PATCH v2 11/30] ARM: keystone2: Allow to build with all image formats

2017-05-23 Thread Franklin S Cooper Jr
u-boot.bin is a copy of: u-boot-fit-dtb.bin if CONFIG_FIT_EMBED is enabled, u-boot-dtb.bin if CONFIG_OF_SEPARATE is enabled, u-boot-nodtb.bin if DT is not enabled. So, use u-boot.bin to to generate keystone images instead of u-boot-dtb.bin Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom

[U-Boot] [PATCH v2 15/30] defconfig: keystone2: Enable U-boot runtime DTB detection

2017-05-23 Thread Franklin S Cooper Jr
Enable various config options to allow U-boot at runtime to select the proper dtb to use from the list of dtb's within the FIT image. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- configs/k2e_evm_defconfig | 3 +++ configs/k2g_evm_defconfig | 3 +++ configs/k2hk_evm_defc

[U-Boot] [PATCH v2 21/30] ARM: k2g: Add DDR3 configuration for K2G ICE evm

2017-05-23 Thread Franklin S Cooper Jr
Add configuration settings used by the K2G ICE evm. Also use board detection to determine which DDR3 configuration to use. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/ddr3_k2g.c | 62 +++-- 1 file changed, 60 insertions

[U-Boot] [PATCH v2 25/30] ARM: dts: keystone-k2g: Remove skeleton.dtsi

2017-05-23 Thread Franklin S Cooper Jr
which was being included in keystone-k2g.dtsi. Adding a missing node was all that was needed to remove this deprecated dtsi file from the SoC dtsi. With skeleton.dtsi removed the dtc compiler no longer complained about including the unit address for the memory node. Signed-off-by: Franklin S

[U-Boot] [PATCH v2 18/30] ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables

2017-05-23 Thread Franklin S Cooper Jr
Different K2G evms may need to program the various KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use the mask and val registers for each KS2_DDRPHY_DATAX_X_OFFSET to properly program the register. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach

[U-Boot] [PATCH v2 08/30] arm: dts: Add new "generic" 66AK2Gx device tree file.

2017-05-23 Thread Franklin S Cooper Jr
With U-boot runtime board detect for DTB selection a "default" dtb needs to be created. This will be used temporarily until the "proper" dtb is selected. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- Version 2 changes: Added -u-boot.dtsi with U-boot specific

[U-Boot] [PATCH v2 26/30] ARM: dts: keystone-k2g-evm: Add unit address to memory node

2017-05-23 Thread Franklin S Cooper Jr
Upstream Linux has the unit address being added to the various 66AK2Gx boards dts. Therefore, update the dts to mimic this change. Also remove memory node from the base K2G dtsi file. Signed-off-by: Franklin S Cooper Jr --- Version 2 changes: This patch attempts to get the dts closer to what is

[U-Boot] [PATCH v2 16/30] ARM: keystone2: Add additional fields used for DDR3 configuration

2017-05-23 Thread Franklin S Cooper Jr
Future boards will need to configure DDR3 registers in a slightly different manner. Support this by defining additional variables and defines that will be utilized later. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- arch/arm/mach-keystone/include/mach/ddr3.h | 14

[U-Boot] [PATCH v2 12/30] ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot

2017-05-23 Thread Franklin S Cooper Jr
S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board.c | 7 +++ board/ti/ks2_evm/board_k2g.c | 38 ++ 2 files changed, 45 insertions(+) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 03254e1..4792311 100644 --- a/board

[U-Boot] [PATCH v2 06/30] dts: Allow OF_LIST to depend on FIT_EMBED

2017-05-23 Thread Franklin S Cooper Jr
OF_LIST will be useable by SPL and U-boot. Therefore, update its dependency to allow it to be enable by either SPL or U-boot specific config option. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini Reviewed-by: Lokesh Vutla Acked-by: Andrew F. Davis --- dts/Kconfig | 11

[U-Boot] [PATCH v2 13/30] ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards

2017-05-23 Thread Franklin S Cooper Jr
Now with support for U-boot runtime dtb selection each board needs to define board_fit_config_name_match so U-boot can determine what the correct dtb is within the FIT blob. Signed-off-by: Franklin S Cooper Jr Reviewed-by: Tom Rini --- board/ti/ks2_evm/board_k2e.c | 10 ++ board/ti

  1   2   >