[U-Boot] [PATCH v2 2/2] mtd: nand: atmel: use another functions to set gpio value

2017-03-02 Thread Wenyou Yang
Because there isn't the implementation of gpio_set/get_value() and gpio_set/get_value() after the at91 gpio driver is converted to support the driver model, use at91_set_gpio_value() and at91_get_gpio_value() Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass

[U-Boot] [PATCH v2 1/2] ARM: at91: gpio: fix at91_set_gpio_value() define

2017-03-02 Thread Wenyou Yang
When the CONFIG_ATMEL_LEGACY is undefined, according to the following defines, at91_set_gpio_value() references to at91_set_pio_value(x, y) with two parameters. #define at91_set_gpio_value(x, y) at91_set_pio_value(x, y) #define at91_get_gpio_value(x) at91_get_pio_value(x) But there

[U-Boot] [PATCH v2 0/2] mtd: nand: atmel: use another functions to set gpio value

2017-03-02 Thread Wenyou Yang
The purpose of the patch set is to use another functions to set and get the gpio value for the atmel nand driver to fix the error to set and get the gpio value after the at91 gpio driver conversion to support the driver model. Changes in v2: - Improve the commit log. - Add Reviewed-by tag.

Re: [U-Boot] [U-boot] Question about bootp structure pack

2017-03-02 Thread Eric BOUXIROT
Hi Lukasz, >> I’m using u-boot-2015.07 in one of my project based on vpac270 soc >> module. >> >> u-boot is well configured and build is fine without error. >> >> Gcc is v3.4.5 and glibc v2.3.6 built by crosstool 0.43 for >> arm-softfloat-linux-gnu > > Could you try to use newer gcc and see if

Re: [U-Boot] [RFC PATCH 3/3] arm: bootm: Add dm_pre_os_remove() call to announce_and_cleanup()

2017-03-02 Thread Stefan Roese
Hi Simon, On 03.03.2017 05:53, Simon Glass wrote: On 1 March 2017 at 03:23, Stefan Roese wrote: This patch adds a call to dm_pre_os_remove() to announce_and_cleanup() so that drivers that have the flag DM_FLAG_PRE_OS_REMOVE set may do some last-stage cleanup before the OS is

[U-Boot] [PATCH v2 2/2] clk: at91: align clk-master's compatibles with kernel's

2017-03-02 Thread Wenyou Yang
Add the compatible "atmel,at91rm9200-clk-master" to align with the kernel's. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v2: - Add the Reviewed-by tags. drivers/clk/at91/clk-master.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [U-Boot] [RFC PATCH 2/3] dm: core: Add dm_pre_os_remove() and hook it into device_remove()

2017-03-02 Thread Stefan Roese
Hi Simon, On 03.03.2017 05:53, Simon Glass wrote: On 1 March 2017 at 03:23, Stefan Roese wrote: The new function dm_pre_os_remove() is intented for driver specific last-stage cleanup operations before the OS is started. This patch adds this functionality and hooks it into the

[U-Boot] [PATCH v2 1/2] clk: at91: enhance the peripheral clock

2017-03-02 Thread Wenyou Yang
Enhance the peripheral clock to support both at9sam9x5's and at91rm9200's peripheral clock via the different compatibles. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v2: - Use an enum with a descriptive name to denote the clock

[U-Boot] [PATCH v2 0/2] clk: at91: enhance the peripheral clock

2017-03-02 Thread Wenyou Yang
The purpose of the patch set is to enhance the peripheral clock to support both at9sam9x5's and at91rm9200's peripheral clock, and align the clk-master's compatibles with kernel's. Changes in v2: - Use an enum with a descriptive name to denote the clock type. - Add the Reviewed-by tags. Wenyou

Re: [U-Boot] [RFC PATCH 1/3] dm: core: Add pre-OS remove flag to device_remove()

2017-03-02 Thread Stefan Roese
Hi Simon, On 03.03.2017 05:53, Simon Glass wrote: > On 1 March 2017 at 03:23, Stefan Roese wrote: >> This patch adds the pre_os_remove boolean flag to device_remove() and >> changes all calls to this function to provide the default value of >> "false". This is in preparation for

Re: [U-Boot] [PATCH v3] serial: Add serial driver for Intel MID

2017-03-02 Thread Simon Glass
On 28 February 2017 at 05:04, Andy Shevchenko wrote: > Add a specific serial driver for Intel MID platforms. > > It has special fractional divider which can be programmed via UART_PS, > UART_MUL, and UART_DIV registers. > > The UART clock is calculated as > >

