[U-Boot] [PATCH] board: atmel: sama5d2_xplained: fix the missing pin config of SDMMC0

2016-04-10 Thread Wenyou Yang
Fix the missing pin config of the SDMMC0 interface. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b/board/atmel/sama5d2_xplained/sama5d2_xplained.c index 10edf28

Re: [U-Boot] [PATCH] dm: spi: Read default speed, mode values from DT

2016-04-10 Thread Vignesh R
On 04/11/2016 11:18 AM, Mugunthan V N wrote: > On Monday 11 April 2016 10:12 AM, Vignesh R wrote: >> >> >> On 04/09/2016 01:15 AM, Tom Rini wrote: >>> On Thu, Apr 07, 2016 at 09:02:26PM +0530, Vignesh R wrote: >>> In case of DT boot, don't read default speed and mode for SPI from CONFIG

Re: [U-Boot] [PATCH] dm: gpio: pca953x: introduce driver model support for pca953x

2016-04-10 Thread Peng Fan
On Sat, Apr 09, 2016 at 12:33:34PM -0600, Simon Glass wrote: >On 18 March 2016 at 03:54, Peng Fan wrote: >> Introduce a new driver that supports driver model for pca953x. >> The pca953x chips are used as I2C I/O expanders. >> This driver is designed to support the following chips: >> " >> 4 bits:

Re: [U-Boot] [PATCH 03/11] ti_omap5_common: eth: do not define DM_ETH for spl

2016-04-10 Thread Mugunthan V N
On Sunday 10 April 2016 12:05 AM, Simon Glass wrote: > Hi Mugunthan, > > On 7 April 2016 at 09:17, Mugunthan V N wrote: >> Since omap's spl doesn't support DM currently, do not define >> DM_ETH for spl build. >> >> Signed-off-by: Mugunthan V N >> --- >> include/configs/ti_omap5_common.h | 1 + >

Re: [U-Boot] [PATCH 1/2] dm: spi: soft_spi: support linux way and bug fix

2016-04-10 Thread Peng Fan
Hi Simon, On Sat, Apr 09, 2016 at 12:33:37PM -0600, Simon Glass wrote: >Hi Peng, > >On 21 March 2016 at 02:29, Peng Fan wrote: >> 1. Support compatible string "spi-gpio" which is used by Linux >>Linux use different bindings, so use UBOOT_COMPAT and >>LINUX_COMPAT to differentiate them. >

Re: [U-Boot] [PATCH 02/11] lib: fdtdec: fix size cell and address cell parse from DT

2016-04-10 Thread Mugunthan V N
Stephen On Sunday 10 April 2016 09:11 AM, Stephen Warren wrote: > On 04/09/2016 12:35 PM, Simon Glass wrote: >> +Stephen >> >> Hi Mugunthan, >> >> On 7 April 2016 at 09:17, Mugunthan V N wrote: >>> Size cell and address cell should be read from the parent node >>> and should not assume with data

Re: [U-Boot] [PATCH 2/2] dm: gpio: introduce 74x164 driver

2016-04-10 Thread Peng Fan
Hi Simon, Thanks for reviewing. On Sat, Apr 09, 2016 at 12:33:40PM -0600, Simon Glass wrote: >Hi Peng, > >On 21 March 2016 at 02:29, Peng Fan wrote: >> Introduce driver to support "fairchild,74hc595" devices. >> 1. Take linux drivers/drivers/gpio/gpio-74x164.c as reference. >> 2. Following the n

Re: [U-Boot] [PATCH] dm: spi: Read default speed, mode values from DT

2016-04-10 Thread Mugunthan V N
On Monday 11 April 2016 10:12 AM, Vignesh R wrote: > > > On 04/09/2016 01:15 AM, Tom Rini wrote: >> On Thu, Apr 07, 2016 at 09:02:26PM +0530, Vignesh R wrote: >> >>> In case of DT boot, don't read default speed and mode for SPI from >>> CONFIG_*, instead read from DT node. This will make sure tha

Re: [U-Boot] [RFC 1/2] mmc: introduce mmc_power_init and pwrup hook function

2016-04-10 Thread Peng Fan
Hi Simon, On Sat, Apr 09, 2016 at 12:34:13PM -0600, Simon Glass wrote: >Hi Peng, > >On 15 March 2016 at 19:32, Peng Fan wrote: >> In device tree, there is vmmc-supply property for SD/MMC. >> Introduce mmc_power_init function and pwrup hook function to let >> the specific drivers handle vmmc-suppl

Re: [U-Boot] [PATCH v2 2/2] spl: Support loading a FIT from FAT FS

2016-04-10 Thread Mugunthan V N
On Monday 11 April 2016 10:21 AM, Lokesh Vutla wrote: > Detect a FIT when loading from a FAT File system and handle it using the > new FIT SPL support. > > Reviewed-by: Tom Rini > Reviewed-by: Simon Glass > Signed-off-by: Lokesh Vutla Reviewed-by: Mugunthan V N Regards Mugunthan V N

Re: [U-Boot] [PATCH v2 1/2] spl: Add an option to load a FIT containing U-Boot from FS

2016-04-10 Thread Mugunthan V N
On Monday 11 April 2016 10:21 AM, Lokesh Vutla wrote: > This provides a way to load a FIT containing U-Boot and a selection of device > tree files from a File system. > > Signed-off-by: Lokesh Vutla Reviewed-by: Mugunthan V N Regards Mugunthan V N __

Re: [U-Boot] [uboot] [PATCH 7/7] net: phy: dp83867: Add SGMII helper for configuration

2016-04-10 Thread Mugunthan V N
On Friday 08 April 2016 09:38 PM, Dan Murphy wrote: > The code assumed that if the interface is not RGMII configured > then it must be SGMII configured. This device has the ability > to support most of the MII interfaces. Therefore add the > helper for SGMII and only configure the device if the i

Re: [U-Boot] [uboot] [PATCH 5/7] net: phy: Move is_rgmii helper to phy.h

2016-04-10 Thread Mugunthan V N
On Friday 08 April 2016 09:38 PM, Dan Murphy wrote: > Move the phy_interface_is_rgmii to the phy.h > file for all phy's to be able to use the API. > > This now aligns with the Linux kernel based on > commit e463d88c36d42211aa72ed76d32fb8bf37820ef1 > > Signed-off-by: Dan Murphy Reviewed-by: Mugu

Re: [U-Boot] [PATCH 2/2] dm: gpio: mxc: implement xlate function

2016-04-10 Thread Peng Fan
On Tue, Mar 15, 2016 at 09:32:51PM -0600, Simon Glass wrote: >On 14 March 2016 at 23:48, Peng Fan wrote: >> To i.MX controller, we use such as "<&gpio1 3 GPIO_ACTIVE_LOW>" for >> a device to refer a gpio pin in device tree. So need to implement >> xlate function, to correctly handle gpio flags and

Re: [U-Boot] [uboot] [PATCH 6/7] net: phy: Add phy_interface_is_sgmii to phy.h

2016-04-10 Thread Mugunthan V N
On Friday 08 April 2016 09:38 PM, Dan Murphy wrote: > Add a helper to phy.h to identify whether the > phy is configured for SGMII all variables. > > Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N Regards Mugunthan V N ___ U-Boot mailing list U-

Re: [U-Boot] [uboot] [PATCH v4 4/7] net: phy: ti: Allow the driver to be more configurable

2016-04-10 Thread Mugunthan V N
On Friday 08 April 2016 09:38 PM, Dan Murphy wrote: > Not all devices use the same internal delay or fifo depth. > Add the ability to set the internal delay for rx or tx and the > fifo depth via the devicetree. If the value is not set in the > devicetree then set the delay to the default. > > If

Re: [U-Boot] [uboot] [PATCH v4 3/7] net: phy: dp83867: Add device tree bindings and documentation

2016-04-10 Thread Mugunthan V N
On Friday 08 April 2016 09:38 PM, Dan Murphy wrote: > Add the device tree bindings and the accompanying documentation > for the TI DP83867 Giga bit ethernet phy driver. > > The original document was from: > [commit 2a10154abcb75ad0d7b6bfea6210ac743ec60897 from the Linux kernel] > > Signed-off

Re: [U-Boot] [uboot] [PATCH 2/7] net: zynq_gem: Add the passing of the phy-handle node

2016-04-10 Thread Mugunthan V N
On Friday 08 April 2016 09:38 PM, Dan Murphy wrote: > Add the ability to pass the phy-handle node offset > to the phy driver. This allows the phy driver > to access the DT subnode's data and parse accordingly. > > Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N Regards Mugunthan V N

Re: [U-Boot] [uboot] [PATCH 1/7] drivers: net: cpsw: Add readinf of DT phy-handle node

2016-04-10 Thread Mugunthan V N
On Friday 08 April 2016 09:38 PM, Dan Murphy wrote: > Add the ability to read the phy-handle node of the > cpsw slave. Upon reading this handle the phy-id > can be stored based on the reg node in the DT. > > The phy-handle also needs to be stored and passed > to the phy to access any phy data tha

Re: [U-Boot] [PATCH v2 2/2] cmd: fdt: Use separate CMD_FDT Kconfig entry instead of OF_LIBFDT

2016-04-10 Thread Michal Simek
On 9.4.2016 20:36, Simon Glass wrote: > Hi Michal, > > On 6 April 2016 at 12:28, Michal Simek wrote: >> Create CMD_FDT Kconfig entry to have an option to disable fdt command >> which is not required for small configuration which requires libfdt >> only. >> Enable it by default for all targets whi

Re: [U-Boot] [PATCH] board: ti: am57xx: Update EMIF SDRAM 1 and 3 Timings

2016-04-10 Thread Lokesh Vutla
On Saturday 09 April 2016 03:23 AM, Nishanth Menon wrote: > From: Schuyler Patton > > Update EMIF data based on recommendations from the now standard TI > EMIF tool version 1.1.1 based on 256MBx16 DDR3L Kingston D2516EC4BXGGB > data sheet > > Update T_RRD from 5 to 6 based on AM57xx TRM - > Mi