Re: [U-Boot] [PATCH 03/17] SPL: FIT: rework U-Boot image loading

2017-03-02 Thread Simon Glass
On 28 February 2017 at 19:25, Andre Przywara wrote: > Currently the SPL FIT loader always looks only for the first image in > the /images node a FIT tree, which it loads and later executes. > > Generalize this by looking for a "firmware" property in the matched >

Re: [U-Boot] [RESEND PATCH 8/9] defconfig: k2e_hs_evm: Add k2e_hs_evm_defconfig

2017-03-02 Thread Simon Glass
On 28 February 2017 at 10:58, Tom Rini wrote: > On Tue, Feb 28, 2017 at 11:47:01AM -0600, Andrew F. Davis wrote: >> On 02/27/2017 09:19 AM, Tom Rini wrote: >> > On Fri, Feb 24, 2017 at 06:59:45AM -0600, Andrew F. Davis wrote: >> > >> >> From: Vitaly Andrianov

Re: [U-Boot] [PATCH v3 01/11] armv8: Add global variable resv_ram

2017-03-02 Thread Simon Glass
Hi York, On 1 March 2017 at 12:32, York Sun wrote: > Use gd->arch.resv_ram to track reserved memory allocation. > > Signed-off-by: York Sun > --- > > Changes in v3: None > Changes in v2: None > > arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 6 ++ >

Re: [U-Boot] [PATCH 2/2] mtd: nand: atmel: change another functions to set/get gpio value

2017-03-02 Thread Wenyou.Yang
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2017年3月3日 12:52 > To: Wenyou Yang - A41535 > Cc: U-Boot Mailing List ; Andreas Bießmann > ; Scott Wood

Re: [U-Boot] [RFC PATCH 1/3] dm: core: Add pre-OS remove flag to device_remove()

2017-03-02 Thread Simon Glass
Hi Stefan, On 1 March 2017 at 03:23, Stefan Roese wrote: > This patch adds the pre_os_remove boolean flag to device_remove() and > changes all calls to this function to provide the default value of > "false". This is in preparation for the driver specific pre-OS remove > support. >

Re: [U-Boot] [PATCH 2/3 v3] arm: mvebu: Add gdsys ControlCenter-Compact board

2017-03-02 Thread Simon Glass
Hi Mario, On 22 February 2017 at 08:07, Mario Six wrote: > From: Dirk Eibach > > The gdsys ControlCenter Digital board is based on a Marvell Armada 38x > SOC. > > It boots from SPI-Flash but can be configured to boot from SD-card for > factory

Re: [U-Boot] [PATCH v1] tools: Remove CONFIG_SYS_TEXT_BASE in Makefile

2017-03-02 Thread Simon Glass
On 28 February 2017 at 11:29, Patrick Delaunay wrote: > This define is not used in tools sources and can be removed > to avoid unnecessary link between tools and defconfig > > Signed-off-by: Patrick Delaunay > --- > > tools/Makefile | 1 - > 1

Re: [U-Boot] [PATCH 2/2] mtd: nand: atmel: change another functions to set/get gpio value

2017-03-02 Thread Simon Glass
On 22 February 2017 at 03:07, Wenyou Yang wrote: > Because there is no implementation of gpio_set/get_value() function > after the at91 gpio driver is converted to support DM, use > at91_set/get_gpio_value(). > > Signed-off-by: Wenyou Yang > --- > >

Re: [U-Boot] Device cleanup before starting OS (Linux)

2017-03-02 Thread Simon Glass
Hi Stefan, On 28 February 2017 at 22:52, Stefan Roese wrote: > Hi Simon, > > On 01.03.2017 06:40, Simon Glass wrote: >> On 28 February 2017 at 09:32, Stefan Roese wrote: >>> >>> Hi! >>> >>> I'm currently trying to add some code to stop (DMA) buffer usage >>> in the

Re: [U-Boot] [PATCH 2/3] board: at91sam9g20ek/at91sam9260ek: move config options to defconfig