Re: [U-Boot] [PATCH] board: ti: am57xx: Add support for am572x idk in SPL

2016-04-10 Thread Lokesh Vutla
On Saturday 09 April 2016 03:31 AM, Nishanth Menon wrote: > From: Steve Kipisz > > The AM572x-IDK board (Industrial Dev Kit) is a board based on TI's AM5728x > SOC which has a dual core 1.5GHz A15 processor. This board is a development > platform for the Industrial market with: > - 2GB of DDR3L

Re: [U-Boot] [PATCH 03/44] pci: Drop CONFIG_SYS_SCSI_SCAN_BUS_REVERSE

2016-04-10 Thread Bin Meng
On Sun, Apr 10, 2016 at 10:44 AM, Simon Glass wrote: > This option is not used by any board. Drop it. > > Signed-off-by: Simon Glass > --- > > drivers/pci/pci.c | 4 > include/configs/MPC8641HPCN.h | 2 -- > include/configs/sbc8641d.h| 2 -- > 3 files changed, 8 deletions(-)

[U-Boot] [PATCH v2 2/2] spl: Support loading a FIT from FAT FS

2016-04-10 Thread Lokesh Vutla
Detect a FIT when loading from a FAT File system and handle it using the new FIT SPL support. Reviewed-by: Tom Rini Reviewed-by: Simon Glass Signed-off-by: Lokesh Vutla --- common/spl/spl_fat.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/com

[U-Boot] [PATCH v2 1/2] spl: Add an option to load a FIT containing U-Boot from FS

2016-04-10 Thread Lokesh Vutla
This provides a way to load a FIT containing U-Boot and a selection of device tree files from a File system. Signed-off-by: Lokesh Vutla --- Changes since v1: - Added comments for function declarations. - Bring out the common code for parsing fit header. common/spl/spl_fit.c | 146 +

[U-Boot] [PATCH v2 0/2] spl: Add support to load FIT from Filesystem

2016-04-10 Thread Lokesh Vutla
Some devices like MMC, USB can be formatted to a FS and can act as a boot media. Given that FIT image load support in SPL support only raw devices, SPL should also be able to support loading FIT image from a File system. This series add support to load FIT image from a filesystem and also adding ho

Re: [U-Boot] [PATCH] dm: spi: Read default speed, mode values from DT

2016-04-10 Thread Vignesh R
On 04/09/2016 01:15 AM, Tom Rini wrote: > On Thu, Apr 07, 2016 at 09:02:26PM +0530, Vignesh R wrote: > >> In case of DT boot, don't read default speed and mode for SPI from >> CONFIG_*, instead read from DT node. This will make sure that boards >> with multiple SPI/QSPI controllers can be probed

Re: [U-Boot] [PATCH 2/6 v3] i2c: designware_i2c: Add dw_i2c_enable() helper function

2016-04-10 Thread Bin Meng
On Wed, Mar 23, 2016 at 3:48 PM, Stefan Roese wrote: > dw_i2c_enable() is used to dis-/en-able the I2C controller. It makes > sense to add such a function, as the controller is dis-/en-abled > multiple times in the code. Additionally, this function now checks, > if the controller is really dis-/en

Re: [U-Boot] [PATCH 5/6] net: mii: Fix changes made by spatch

2016-04-10 Thread Bin Meng
On Mon, Apr 4, 2016 at 5:07 PM, Joe Hershberger wrote: > Some of the changes were a bit too complex. > > Signed-off-by: Joe Hershberger > --- > > arch/powerpc/cpu/mpc8xx/fec.c | 6 -- > board/gdsys/405ex/io64.c | 3 +-- > drivers/net/bfin_mac.c| 21 +++-- > dri

Re: [U-Boot] [PATCH 4/6] net: mii: Changes not made by spatch

2016-04-10 Thread Bin Meng
Hi Joe, On Mon, Apr 4, 2016 at 5:07 PM, Joe Hershberger wrote: > If the functions passed to the registration function are not in the same > C file (extern) then spatch will not handle the dependent changes. > > Make those changes manually. > > Signed-off-by: Joe Hershberger > --- > > arch/m68k/

Re: [U-Boot] [PATCH 6/6] net: mii: Clean up legacy glue that is not used

2016-04-10 Thread Bin Meng
On Mon, Apr 4, 2016 at 5:07 PM, Joe Hershberger wrote: > The cleanup of the legacy mii registration API that's no longer used now > that the drivers have been converted to use the (more) modern API. > > Signed-off-by: Joe Hershberger > > --- > > common/miiphyutil.c | 73 > --

Re: [U-Boot] [PATCH 3/6] net: mii: Use spatch to update miiphy_register

2016-04-10 Thread Bin Meng
Hi Joe, On Mon, Apr 4, 2016 at 5:07 PM, Joe Hershberger wrote: > Run scripts/coccinelle/net/mdio_register.cocci on the U-Boot code base. Looks we need more manual nits fixes after running the scripts. See below. > > Signed-off-by: Joe Hershberger > --- > > arch/mips/mach-au1x00/au1x00_eth.c

Re: [U-Boot] [PATCH 1/6] common: Always include errno.h in common.h

2016-04-10 Thread Bin Meng
On Mon, Apr 4, 2016 at 5:07 PM, Joe Hershberger wrote: > We want people using errnos for errors instead of -1, so make it easy > by always including the definition of all the errnos. > > Signed-off-by: Joe Hershberger > --- > > include/common.h | 1 + > 1 file changed, 1 insertion(+) > Reviewed

Re: [U-Boot] [PATCH v2 1/2] arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code

2016-04-10 Thread Masahiro Yamada
Hi Hans, 2016-04-09 20:53 GMT+09:00 Hans de Goede : > v7_maint_dcache_all() does not work reliable when build with gcc6, > see: https://bugzilla.redhat.com/show_bug.cgi?id=1318788 > > While debugging this I learned that v7_maint_dcache_all() is unreliable > when build with gcc5 too when it is mark

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-04-10 Thread George Broz
On 10 April 2016 at 10:47, Marek Vasut wrote: > On 04/09/2016 12:40 AM, George Broz wrote: >> On 8 April 2016 at 05:36, Marek Vasut wrote: >>> On 04/08/2016 07:16 AM, Stefan Roese wrote: On 08.04.2016 01:51, George Broz wrote: Try with the attached patch (and probabl

[U-Boot] [PATCH 20/23] dm: mmc: Add support for driver-model block devices

2016-04-10 Thread Simon Glass
Add support for enabling CONFIG_BLK with MMC. This involves changing a few functions to use struct udevice and adding a MMC block device driver. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 48 +-- drivers/mmc/mmc_private.h | 9 +++-

[U-Boot] [PATCH 18/23] dm: mmc: Implement the MMC functions for block devices

2016-04-10 Thread Simon Glass
Implement the functions in mmc_legacy.c for driver-model block devices, so that MMC can use driver model for these. This allows CONFIG_BLK to be enabled with DM_MMC. Signed-off-by: Simon Glass --- drivers/mmc/Makefile | 4 +- drivers/mmc/mmc-uclass.c | 106

[U-Boot] [PATCH 23/23] dm: mmc: test: Add tests for MMC

2016-04-10 Thread Simon Glass
Add a simple test which checks that a sandbox-emulated SD card can be used correctly. This tests plumbing through the MMC stack's block-device implementaion. Signed-off-by: Simon Glass --- test/dm/Makefile | 4 +--- test/dm/mmc.c| 19 +++ 2 files changed, 20 insertions(+),

[U-Boot] [PATCH 00/23] dm: mmc: Add driver-model block-device support to MMC

2016-04-10 Thread Simon Glass
This series adds support for using CONFIG_BLK with MMC, such that it uses the block interface correctly. The old interface in part.c is removed. With driver model, when CONFIG_BLK is enabled, MMC devices must have a child block device. A new mmc_bind() function takes care of this. It should be cal

[U-Boot] [PATCH 22/23] dm: sandbox: mmc: Enable building MMC code for sandbox

2016-04-10 Thread Simon Glass
Enable building the MMC code for sandbox. This increases build coverage for sandbox. Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 10 ++ include/configs/sandbox.h | 2 ++ test/dm/blk.c | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/

[U-Boot] [PATCH 16/23] dm: mmc: Adjust mmc_switch_part() to use a struct mmc

2016-04-10 Thread Simon Glass
Instead of looking up the MMC device by number, just pass it in. This makes it possible to use this function with driver model. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c

Re: [U-Boot] [PATCH] serial: add BCM283x mini UART driver

2016-04-10 Thread Simon Glass
Hi Stephen, On 9 April 2016 at 21:45, Stephen Warren wrote: > On 04/09/2016 12:34 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 16 March 2016 at 21:46, Stephen Warren wrote: >>> >>> The RPi3 typically uses the regular UART for high-speed communication >>> with >>> the Bluetooth device, leavi

[U-Boot] [PATCH 21/23] dm: mmc: sandbox: Add an SD-card emulation

2016-04-10 Thread Simon Glass
Add an emulation of an SD card to sandbox, allowing MMC to be used in tests. The emulation is very simple, supporting only card detection and reading test data. Signed-off-by: Simon Glass --- drivers/mmc/Kconfig | 11 +++- drivers/mmc/sandbox_mmc.c | 134 +

[U-Boot] [PATCH 10/23] dm: part: Use the legacy block driver for hardware partition support

2016-04-10 Thread Simon Glass
Drop use of the table in part.c for this feature. Signed-off-by: Simon Glass --- disk/part.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/disk/part.c b/disk/part.c index 8d5f028..5d6dc68 100644 --- a/disk/part.c +++ b/disk/part.c @@ -71,9 +71,7 @@ static stru

[U-Boot] [PATCH 15/23] dm: blk: Use the correct error code for blk_get_device_by_str()

2016-04-10 Thread Simon Glass
Return -EINVAL instead of -1 in this function, to provide a more meaningful error. Signed-off-by: Simon Glass --- disk/part.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disk/part.c b/disk/part.c index 4b850fa..f5950d0 100644 --- a/disk/part.c +++ b/disk/part.c @@

[U-Boot] [PATCH 12/23] dm: blk: Add a comment as to why the bdev member is needed

2016-04-10 Thread Simon Glass
This member should be explained, since it is not obvious why it is needed. Add a comment. Signed-off-by: Simon Glass --- include/blk.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/blk.h b/include/blk.h index 415c3a8..1b8e72d 100644 --- a/include/blk.h +++ b/include/blk.h @@

[U-Boot] [PATCH 17/23] dm: sandbox: Only enable the sandbox MMC driver when valid

2016-04-10 Thread Simon Glass
This driver will require generic MMC and block-device support in a future commit. To avoid test errors, make this change now. Signed-off-by: Simon Glass --- drivers/mmc/Makefile | 4 test/dm/Makefile | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/Ma

[U-Boot] [PATCH 19/23] dm: mmc: Add a way to bind MMC devices with driver model

2016-04-10 Thread Simon Glass
Binding an MMC device when CONFIG_BLK is enabled requires that a block device be bound as a child of the MMC device. Add a function to do this. The mmc_create() method will be used only when DM_BLK is disabled. Add an unbind method also. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 48 ++

[U-Boot] [PATCH 13/23] dm: mmc: Set up the device pointer when using the MMC uclass

2016-04-10 Thread Simon Glass
Update the existing drivers to set up this new pointer. This will be required by the MMC uclass. Signed-off-by: Simon Glass --- drivers/mmc/omap_hsmmc.c | 1 + drivers/mmc/pic32_sdhci.c | 7 ++- drivers/mmc/rockchip_dw_mmc.c | 1 + drivers/mmc/socfpga_dw_mmc.c | 1 + drivers/mmc/u

[U-Boot] [PATCH 14/23] dm: mmc: Move the device list into a separate file

2016-04-10 Thread Simon Glass
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model, which needs to maintain this itself. Move the list code into a separate 'legacy' file. The core MMC code remains, and will be shared with the driver-model implementation. Signed-off-by: Simon Gl

[U-Boot] [PATCH 09/23] dm: blk: Add functions to select a hardware partition

2016-04-10 Thread Simon Glass
The block device uclass does not currently support selecting a particular hardware partition but this is needed for MMC. Add it so that the blk API can support MMC properly. Signed-off-by: Simon Glass --- drivers/block/blk-uclass.c | 29 + include/blk.h

[U-Boot] [PATCH 08/23] dm: mmc: Use the new select_hwpart() API

2016-04-10 Thread Simon Glass
Avoid calling directly into the MMC code - use the new API call instead. Signed-off-by: Simon Glass --- cmd/mmc.c | 8 +--- common/env_mmc.c| 4 ++-- common/spl/spl_mmc.c| 2 +- drivers/dfu/dfu_mmc.c | 13 + drivers/mmc/mmc.c | 2 +- drivers

[U-Boot] [PATCH 07/23] dm: mmc: spl: Use the legacy block interface in SPL

2016-04-10 Thread Simon Glass
Bring this in for SPL so that we can use generic code for loading from block devices. Signed-off-by: Simon Glass --- drivers/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/Makefile b/drivers/Makefile index 696b3ac..99dd07f 100644 --- a/drivers/Makefile +++ b/drivers/Makefi

[U-Boot] [PATCH 05/23] dm: mmc: Implement the select_hwpart() method

2016-04-10 Thread Simon Glass
Implement this method so that hardware partitions will work correctly with MMC. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 2211ac6..e270f5f 100644 --- a/drivers/mmc/mmc.

[U-Boot] [PATCH 04/23] dm: mmc: Move mmc_switch_part() above its callers

2016-04-10 Thread Simon Glass
This function is defined after it is used. In preparation for making it static, move it up a little. Also drop the printf() which should not appear in a driver. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 45 + 1 file changed, 21 insertions(+),

[U-Boot] [PATCH 11/23] dm: part: Drop the block_drvr table

2016-04-10 Thread Simon Glass
This is not needed since we can use the functions provided by the legacy block device support. Signed-off-by: Simon Glass --- disk/part.c | 67 ++- lib/efi_loader/efi_disk.c | 19 +- 2 files changed, 26 insertions(+), 60 dele

[U-Boot] [PATCH 06/23] dm: mmc: Add a function to obtain the block device

2016-04-10 Thread Simon Glass
The MMC block device is contained within struct mmc. But with driver model this will not be the case. Add a function to obtain the block device. We can later implement this for CONFIG_BLK. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 5 + include/mmc.h | 8 2 files change

[U-Boot] [PATCH 02/23] dm: core: Allow device names to be freed automatically

2016-04-10 Thread Simon Glass
Some devices have a name that is stored in allocated memory. At present there is no mechanism to free this memory when the device is unbound. Add a device flag to track whether a name is allocated and a function to add the flag. Free the memory when the device is unbound. Signed-off-by: Simon Gla

[U-Boot] [PATCH 03/23] dm: blk: Free the block device name when unbound

2016-04-10 Thread Simon Glass
Mark the device name as allocated so that it will be freed correctly when the device is unbound. Signed-off-by: Simon Glass --- drivers/block/blk-uclass.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c in

[U-Boot] [PATCH 01/23] dm: blk: Fix allocation of block-device numbering

2016-04-10 Thread Simon Glass
Due to code ordering the block devices are not numbered sequentially. Fix this. Signed-off-by: Simon Glass --- drivers/block/blk-uclass.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 6ecbff0.

Re: [U-Boot] [PATCH] serial: add BCM283x mini UART driver

2016-04-10 Thread Tom Rini
On Sat, Apr 09, 2016 at 09:45:36PM -0600, Stephen Warren wrote: > On 04/09/2016 12:34 PM, Simon Glass wrote: > >Hi Stephen, > > > >On 16 March 2016 at 21:46, Stephen Warren wrote: > >>The RPi3 typically uses the regular UART for high-speed communication with > >>the Bluetooth device, leaving us th

Re: [U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-10 Thread Marek Vasut
On 04/10/2016 05:30 PM, Beniamino Galvani wrote: > This adds platform code for the Amlogic Meson GXBaby (S905) SoC and a > board definition for ODROID-C2. This initial submission only supports > UART and Ethernet (through the existing Designware driver). DTS files > are the ones submitted to Linux

Re: [U-Boot] [PATCH v3 1/2] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-10 Thread Marek Vasut
On 04/10/2016 05:30 PM, Beniamino Galvani wrote: > All members of the DMA descriptor must be 32-bit, even on 64-bit > architectures: change the type to u32 to ensure this. Also, fix > other warnings. > > Signed-off-by: Beniamino Galvani > Acked-by: Joe Hershberger > Reviewed-by: Tom Rini > ---

Re: [U-Boot] [PATCH] efi_loader: Always flush in cache line size granularity

2016-04-10 Thread Marek Vasut
On 04/11/2016 12:31 AM, Alexander Graf wrote: > > > On 11.04.16 00:24, Andreas Färber wrote: >> Am 04.04.2016 um 09:32 schrieb Alexander Graf: >>> The cache line flush helpers only work properly when they get aligned >>> start and end addresses. Round our flush range to cache line size. It's >>>

Re: [U-Boot] [PATCH] efi_loader: Always flush in cache line size granularity

2016-04-10 Thread Alexander Graf
On 11.04.16 00:24, Andreas Färber wrote: > Am 04.04.2016 um 09:32 schrieb Alexander Graf: >> The cache line flush helpers only work properly when they get aligned >> start and end addresses. Round our flush range to cache line size. It's >> safe because we're guaranteed to flush within a single p

Re: [U-Boot] [PATCH] efi_loader: Always flush in cache line size granularity

2016-04-10 Thread Andreas Färber
Am 04.04.2016 um 09:32 schrieb Alexander Graf: > The cache line flush helpers only work properly when they get aligned > start and end addresses. Round our flush range to cache line size. It's > safe because we're guaranteed to flush within a single page which has the > same cache attributes. > >

[U-Boot] [PULL] u-boot-socfpga/master

2016-04-10 Thread Marek Vasut
The following changes since commit 43d3fb5c0609a76409e7859a2a5800670c7b5bd2: Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq (2016-04-06 14:17:22 -0400) are available in the git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to f6060ce4bb0

[U-Boot] [PULL] u-boot-usb/master

2016-04-10 Thread Marek Vasut
The following changes since commit 43d3fb5c0609a76409e7859a2a5800670c7b5bd2: Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq (2016-04-06 14:17:22 -0400) are available in the git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 192eab9357473e0

Re: [U-Boot] [PATCH 0/4] QEMU (qemu-mips) and MIPS 64-bit changes

2016-04-10 Thread Daniel Schwierzeck
Am 17.02.2016 um 14:23 schrieb Stanislav Galabov: > Stanislav Galabov (4): > - Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it > works for both 32-bit and 64-bit targets > - Use CONFIG_IDE_SWAP_IO when running on big-endian MIPS (32 or 64-bit) > in QEMU so that I

Re: [U-Boot] [PATCH v3 2/2] drivers: mtd: add Microchip PIC32 internal non-CFI flash driver.

2016-04-10 Thread Daniel Schwierzeck
Am 18.03.2016 um 14:06 schrieb Purna Chandra Mandal: > PIC32 internal flash devices are parallel NOR flash divided into > number of banks to allow erase-programming in one while fetch and > execution continues on other. As the flash banks are memory mapped > stored code can be executed directly f

Re: [U-Boot] [PATCH v3 1/2] flash: add device ID for Microchip PIC32 internal flash.

2016-04-10 Thread Daniel Schwierzeck
Am 18.03.2016 um 14:06 schrieb Purna Chandra Mandal: > Microchip PIC32 has internal parallel flash (non-CFI compliant). > These flash devices do not support any identifier command so no > standard IDs. Added unique IDs to seperate these flash devices > from others supported by U-Boot. > > Signed

Re: [U-Boot] [PATCH v8 1/9] mips: add base support for QCA/Atheros ath79 SOCs

2016-04-10 Thread Daniel Schwierzeck
Am 16.03.2016 um 09:59 schrieb Wills Wang: > This patch add some common code for QCA/Atheros ath79 SOCs such as > DDR tuning, chip reset and CPU detection. > > Signed-off-by: Wills Wang > --- all nine patches applied to u-boot-mips/next, thanks. > > Changes in v8: > - Use setbits_be32 > - Us

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-04-10 Thread Marek Vasut
On 04/09/2016 12:40 AM, George Broz wrote: > On 8 April 2016 at 05:36, Marek Vasut wrote: >> On 04/08/2016 07:16 AM, Stefan Roese wrote: >>> On 08.04.2016 01:51, George Broz wrote: >>> >>> >>> >>> Try with the attached patch (and probably with dcache off) >> >> The patch applied clean

Re: [U-Boot] [PATCH v5 1/4] arm: add missing writes[bwql], reads[bwql].

2016-04-10 Thread Marek Vasut
On 04/10/2016 07:26 PM, Daniel Schwierzeck wrote: > > > Am 10.04.2016 um 19:18 schrieb Marek Vasut: >> On 04/10/2016 07:03 PM, Daniel Schwierzeck wrote: >>> Hi, >>> >>> Am 21.03.2016 um 08:35 schrieb Purna Chandra Mandal: ARM defines __raw_writes[bwql], __raw_reads[bwql] in arch io.h bu

Re: [U-Boot] [PATCH] mips: Report reloc information in bdinfo

2016-04-10 Thread Daniel Schwierzeck
Am 31.03.2016 um 13:51 schrieb tim.chick: > Signed-off-by: tim.chick > --- > > cmd/bdinfo.c | 2 ++ > 1 file changed, 2 insertions(+) applied to u-boot-mips/next, thanks. > > diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c > index 8eda68b..1c4bed9 100644 > --- a/cmd/bdinfo.c > +++ b/cmd/bdinfo.c >

Re: [U-Boot] [PATCH v5 1/4] arm: add missing writes[bwql], reads[bwql].

2016-04-10 Thread Daniel Schwierzeck
Am 10.04.2016 um 19:18 schrieb Marek Vasut: > On 04/10/2016 07:03 PM, Daniel Schwierzeck wrote: >> Hi, >> >> Am 21.03.2016 um 08:35 schrieb Purna Chandra Mandal: >>> ARM defines __raw_writes[bwql], __raw_reads[bwql] in arch io.h >>> but not the writes[bwql], reads[bwql] needed by some drivers. >>

Re: [U-Boot] [PATCH v5 1/4] arm: add missing writes[bwql], reads[bwql].

2016-04-10 Thread Marek Vasut
On 04/10/2016 07:03 PM, Daniel Schwierzeck wrote: > Hi, > > Am 21.03.2016 um 08:35 schrieb Purna Chandra Mandal: >> ARM defines __raw_writes[bwql], __raw_reads[bwql] in arch io.h >> but not the writes[bwql], reads[bwql] needed by some drivers. >> >> Signed-off-by: Purna Chandra Mandal >> --- > >

Re: [U-Boot] [PATCH v5 1/4] arm: add missing writes[bwql], reads[bwql].

2016-04-10 Thread Daniel Schwierzeck
Hi, Am 21.03.2016 um 08:35 schrieb Purna Chandra Mandal: > ARM defines __raw_writes[bwql], __raw_reads[bwql] in arch io.h > but not the writes[bwql], reads[bwql] needed by some drivers. > > Signed-off-by: Purna Chandra Mandal > --- sorry for noticing this so late, but this patch is assigned to

Re: [U-Boot] [PATCH 7/7] gpio: tegra: remove flags parsing in xlate routine

2016-04-10 Thread Eric Nelson
On 04/10/2016 07:45 AM, Eric Nelson wrote: > On 04/09/2016 11:34 AM, Simon Glass wrote: >> On 5 April 2016 at 16:09, Stephen Warren wrote: >>> On 04/01/2016 09:47 AM, Eric Nelson wrote: With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, it is no longer necessary for the te

Re: [U-Boot] [PATCH v2 9/9] board: odroid-c2: add Ethernet support

2016-04-10 Thread Beniamino Galvani
On Sun, Apr 03, 2016 at 07:20:10PM -0500, Joe Hershberger wrote: > > +#ifdef CONFIG_MISC_INIT_R > > +int misc_init_r(void) > > +{ > > + /* Select Ethernet function */ > > + setbits_le32(GXBB_PINMUX_6, 0x3fff); > > + > > + /* Set RGMII mode */ > > + setbits_le32(GXBB_ETH_REG_

[U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-10 Thread Beniamino Galvani
This adds platform code for the Amlogic Meson GXBaby (S905) SoC and a board definition for ODROID-C2. This initial submission only supports UART and Ethernet (through the existing Designware driver). DTS files are the ones submitted to Linux arm-soc for 4.7 [1]. [1] https://patchwork.ozlabs.org/pa

[U-Boot] [PATCH v3 1/2] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-10 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani Acked-by: Joe Hershberger Reviewed-by: Tom Rini --- drivers/net/designware.c | 54 --

[U-Boot] [PATCH v3 0/2] Amlogic Meson GXBaby and ODROID-C2 support

2016-04-10 Thread Beniamino Galvani
Hi, this series adds a very basic support for Amlogic S905 SoC (GXBaby) and for the ODROID-C2 board [1], and is based on u-boot sources available from the board vendor [2]. At the moment the only supported devices are the integrated UART and Ethernet adapter. Changes since v2: - squashed all pla

[U-Boot] [PATCH] armv8: ls2080a: Update MAINTAINERS file

2016-04-10 Thread Prabhakar Kushwaha
Update MAINTAINERS file for ls2080aqds and ls2080ardb platforms. Signed-off-by: Prabhakar Kushwaha --- board/freescale/ls2080aqds/MAINTAINERS | 2 +- board/freescale/ls2080ardb/MAINTAINERS | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescale/ls2080aqds/MAINTAINE

Re: [U-Boot] [PATCH] dm: gpio: handle GPIO_ACTIVE_LOW flag in DT

2016-04-10 Thread Eric Nelson
Hi Simon, On 04/09/2016 11:33 AM, Simon Glass wrote: > On 4 April 2016 at 11:50, Stephen Warren wrote: >> On 04/03/2016 08:07 AM, Eric Nelson wrote: >>> On 04/02/2016 08:37 PM, Stephen Warren wrote: On 04/02/2016 09:13 AM, Eric Nelson wrote: > On 04/01/2016 10:46 PM, Peng Fan wrote:

Re: [U-Boot] [PATCH 7/7] gpio: tegra: remove flags parsing in xlate routine

2016-04-10 Thread Eric Nelson
Thanks for the feedback Simon. On 04/09/2016 11:34 AM, Simon Glass wrote: > On 5 April 2016 at 16:09, Stephen Warren wrote: >> On 04/01/2016 09:47 AM, Eric Nelson wrote: >>> >>> With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, it is >>> no longer necessary for the tegra-specific xlate

Re: [U-Boot] [RFC PATCH 2/2] mmc: add support for block device cache

2016-04-10 Thread Eric Nelson
Hi Simon, On 04/09/2016 10:55 AM, Simon Glass wrote: > On 20 March 2016 at 16:54, Eric Nelson wrote: >> On 03/20/2016 03:13 PM, Tom Rini wrote: >>> On Sun, Mar 20, 2016 at 12:35:53PM -0700, Eric Nelson wrote: On 03/17/2016 02:23 PM, Stephen Warren wrote: > On 03/16/2016 03:40 PM, Eric Ne

[U-Boot] [PATCH 14/44] dm: scsi: Rename CONFIG_CMD_SCSI to CONFIG_SCSI

2016-04-10 Thread Simon Glass
This option currently enables both the command and the SCSI functionality. Rename the existing option to CONFIG_SCSI since most of the code relates to the feature. Signed-off-by: Simon Glass --- README | 4 ++-- api/api_storage.c | 2

[U-Boot] [PATCH 00/44] dm: blk: Add more driver-model support for block devices

2016-04-10 Thread Simon Glass
This series adjusts the block device code to support conversion to driver model. Specifically - A new 'legacy' block interface is created, allowing block devices to be defined by a linker list and accessed through function calls - Block device commands (such as sata and scsi) are adjusted to use t

[U-Boot] [PATCH] bugfix: unlock current sector instead of sector 0 before, buffered write

2016-04-10 Thread Rouven Behr
>From deafe926491ca94c846c9e03249336d928e362ab Mon Sep 17 00:00:00 2001 From: Rouven Behr Date: Sun, 10 Apr 2016 13:03:20 +0200 Subject: [PATCH] bugfix: unlock current sector instead of sector 0 before buffered write Signed-off-by: Rouven Behr --- drivers/mtd/cfi_flash.c | 2 +- 1 file chang

Re: [U-Boot] [PATCH] sunxi: H3: Do not clear usb companion clk-gate / reset on remove

2016-04-10 Thread Hans de Goede
Hi, On 10-04-16 10:18, Ian Campbell wrote: On Sat, 2016-04-09 at 15:23 +0200, Hans de Goede wrote: On the H3 we need to enable the clk and de-assert the reset of the companion to be able to talk to the actual usb host controller. Before this commit we were also disabling the companion clk-gate

Re: [U-Boot] [PATCH] sunxi: Add defconfig and dts file for Orange Pi One SBC

2016-04-10 Thread Ian Campbell
On Sat, 2016-04-09 at 15:23 +0200, Hans de Goede wrote: > The Orange Pi One SBC, is a stripped down version of the popular > Orange Pi PC. The one is a H3 based SBC, with 512M of RAM, > micro-sd slot, 1 host usb, 1 otg usb, hdmi and 100Mbit ethernet. > > The dts is identical to the dts submitted t

Re: [U-Boot] [PATCH] sunxi: H3: Do not clear usb companion clk-gate / reset on remove

2016-04-10 Thread Ian Campbell
On Sat, 2016-04-09 at 15:23 +0200, Hans de Goede wrote: > On the H3 we need to enable the clk and de-assert the reset of the > companion to be able to talk to the actual usb host controller. > > Before this commit we were also disabling the companion clk-gate / > asserting its reset on remove, cau