2017-03-02 Thread Simon Glass
On 22 February 2017 at 03:10, Wenyou Yang wrote: > Enable CONFIG_CLK and CONFIG_PINCTRL to support at91 clock > driver and at91 pinctrl driver. > > Move some config options to configs/*_defconfig, and make the drivers, > emac, gpio and mci to support the driver model. > >

Re: [U-Boot] [RFC PATCH] kbuild: turn of dtc unit address warnings by default

2017-03-02 Thread Simon Glass
On 26 February 2017 at 23:24, Masahiro Yamada wrote: > DTC 1.4.2 or later checks DT unit-address without reg property and > vice-versa, and generates lots of warnings. Fixing DT files will > take for a while. Until then, let's turn off the check unless > building

Re: [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on rk3288 boards

2017-03-02 Thread Simon Glass
On 22 February 2017 at 23:20, Jacob Chen wrote: > At current, only firefly and rock2 have network enabled. > Let's enable other boards. > > Signed-off-by: Jacob Chen > --- > > configs/evb-rk3288_defconfig | 5 - >

Re: [U-Boot] [PATCH 3/3] rockchip: rk3188: drop CONFIG_SYS_NO_FLASH

2017-03-02 Thread Simon Glass
On 23 February 2017 at 09:30, Heiko Stuebner wrote: > Commit e856bdcfb492 ("flash: complete CONFIG_SYS_NO_FLASH move with renaming") > obsoleted the CONFIG_SYS_NO_FLASH option, which still is in our > rk3188_common.h header, resulting in warnings like > The following new

Re: [U-Boot] [PATCH 1/3 v3] dm: Add callback to modify the device tree

2017-03-02 Thread Simon Glass
Hi Mario, On 22 February 2017 at 08:07, Mario Six wrote: > Certain boards come in different variations by way of utilizing daughter > boards, for example. These boards might contain additional chips, which > are added to the main board's busses, e.g. I2C. > > The device tree

Re: [U-Boot] [PATCHv2 2/3] FIT: Rename FIT_DISABLE_SHA256 to FIT_ENABLE_SHA256_SUPPORT

2017-03-02 Thread Simon Glass
On 1 March 2017 at 14:51, Tom Rini wrote: > We rename CONFIG_FIT_DISABLE_SHA256 to CONFIG_FIT_ENABLE_SHA256_SUPPORT which > is enabled by default and now a positive option. Convert the handful of > boards > that were disabling it before to save space. > > > Cc: Dirk Eibach

Re: [U-Boot] [PATCH v2 2/6] dm: core: Allow multiple drivers to bind for a single node

2017-03-02 Thread Simon Glass
Hi Philipp, On 22 February 2017 at 13:47, Philipp Tomsich wrote: > Currently, driver binding stops once it encounters the first > compatible driver that doesn't refuse to bind. However, there are > cases where a single node will need to be handled by

Re: [U-Boot] [PATCH 02/17] SPL: FIT: refactor FDT loading

2017-03-02 Thread Simon Glass
Hi Andre, On 28 February 2017 at 19:25, Andre Przywara wrote: > Currently the SPL FIT loader uses the spl_fit_select_fdt() function to > find the offset to the right DTB within the FIT image. > For this it iterates over all subnodes of the /configuration node in > the FIT

Re: [U-Boot] [PATCH v1] gpt: Fix uuid string format

2017-03-02 Thread Simon Glass
Hi Andy, On 27 February 2017 at 07:11, Andy Shevchenko wrote: > From: Vincent Tinelli > > Change GPT UUID string format from UUID to GUID per specification. > > Signed-off-by: Vincent Tinelli > --- >

Re: [U-Boot] [PATCH v1] env_mmc: configure environment offsets via device tree

2017-03-02 Thread Simon Glass
Hi Igor, On 22 February 2017 at 00:35, Igor Grinberg wrote: > Hi Philipp, Simon, > > On 02/22/17 05:59, Simon Glass wrote: >> Hi, >> >> On 20 February 2017 at 02:18, Dr. Philipp Tomsich >> wrote: >>> >>> On 20 Feb 2017, at 08:22,

Re: [U-Boot] [RFC PATCH 3/3] arm: bootm: Add dm_pre_os_remove() call to announce_and_cleanup()

2017-03-02 Thread Simon Glass
Hi Stefan, On 1 March 2017 at 03:23, Stefan Roese wrote: > This patch adds a call to dm_pre_os_remove() to announce_and_cleanup() > so that drivers that have the flag DM_FLAG_PRE_OS_REMOVE set may do > some last-stage cleanup before the OS is started. > > Signed-off-by: Stefan

Re: [U-Boot] [PATCH 1/3] dm: Return actual bools in dm_fdt_pre_reloc

2017-03-02 Thread Simon Glass
On 23 February 2017 at 09:30, Heiko Stuebner wrote: > Documentation says that we're returning true/false, not 1/0 so adapt > the function to return actual booleans. > > Signed-off-by: Heiko Stuebner > --- > drivers/core/util.c | 12 ++-- >

Re: [U-Boot] [PATCH 2/3] rockchip: rk3188: enable TPL_LIBGENERIC for generic memset

2017-03-02 Thread Simon Glass
On 23 February 2017 at 09:30, Heiko Stuebner wrote: > Commit c67c8c604b6c ("board_init.c: Always use memset()") dropped the naive > memset alternative from board_init_f_init_reserve. > So activate CONFIG_TPL_LIBGENERIC for that common memset implementation. > We cannot use the

Re: [U-Boot] [PATCH 1/9] image: Fixes build warning with CONFIG_FIT_IMAGE_POST_PROCESS

2017-03-02 Thread Simon Glass
On 23 February 2017 at 10:54, Andrew F. Davis wrote: > The function 'board_fit_image_post_process' is defined only when the > config option CONFIG_FIT_IMAGE_POST_PROCESS is enabled. For secure > systems that do not use SPL but do use FIT kernel images, only >

Re: [U-Boot] [RFC PATCH 2/3] dm: core: Add dm_pre_os_remove() and hook it into device_remove()

2017-03-02 Thread Simon Glass
Hi Stefan, On 1 March 2017 at 03:23, Stefan Roese wrote: > The new function dm_pre_os_remove() is intented for driver specific > last-stage cleanup operations before the OS is started. This patch adds > this functionality and hooks it into the common device_remove() > function. > >

Re: [U-Boot] [PATCH] binman: Explicitly request python2 instead of python from env

2017-03-02 Thread Simon Glass
Hi, On 27 February 2017 at 09:26, Tom Rini wrote: > On Wed, Feb 22, 2017 at 10:25:38AM -0500, Tom Rini wrote: >> On Thu, Feb 23, 2017 at 12:25:48AM +1100, Jonathan Gray wrote: >> > On Mon, Feb 20, 2017 at 07:41:34PM +0100, Paul Kocialkowski wrote: >> > > We now live in a

Re: [U-Boot] [PATCH 3/3] board: at91sam9260ek: clean up code

2017-03-02 Thread Simon Glass
On 22 February 2017 at 03:10, Wenyou Yang wrote: > Since the introduction of the pinctrl and clk drivers and the > device tree files, remove unneeded hard coded related code from > the board file. > > Signed-off-by: Wenyou Yang > --- > >

Re: [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for rk3288 boards

2017-03-02 Thread Simon Glass
On 22 February 2017 at 23:20, Jacob Chen wrote: > Enable gmac interface for rk3288 board dts. > use "okay" not "ok" > > Signed-off-by: Jacob Chen > --- > > arch/arm/dts/rk3288-evb.dtsi | 22 ++ >

Re: [U-Boot] [PATCH 2/2] clk: at91: align clk-master's compatibles with kernel's

2017-03-02 Thread Simon Glass
On 22 February 2017 at 03:01, Wenyou Yang wrote: > Add the compatible "atmel,at91rm9200-clk-master" to align with > the kernel's. > > Signed-off-by: Wenyou Yang > --- > > drivers/clk/at91/clk-master.c | 1 + > 1 file changed, 1 insertion(+)

Re: [U-Boot] [PATCH 1/2] ARM: at91: gpio: fix at91_set/get_gpio_value()

2017-03-02 Thread Simon Glass
Hi Wenyou, On 22 February 2017 at 03:07, Wenyou Yang wrote: > There is no implementation on at91_set_pio_value() with two arguments. > at91_get_pio_value() with one argument. > > Signed-off-by: Wenyou Yang > --- > >

Re: [U-Boot] [PATCH 1/2] clk: at91: enhance the peripheral clock

2017-03-02 Thread Simon Glass
On 22 February 2017 at 03:01, Wenyou Yang wrote: > > Enhance the peripheral clock to support both at9sam9x5's > and at91rm9200's peripheral clock via the different compatibles. > > Signed-off-by: Wenyou Yang > --- > >

Re: [U-Boot] x86: SecureBoot: Bay Trail

2017-03-02 Thread Simon Glass
Hi, On 22 February 2017 at 02:58, Markus Valentin wrote: > Hi Simon, > > On Tue, 2017-02-21 at 20:59 -0700, Simon Glass wrote: >> On 20 February 2017 at 02:10, Markus Valentin wrote: >> > >> > Hi, >> > >> > On Fri, 2017-02-17 at 19:58 +0800, Bin Meng wrote: >> > > >>

[U-Boot] [PATCHv3 2/2] pci: layerscape: Add support ls2088a kernel DT node fixup

2017-03-02 Thread Zhiqiang Hou
From: Hou Zhiqiang There isn't LS2088A DT file, actually it reuse LS2080A DT file under u-boot, while under kernel there are DT files for LS2080A and LS2088A respectively with different PCIe node compatible string. Signed-off-by: Hou Zhiqiang --- V3:

[U-Boot] [PATCHv3 1/2] pci: layerscape: add LS2088A series SoC pcie support

2017-03-02 Thread Zhiqiang Hou
From: Hou Zhiqiang The LS2088A series SoCs has different physical memory map address and CCSR registers address against LS2080A series SoCs. Signed-off-by: Hou Zhiqiang --- V3: - no change arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 46

Re: [U-Boot] [PATCH] cmd: wdt: Add "wdt disable" command

2017-03-02 Thread Tom Rini
On Fri, Mar 03, 2017 at 01:01:11AM +0100, Lukasz Majewski wrote: > Add support for "wdt disable" command necessary for disabling the watchdog > timer. > > Signed-off-by: Lukasz Majewski > --- > cmd/Kconfig| 6 ++ > cmd/Makefile | 2 ++ > cmd/wdt.c |

Re: [U-Boot] [PATCH v6 1/3] arm: dts: update Meson GXBB / Odroid-C2 DT with latest Linux version

2017-03-02 Thread Jaehoon Chung
On 02/21/2017 04:25 AM, Heiner Kallweit wrote: > As a prerequisite for adding a Meson GX MMC driver update the > Meson GXBB / Odroid-C2 device tree in Uboot with the latest > version from Linux. > > Signed-off-by: Neil Armstrong > Signed-off-by: Carlo Caione

Re: [U-Boot] [PATCH] fastboot: avoid printing invalid data

2017-03-02 Thread Steve Rae
Hi John, On Mon, Sep 19, 2016 at 2:59 AM, John Keeping wrote: > There is no guarantee that commands are null-terminated in the USB > request buffer, so limit the length of data that is printed. > > Signed-off-by: John Keeping > --- > >

Re: [U-Boot] [linux-sunxi] [PATCH 11/17] sunxi: SPL: add FIT config selector for Pine64 boards

2017-03-02 Thread André Przywara
On 01/03/17 03:03, Icenowy Zheng wrote: > > > 01.03.2017, 10:26, "Andre Przywara" : >> For a board or platform to support FIT loading in the SPL, it has to >> provide a board_fit_config_name_match() routine, which helps to select >> one of possibly multiple DTBs contained

[U-Boot] [PATCH] cmd: wdt: Add "wdt disable" command

2017-03-02 Thread Lukasz Majewski
Add support for "wdt disable" command necessary for disabling the watchdog timer. Signed-off-by: Lukasz Majewski --- cmd/Kconfig| 6 ++ cmd/Makefile | 2 ++ cmd/wdt.c | 32 include/watchdog.h | 2 ++ 4 files changed,

Re: [U-Boot] [PATCH] drivers/usb/ehci: Use platform-specific accessors

2017-03-02 Thread Marek Vasut
On 03/01/2017 01:52 PM, Alexey Brodkin wrote: Hi Marek, On Fri, 2017-02-10 at 21:33 +0100, Marek Vasut wrote: On 02/10/2017 09:23 PM, Alexey Brodkin wrote: Current implementation doesn't allow utilization of platform-specific reads and writes. But some arches or platforms may want to use

Re: [U-Boot] [PATCH v2 2/8] Revert "spi: cadence_qspi_apb: Use 32 bit indirect read transaction when possible"

2017-03-02 Thread Marek Vasut
On 03/01/2017 05:36 PM, Rush, Jason A. wrote: This reverts commit b63b46313ed29e9b0c36b3d6b9407f6eade40c8f. The Cadence QSPI device does not work with caching (introduced with the bounce buffer in this commit) on the Altera SoC platform. Signed-off-by: Jason A. Rush Do

Re: [U-Boot] arm: cache: misaligned operation with fastboot

2017-03-02 Thread Steve Rae
Hi Gary, On Thu, Mar 2, 2017 at 3:12 AM, Lukasz Majewski wrote: > Hi, > > > Hi Fabio, Lukasz, > > > > On Wed, Feb 15, 2017 at 02:24:40PM -0200, Fabio Estevam wrote: > > > On Wed, Feb 15, 2017 at 2:04 PM, Gary Bisson > > > wrote: > > > > Hi, > > >

Re: [U-Boot] TODO list for u-boot

2017-03-02 Thread Sebastian Panceac
Oh, I forgot to mention but I think is important in this context: I also have access to oscilloscope and logic analyzer. Thank you! On Thu, Mar 2, 2017 at 9:40 PM, Sebastian Panceac wrote: > I can't really say at what part I could contribute. > That's why I was hoping for a

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

2017-03-02 Thread Franklin S Cooper Jr
On 03/02/2017 01:10 PM, Felipe Balbi wrote: > > Hi, > > Franklin S Cooper Jr writes: >> From: Nishanth Menon >> >> In some situations the EEPROM used for board detection may not be >> programmed or simply programmed incorrectly. Therefore, it may be >> necessary

Re: [U-Boot] TODO list for u-boot

2017-03-02 Thread Sebastian Panceac
I can't really say at what part I could contribute. That's why I was hoping for a TODO list so I could chose something according to my skills. The hardware I have access to is: Raspi v1 and some custom boards with Freescale IMX6 SoC. Thank you! On Wed, Feb 22, 2017 at 10:11 AM, Lukasz Majewski

[U-Boot] [PATCH 27/31] ARM: k2g: Update board_name u-boot env variable at runtime

2017-03-02 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 ---

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

2017-03-02 Thread Felipe Balbi
Hi, Franklin S Cooper Jr writes: > From: Nishanth Menon > > In some situations the EEPROM used for board detection may not be > programmed or simply programmed incorrectly. Therefore, it may be > necessary to "simulate" reading the contents of the EEPROM to set >

[U-Boot] [PATCH 14/31] ARM: keystone2: Allow to build with all image formats

2017-03-02 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 ---

[U-Boot] [PATCH 09/31] ti_armv7_keystone2: Define scratch space in SRAM

2017-03-02 Thread Franklin S Cooper Jr
Scratch space can be used for features such as board detection. Define an area within SRAM that can be used for this purpose. Signed-off-by: Franklin S Cooper Jr Signed-off-by: Roger Quadros --- include/configs/ti_armv7_keystone2.h | 7 +++ 1 file changed, 7

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

2017-03-02 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

[U-Boot] [PATCH 16/31] ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards

2017-03-02 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 --- board/ti/ks2_evm/board_k2e.c | 10 ++

[U-Boot] [PATCH 17/31] ks2_evm: Add EEPROM based board detection

2017-03-02 Thread Franklin S Cooper Jr
Some K2G evms have their EEPROM programming while most do not. Therefore, add EEPROM board detection to be used as the default method and fall back to the alternative board detection when needed. Also reorder board configuration. Perform bare minimal configuration initially since board detection

[U-Boot] [PATCH 15/31] ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot

2017-03-02 Thread Franklin S Cooper Jr
For K2G, runtime DTB selection utilitizes the embedded_dtb_select function. Therefore, define the function which will perform a EEPROM read and then retries selecting the correct dtb now that it can detect which board its on. For other Keystone devices use an empty function since they will still

[U-Boot] [PATCH 10/31] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-03-02 Thread Franklin S Cooper Jr
From: Roger Quadros In stead of defining the board EEPROM address in the board headers let's define them in the board config files and make them configurable by Kconfig. Signed-off-by: Roger Quadros Reviewed-by: Tom Rini ---

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

2017-03-02 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

[U-Boot] [PATCH 20/31] ARM: k2g: Program DDR PHY MR2 register with the default value

2017-03-02 Thread Franklin S Cooper Jr
K2G GP doesn't require the MR2 register to be programed since the default is good enough. However, newer K2G boards do need to change this register value. Therefore, instead of not writing this register if ran on a K2G board just program the value to be written to match the default/reset value.

[U-Boot] [PATCH 13/31] Makefile: Build additional binaries for dtb FIT blobs appended to U-boot

2017-03-02 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 --- .gitignore | 1 + Makefile | 18 -- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index

[U-Boot] [PATCH 22/31] ks2_evm: Add EEPROM based board detection helper functions

2017-03-02 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 --- board/ti/ks2_evm/board.h | 20 1

[U-Boot] [PATCH 24/31] ARM: k2g: Add DDR3 configuration for K2G ICE evm

2017-03-02 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 --- board/ti/ks2_evm/ddr3_k2g.c | 62 +++-- 1 file changed, 60 insertions(+), 2

[U-Boot] [PATCH 26/31] ARM: k2g: Use board detection to wrap K2G GP specific calls

2017-03-02 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 --- board/ti/ks2_evm/board_k2g.c | 16 ++-- 1 file changed, 10

[U-Boot] [PATCH 28/31] ARM: dts: k2g: Disable netcp by default

2017-03-02 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

[U-Boot] [PATCH 11/31] ARM: k2g: Enable TI board detection code

2017-03-02 Thread Franklin S Cooper Jr
K2G boards have a EEPROM that will be used for board detection. Therefore, select the board detection config for K2G evms. Signed-off-by: Franklin S Cooper Jr --- arch/arm/mach-keystone/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-keystone/Kconfig

[U-Boot] [PATCH 18/31] defconfig: keystone2: Enable U-boot runtime DTB detection

2017-03-02 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 --- configs/k2e_evm_defconfig | 3 +++ configs/k2g_evm_defconfig | 3 +++ configs/k2hk_evm_defconfig | 3

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

2017-03-02 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 --- board/ti/ks2_evm/board_k2g.c | 2 ++ 1 file

[U-Boot] [PATCH 21/31] ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables

2017-03-02 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 ---

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

2017-03-02 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 --- board/ti/ks2_evm/board.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/board/ti/ks2_evm/board.c

[U-Boot] [PATCH 12/31] board_f: Add new function to allow runtime DTB selection

2017-03-02 Thread Franklin S Cooper Jr
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 is running on. Embedded_dtb_select handles the second step by allowing board

[U-Boot] [PATCH 23/31] ARM: k2g: Add pinmux support for K2G ICE evm

2017-03-02 Thread Franklin S Cooper Jr
Add basic pinmux data for new K2G ICE evm. Also add pinmuxing for a generic K2G evm which includes I2C 0 and 1 used for board detection purposes. Since multiple K2G boards are supported that means initially generic pinmuxing should be used when board detection hasn't ran. Once board detection

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

2017-03-02 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 --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/keystone-k2g-ice.dts | 25 + 2 files

[U-Boot] [PATCH 19/31] ARM: keystone2: Add additional fields used for DDR3 configuration

2017-03-02 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 --- arch/arm/mach-keystone/include/mach/ddr3.h | 14 ++

[U-Boot] [PATCH 08/31] ti: common: board_detect: Rename EEPROM scratch start macro

2017-03-02 Thread Franklin S Cooper Jr
From: Lokesh Vutla Non OMAP platforms i.e. Keystone will also need to use the board EEPROM helpers so let's make the macro platform independent. Signed-off-by: Roger Quadros Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini

[U-Boot] [PATCH 04/31] fdt: Enable selecting correct DTB from append FIT Image

2017-03-02 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

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

2017-03-02 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 | 8 common/Makefile

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

2017-03-02 Thread Franklin S Cooper Jr
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

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

2017-03-02 Thread Franklin S Cooper Jr
When the EEPROM is first read its contents are stored in memory as a cache to avoid further I2C operations. To determine if the EEPROM was previously read the easiest way is to check the memory to see if the EEPROM's magic header value is set. Create a new function that can determine if the EEPROM

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

2017-03-02 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

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

2017-03-02 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 --- common/Makefile | 1 +

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

2017-03-02 Thread Franklin S Cooper Jr
From: Nishanth Menon In some situations the EEPROM used for board detection may not be programmed or simply programmed incorrectly. Therefore, it may be necessary to "simulate" reading the contents of the EEPROM to set appropriate variables used in the board detection code. This

[U-Boot] [PATCH] do_smhload: fix return code

2017-03-02 Thread Ryan Harkin
do_smhload was using a ulong to store the return value from smh_load_file. That returns an int, where -1 indicates an error. As a ulong will never be negative, smh_load_file errors were not detected and so_smhload always returned zero. Also, when errors were spotted, do_smhload was returning 1,

[U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly

2017-03-02 Thread Tom Rini
We only support cores that do Thumb-1 or later. So we add a comment to explain this and remove the architecture test. Cc: Albert ARIBAUD Cc: Mans Rullgard Signed-off-by: Tom Rini --- arch/arm/include/asm/assembler.h | 8

Re: [U-Boot] [PATCH] armv5te: make 'ret lr' produce iinterworking 'bx lr'

2017-03-02 Thread Måns Rullgård
Tom Rini writes: > On Thu, Mar 02, 2017 at 02:27:03PM +, Måns Rullgård wrote: >> Tom Rini writes: >> >> > On Mon, Feb 27, 2017 at 08:19:07PM +0100, Albert ARIBAUD wrote: >> >> Current ARM assembler helper for the 'return to caller' pseudo-instruction

Re: [U-Boot] [PATCH] armv5te: make 'ret lr' produce iinterworking 'bx lr'

2017-03-02 Thread Tom Rini
On Thu, Mar 02, 2017 at 02:27:03PM +, Måns Rullgård wrote: > Tom Rini writes: > > > On Mon, Feb 27, 2017 at 08:19:07PM +0100, Albert ARIBAUD wrote: > >> Current ARM assembler helper for the 'return to caller' pseudo-instruction > >> turns 'ret lr' into 'mov pc, lr' for

Re: [U-Boot] [PATCH] armv5te: make 'ret lr' produce iinterworking 'bx lr'

2017-03-02 Thread Måns Rullgård
Tom Rini writes: > On Mon, Feb 27, 2017 at 08:19:07PM +0100, Albert ARIBAUD wrote: >> Current ARM assembler helper for the 'return to caller' pseudo-instruction >> turns 'ret lr' into 'mov pc, lr' for ARMv5TE. This causes the core to remain >> in its current ARM state even

Re: [U-Boot] [PATCH][v2] armv8: ls2080aqds: Add support for SD boot

2017-03-02 Thread Tom Rini
On Thu, Mar 02, 2017 at 04:05:49PM +0530, Santan Kumar wrote: A little here please. > Signed-off-by: Santan Kumar > Signed-off-by: Priyanka Jain > Signed-off-by: Abhimanyu Saini [snip] > diff --git

Re: [U-Boot] [PATCH][v2] armv8:ls2080a: Reorganise NAND_BOOT code in config flag

2017-03-02 Thread Tom Rini
On Thu, Mar 02, 2017 at 04:05:48PM +0530, Santan Kumar wrote: > Add CONFIG_NAND_BOOT config flag to organise > NAND_BOOT specific code in config flag like > -nand-boot specfic errata errata_rcw_src() > -CONFIG_SYS_NAND_U_BOOT_DST,etc > > Signed-off-by: Santan Kumar >

[U-Boot] Someone expert in lvds timings ?

2017-03-02 Thread far5893
I'm trying to generate u-boot timings for http://www.notebook-lcd.ru/pdf/QD17EL07_REV_11.pdf page 11. i try (x:640,y:1024,depth:24,pclk_khz:54000,le:45,ri:200,up:22,lo:22,hs:1,vs:1,sync:3,vmode:0) LCD panel timing details does someone have experience in writing such timings ? The panel is

[U-Boot] [PATCH 2/2][v3] armv8: ls2080aqds: Add support for SD boot

2017-03-02 Thread Santan Kumar
Signed-off-by: Santan Kumar Signed-off-by: Priyanka Jain Signed-off-by: Abhimanyu Saini --- Changes for v3: Rebased to latest codebase Depends on York MMU patches:

[U-Boot] [PATCH 1/2][v3] armv8: ls2080a: Reorganise NAND_BOOT code in config flag

2017-03-02 Thread Santan Kumar
Add CONFIG_NAND_BOOT config flag to organise NAND_BOOT specific code in config flag like -nand-boot specfic errata errata_rcw_src() -CONFIG_SYS_NAND_U_BOOT_DST,etc Signed-off-by: Santan Kumar Signed-off-by: Priyanka Jain Signed-off-by: Abhimanyu

Re: [U-Boot] arm: cache: misaligned operation with fastboot

2017-03-02 Thread Lukasz Majewski
Hi, > Hi Fabio, Lukasz, > > On Wed, Feb 15, 2017 at 02:24:40PM -0200, Fabio Estevam wrote: > > On Wed, Feb 15, 2017 at 2:04 PM, Gary Bisson > > wrote: > > > Hi, > > > > > > I've been testing fastboot to flash a sparse image on a i.MX6Q > > > platform

[U-Boot] [PATCH][v2] armv8: ls2080aqds: Add support for SD boot

2017-03-02 Thread Santan Kumar
Signed-off-by: Santan Kumar Signed-off-by: Priyanka Jain Signed-off-by: Abhimanyu Saini --- Changes for v2: Rebased to latest codebase Depends on York MMU patches:

  1   2   >