Re: [U-Boot] [PATCH v2 2/2] board: README.sandbox: Update dm test command

2016-04-09 Thread Simon Glass
On 17 March 2016 at 00:53, Jagan Teki wrote: > Update dm test command with pytest instead of ./test/dm/test-dm.sh > > Cc: Tom Rini > Cc: Simon Glass > Acked-by: Stephen Warren > Signed-off-by: Jagan Teki

Re: [U-Boot] [PATCH V2] dm: core: device: set pinctrl state for pinctrl device

2016-04-09 Thread Simon Glass
On 6 April 2016 at 07:21, Peng Fan wrote: > We may have pinmux settings for pinctrl device, like the following > example: > " > { > pinctrl-names = "default"; > pinctrl-0 = <_hog_1>; > imx6ul-evk { > pinctrl_hog_1: hoggrp-1 { >

Re: [U-Boot] [PATCH] dm: part: fix missing driver name in debug print

2016-04-09 Thread Simon Glass
On 9 April 2016 at 10:03, Simon Glass wrote: > On 15 March 2016 at 15:15, Nishanth Menon wrote: >> Fixes the following warning with PART_DEBUG enabled: >> disk/part.c: In function ‘get_partition_info’: >> disk/part.c:372:3: warning: format ‘%s’ expects a matching

Re: [U-Boot] [PATCH v2 1/2] doc: driver-model: Update dm tests run using test.py

2016-04-09 Thread Simon Glass
On 9 April 2016 at 10:03, Simon Glass wrote: > On 17 March 2016 at 00:53, Jagan Teki wrote: >> Since all the tests are implemented in pytest infrastructure, >> So update the dm tests with the same instead of ./test/dm/test-dm.sh >> >> Cc: Tom Rini

Re: [U-Boot] [PATCH] dm: device.c: Minor coding-style fix

2016-04-09 Thread Simon Glass
On 16 March 2016 at 03:01, Bin Meng wrote: > On Wed, Mar 16, 2016 at 4:58 PM, Stefan Roese wrote: >> Fix multi-line comment indentation in device_bind() >> >> Signed-off-by: Stefan Roese >> Cc: Simon Glass >> --- >>

Re: [U-Boot] [PATCH] test/dm/core.c: Make pre-reloc test use pre-reloc struct

2016-04-09 Thread Simon Glass
On 29 March 2016 at 03:42, Simon Glass wrote: > On 21 March 2016 at 03:10, Tom Rini wrote: >> >> LLVM 3.5 noted: >> test/dm/core.c:41:35: warning: unused variable 'test_pdata_pre_reloc' >> [-Wunused-const-variable] >> static const struct dm_test_pdata

Re: [U-Boot] [PATCH v2 2/2] board: README.sandbox: Update dm test command

2016-04-09 Thread Simon Glass
On 9 April 2016 at 10:03, Simon Glass wrote: > On 17 March 2016 at 00:53, Jagan Teki wrote: >> Update dm test command with pytest instead of ./test/dm/test-dm.sh >> >> Cc: Tom Rini >> Cc: Simon Glass >> Acked-by:

Re: [U-Boot] [PATCH v2 1/2] doc: driver-model: Update dm tests run using test.py

2016-04-09 Thread Simon Glass
On 17 March 2016 at 00:53, Jagan Teki wrote: > Since all the tests are implemented in pytest infrastructure, > So update the dm tests with the same instead of ./test/dm/test-dm.sh > > Cc: Tom Rini > Cc: Simon Glass > Acked-by: Stephen

Re: [U-Boot] [PATCH] dm: part: fix missing driver name in debug print

2016-04-09 Thread Simon Glass
On 15 March 2016 at 15:15, Nishanth Menon wrote: > Fixes the following warning with PART_DEBUG enabled: > disk/part.c: In function ‘get_partition_info’: > disk/part.c:372:3: warning: format ‘%s’ expects a matching ‘char *’ argument > [-Wformat] > > Signed-off-by: Nishanth Menon

Re: [U-Boot] [PATCH 1/3] drivers: block: Kconfig: set default n to CONFIG_DISK

2016-04-09 Thread Simon Glass
Hi, On 13 March 2016 at 07:08, Tom Rini wrote: > > On Sat, Mar 12, 2016 at 07:52:01PM -0700, Simon Glass wrote: > > Hi Mugunthan, > > > > On 7 March 2016 at 23:30, Mugunthan V N wrote: > > > Hi Simon > > > > > > On Monday 07 March 2016 08:09 AM, Simon

Re: [U-Boot] ITEAD Board (A20) fails to communicate on boot unless UART is connected

2016-04-09 Thread Hans de Goede
Hi, On 08-04-16 16:54, Kevin Welsh wrote: I'm trying to resolve a strange networking issue with the ITEAD Core EVB + AW2041 module. If I connect all 3 UART wires (GND, RCV & TX) between the board and a USB UART device: I get an IP 100% of the time. If I connect only TX & RCV: I get an IP

Re: [U-Boot] [PATCH 3/3] sunxi: Enable usb ports on the Sinovoip BPI M3

2016-04-09 Thread Hans de Goede
Hi, On 05-04-16 12:44, Ian Campbell wrote: On Tue, 2016-04-05 at 11:51 +0200, Hans de Goede wrote: Hi, On 05-04-16 11:44, Ian Campbell wrote: On Sat, 2016-04-02 at 21:10 +0200, Hans de Goede wrote: DLDO3 is used to provide Port-D power and PD is used for the usb-hub / sata-5v enable pins.

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

2016-04-09 Thread Hans de Goede
Lets be consistent and also replace v7_maint_dcache_all() with asm code for the invalidate case. Signed-off-by: Hans de Goede --- Changes in v2: -No changes --- arch/arm/cpu/armv7/cache_v7.c | 100 ++ arch/arm/cpu/armv7/cache_v7_asm.S

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

2016-04-09 Thread 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 marked as noinline. This commit fixes the reliability issues by

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

2016-04-09 Thread Hans de Goede
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 to the upstream kernel. Signed-off-by: Hans de Goede

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

2016-04-09 Thread Hans de Goede
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, causing the later remove callback of the companion itself to

Re: [U-Boot] [PATCH 2/7] gpio: intel_broadwell: remove gpio_xlate routine

2016-04-09 Thread Simon Glass
On 1 April 2016 at 09:47, Eric Nelson wrote: > With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, > the intel_broadwell driver doesn't need a custom xlate routine. > > Signed-off-by: Eric Nelson > --- > drivers/gpio/intel_broadwell_gpio.c | 10

Re: [U-Boot] [PATCH 06/10] drivers: usb: common: add support to get maximum speed from dt

2016-04-09 Thread Simon Glass
Hi, On 15 March 2016 at 06:14, Mugunthan V N wrote: > Add support to get maximum speed from dt so that usb drivers > makes use of it for DT parsing. > > Signed-off-by: Mugunthan V N > --- > drivers/usb/common/common.c | 29 +

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

2016-04-09 Thread Simon Glass
Hi Stephen, 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 function to do this. > > >> diff --git

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

2016-04-09 Thread Simon Glass
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-supply. > > mmc_power_init will first invoke

Re: [U-Boot] [PATCH 5/7] gpio: rk: remove gpio_xlate routine

2016-04-09 Thread Simon Glass
On 1 April 2016 at 09:47, Eric Nelson wrote: > With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, > the Rockchip gpio driver doesn't need a custom xlate routine. > > Signed-off-by: Eric Nelson > --- > drivers/gpio/rk_gpio.c | 10 -- > 1 file

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

2016-04-09 Thread Simon Glass
Hi, On 4 April 2016 at 11:50, Stephen Warren wrote: > On 04/03/2016 08:07 AM, Eric Nelson wrote: >> >> Hi Stephen and Peng, >> >> 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

Re: [U-Boot] [PATCH 4/7] gpio: pic32: remove gpio_xlate routine

2016-04-09 Thread Simon Glass
On 1 April 2016 at 09:47, Eric Nelson wrote: > With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, > the pic32 gpio driver doesn't need a custom xlate routine. > > Signed-off-by: Eric Nelson > --- > drivers/gpio/pic32_gpio.c | 9 - > 1 file

Re: [U-Boot] [PATCH 3/7] gpio: omap: remove gpio_xlate routine

2016-04-09 Thread Simon Glass
On 1 April 2016 at 09:47, Eric Nelson wrote: > With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, > the omap gpio driver doesn't need a custom xlate routine. > > Signed-off-by: Eric Nelson > --- > drivers/gpio/omap_gpio.c | 10 -- > 1 file

Re: [U-Boot] [PATCH 6/7] gpio: exynos(s5p): remove gpio_xlate routine

2016-04-09 Thread Simon Glass
On 1 April 2016 at 09:47, Eric Nelson wrote: > With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, > the Exynos/S5P gpio driver doesn't need a custom xlate routine. > > Signed-off-by: Eric Nelson > --- > drivers/gpio/s5p_gpio.c | 10 -- > 1

Re: [U-Boot] [RFC 2/2] dm: mmc: implement pwrup function

2016-04-09 Thread Simon Glass
On 15 March 2016 at 19:32, Peng Fan wrote: > If vmmc-supply property is provided, then enable it. > If vmmc-supply is not provided, just ignore it. > For now, only fixed regulator is supported. > > In device tree: > " > reg_sd1_vmmc: regulator@1 { >

Re: [U-Boot] [PATCH v2] dm: usb: Do not reprobe usb hosts on "usb tree" command

2016-04-09 Thread Simon Glass
On 2 April 2016 at 16:04, Hans de Goede wrote: > Some usb hosts may have failed to probe on "usb start", i.e. an otg > host without an otg-host cable plugged in. > > "usb tree" would cause the probe method of these hosts to get called > again, something which should only

Re: [U-Boot] [PATCH 5/6] i2c: designware_i2c: Add DM support

2016-04-09 Thread Simon Glass
On 18 March 2016 at 01:54, Stefan Roese wrote: > This patch adds DM support to the designware I2C driver. It currently > supports DM and the legacy I2C support. The legacy support should be > removed, once all platforms using it have DM enabled. > > Signed-off-by: Stefan Roese

Re: [U-Boot] [PATCH] dm: i2c: mxc_i2c: implement i2c_idle_bus

2016-04-09 Thread Simon Glass
On 11 March 2016 at 01:47, Peng Fan wrote: > Implement i2c_idle_bus in driver, then setup_i2c can > be dropped for boards which enable DM_I2C/DM_GPIO/PINCTRL. > The i2c_idle_bus force bus idle flow follows setup_i2c in > arch/arm/imx-common/i2c-mxv7.c > > This patch is an

Re: [U-Boot] [PATCH 1/2] dm: gpio: mxc: fix mxc_gpio_bank_get_value

2016-04-09 Thread Simon Glass
Hi Peng, On 4 April 2016 at 23:04, Peng Fan wrote: > Hi Stefano, > > On Sun, Apr 03, 2016 at 08:09:35PM +0200, Stefano Babic wrote: >>Hi Peng, >> >>On 17/03/2016 02:44, Peng Fan wrote: >>> On Wed, Mar 16, 2016 at 09:48:24AM -0300, Fabio Estevam wrote: Hi Peng,

Re: [U-Boot] [PATCH 01/11] drivers: core: device: add support to check dt compatible for a device/machine

2016-04-09 Thread Simon Glass
Hi Mugunthan, On 7 April 2016 at 09:17, Mugunthan V N wrote: > Provide an api to check whether the given device or machine is > compatible with the given compat string which helps in making > decisions in drivers based on device or machine compatible. > > Idea taken from

Re: [U-Boot] [PATCH V3] common: env: support sata device

2016-04-09 Thread Simon Glass
On 8 April 2016 at 13:45, Tom Rini wrote: > On Sun, Apr 03, 2016 at 09:52:13PM +0800, Peng Fan wrote: > >> Introduce env support for sata device. >> 1. Implement write_env/read_env/env_relocate_spec/saveenv/sata_get_env_dev >> 2. If want to enable this feature, define

Re: [U-Boot] [PATCH 4/5] arm: lib: Sync libgcc 32b division/modulo operations

2016-04-09 Thread Simon Glass
On 20 March 2016 at 10:15, Marek Vasut wrote: > Sync the libgcc 32bit division and modulo operations with Linux 4.4.6 , > commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . The functions in these > four files are present in lib1funcs.S in Linux, so replace these files > with

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

2016-04-09 Thread Stephen Warren
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 structures as an example TI DRA7xx SoC is enabled as 64bit as

[U-Boot] [PATCH 39/44] dm: sandbox: Enable SATA

2016-04-09 Thread Simon Glass
Enable building the SATA code for sandbox. This increases build coverage for sandbox. Signed-off-by: Simon Glass --- include/configs/sandbox.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 6d8ce13..8c497bb

[U-Boot] [PATCH 15/44] dm: blk: Add a legacy block interface

2016-04-09 Thread Simon Glass
There is quite a bit of duplicated common code related to block devices in the IDE and SCSI implementations. Create some helper functions that can be used to reduce the duplication. These rely on a linker list of interface-type drivers Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 30/44] dm: systemace: Drop the get_dev() function

2016-04-09 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass --- disk/part.c | 2 +- drivers/block/systemace.c | 14 +++--- include/part.h| 2 -- include/systemace.h | 7 --- 4 files

[U-Boot] [PATCH 25/44] dm: usb: Drop the get_dev() function

2016-04-09 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass --- board/cm5200/fwupdate.c | 2 +- cmd/usb.c | 16 ++-- common/spl/spl_usb.c| 2 +- common/usb_storage.c| 17 -

[U-Boot] [PATCH 34/44] dm: ide: Add support for driver-model block devices

2016-04-09 Thread Simon Glass
Add driver-model block-device support to the IDE implementation. Signed-off-by: Simon Glass --- common/ide.c | 32 include/ide.h | 8 2 files changed, 40 insertions(+) diff --git a/common/ide.c b/common/ide.c index

[U-Boot] [PATCH 20/44] dm: mmc: Add an implementation of the 'devnum' functions

2016-04-09 Thread Simon Glass
Now that the MMC code accesses devices by number, we can implement this same interface for driver model, allowing MMC to support using driver model for block devices. Add the required functions to the uclass. Signed-off-by: Simon Glass --- drivers/block/blk-uclass.c | 280

[U-Boot] [PATCH 36/44] dm: scsi: Add support for driver-model block devices

2016-04-09 Thread Simon Glass
Add driver-model block-device support to the SCSI implementation. Signed-off-by: Simon Glass --- common/scsi.c | 32 1 file changed, 32 insertions(+) diff --git a/common/scsi.c b/common/scsi.c index 5b6531f..8ac28dd 100644 ---

[U-Boot] [PATCH 37/44] dm: sandbox: Enable SCSI

2016-04-09 Thread Simon Glass
Enable building the SCSI code for sandbox. This increases build coverage for sandbox. Signed-off-by: Simon Glass --- include/configs/sandbox.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index

[U-Boot] [PATCH 18/44] dm: usb: Add a legacy block interface for USB storage

2016-04-09 Thread Simon Glass
Add a legacy block interface for USB storage. Signed-off-by: Simon Glass --- common/usb_storage.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/common/usb_storage.c b/common/usb_storage.c index 9285c95..80bf3db 100644 --- a/common/usb_storage.c +++

[U-Boot] [PATCH 32/44] dm: sandbox: Drop the host_get_dev() function

2016-04-09 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass --- disk/part.c | 2 +- drivers/block/sandbox.c | 10 -- include/part.h | 2 -- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git

[U-Boot] [PATCH 16/44] dm: systemace: Add a legacy block interface

2016-04-09 Thread Simon Glass
Add a legacy block interface for systemace. Signed-off-by: Simon Glass --- drivers/block/systemace.c | 14 ++ include/blk.h | 1 + 2 files changed, 15 insertions(+) diff --git a/drivers/block/systemace.c b/drivers/block/systemace.c index

[U-Boot] [PATCH 31/44] dm: blk: Drop the systemace.h header

2016-04-09 Thread Simon Glass
This has nothing of consequence. Remove it and its only inclusion site. Signed-off-by: Simon Glass --- drivers/block/systemace.c | 1 - include/systemace.h | 10 -- 2 files changed, 11 deletions(-) delete mode 100644 include/systemace.h diff --git

[U-Boot] [PATCH 24/44] dm: disk: Use legacy block driver info for block device access

2016-04-09 Thread Simon Glass
Instead of calling xx_get_dev() functions for each interface type, use the new legacy block driver which can provide the device through its interface. Signed-off-by: Simon Glass --- disk/part.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH 28/44] dm: scsi: Drop the get_dev() function

2016-04-09 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass --- common/scsi.c | 7 --- common/spl/spl_sata.c | 2 +- disk/part.c | 2 +- include/part.h| 2 -- 4 files changed, 2 insertions(+), 11

[U-Boot] [PATCH 13/44] dm: sata: Fix code style problems in cmd/sata.c

2016-04-09 Thread Simon Glass
This file has a few coding style problems. Fix these to make future updates easier. Signed-off-by: Simon Glass --- cmd/sata.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/sata.c b/cmd/sata.c index 8748cce..b1a64d9 100644 ---

[U-Boot] [PATCH 35/44] dm: sandbox: Enable IDE

2016-04-09 Thread Simon Glass
Enable building the IDE code for sandbox. Signed-off-by: Simon Glass --- include/configs/sandbox.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index cc22467..08a45f9 100644 ---

[U-Boot] [PATCH 33/44] dm: part: Drop the get_dev() method

2016-04-09 Thread Simon Glass
This is now handled by the legacy block driver. The get_dev() method is no-longer used. Drop it. Signed-off-by: Simon Glass --- include/part.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/part.h b/include/part.h index 1b17436..afe5633 100644 ---

[U-Boot] [PATCH 44/44] dm: sandbox: Enable systemace

2016-04-09 Thread Simon Glass
Enable building the systemace code for sandbox. This increases build coverage for sandbox. Signed-off-by: Simon Glass --- include/configs/sandbox.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index

[U-Boot] [PATCH 38/44] dm: sata: Add support for driver-model block devices

2016-04-09 Thread Simon Glass
Add driver-model block-device support to the SATA implementation. This is just a dummy implementation for now, since the SATA low-level API uses numbered devices and that doesn't fit with driver model. Signed-off-by: Simon Glass --- common/sata.c | 31

[U-Boot] [PATCH 17/44] dm: sandbox: Add a legacy host block interface

2016-04-09 Thread Simon Glass
Add a legacy block interface for sandbox host. Signed-off-by: Simon Glass --- drivers/block/sandbox.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index 6d41508..2b6a893 100644 --- a/drivers/block/sandbox.c +++

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

2016-04-09 Thread Stephen Warren
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 the mini UART to use for the serial console. Add support

[U-Boot] [PATCH 43/44] dm: systemace: Add driver-mode block-device support

2016-04-09 Thread Simon Glass
Add support for CONFIG_BLK to the systemace driver. Signed-off-by: Simon Glass --- drivers/block/systemace.c | 44 1 file changed, 44 insertions(+) diff --git a/drivers/block/systemace.c b/drivers/block/systemace.c index

[U-Boot] [PATCH 22/44] dm: ide: Separate the non-command code into its own file

2016-04-09 Thread Simon Glass
At present the IDE command code includes both the command-processing code and the core IDE functions and data structures. Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly. With this commit: - Most CONFIG option are

[U-Boot] [PATCH 29/44] dm: sata: Drop the get_dev() function

2016-04-09 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. We cannot yet make sata_dev_desc[] private to common/sata.c as it is used by the SATA drivers. This will require the SATA interface to be reworked. Signed-off-by: Simon Glass --- disk/part.c| 2 +-

[U-Boot] [PATCH 26/44] dm: ide: Drop the get_dev() function

2016-04-09 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass --- common/ide.c | 7 --- disk/part.c| 2 +- include/part.h | 2 -- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/common/ide.c b/common/ide.c index

[U-Boot] [PATCH 42/44] dm: systemace: Reorder function to avoid forward declarataions

2016-04-09 Thread Simon Glass
Move the systemace_get_dev() function below systemace_read() so that we can avoid a forward declaration. Signed-off-by: Simon Glass --- drivers/block/systemace.c | 57 +-- 1 file changed, 26 insertions(+), 31 deletions(-) diff

[U-Boot] [PATCH 21/44] dm: scsi: Separate the non-command code into its own file

2016-04-09 Thread Simon Glass
At present the SCSI command code includes both the command-processing code and the core SCSI functions and data structures. Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly. This functions use the new legacy block

[U-Boot] [PATCH 23/44] dm: sata: Separate the non-command code into its own file

2016-04-09 Thread Simon Glass
At present the SATA command code includes both the command-processing code and the core SATA functions and data structures. Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly. With this commit: - All CONFIG option are

[U-Boot] [PATCH 41/44] dm: blk: Add a easier way to create a named block device

2016-04-09 Thread Simon Glass
Add a function that automatically builds the device name given the parent and a supplied string. Most callers will want to do this, so putting this functionality in one place makes more sense. Signed-off-by: Simon Glass --- common/usb_storage.c | 13 +

[U-Boot] [PATCH 27/44] dm: mmc: Drop the get_dev() function

2016-04-09 Thread Simon Glass
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass --- cmd/mmc.c | 2 +- disk/part.c | 1 - drivers/mmc/mmc.c | 16 ++-- include/part.h| 2 -- 4 files changed, 3 insertions(+), 18 deletions(-)

[U-Boot] [PATCH 40/44] dm: blk: Allow blk_create_device() to allocate the device number

2016-04-09 Thread Simon Glass
Allow a devnum parameter of -1 to indicate that the device number should be alocated automatically. The next highest available device number for that interface type is used. Signed-off-by: Simon Glass --- drivers/block/blk-uclass.c | 29 +

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

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

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

2016-04-09 Thread Simon Glass
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 naming used in Linux driver with gen_7x164 as the prefix. > 3. Enable

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

2016-04-09 Thread Simon Glass
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: pca9536, pca9537 > 8 bits: max7310,

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

2016-04-09 Thread Simon Glass
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. There is only one user - instead of this, can you

Re: [U-Boot] [PATCH v8 4/9] drivers: pinctrl: Add simple pinctrl driver for QCA/Athores ar933x.

2016-04-09 Thread Simon Glass
On 16 March 2016 at 02:59, Wills Wang wrote: > This is a simple pinctrl driver, it just support uart and spi pin-mux now. > > Signed-off-by: Wills Wang > --- > > Changes in v8: None > Changes in v7: None > Changes in v6: None > Changes in v5: None >

Re: [U-Boot] [PATCH 3/5] arm: lib: Sync libgcc shift operations

2016-04-09 Thread Simon Glass
On 20 March 2016 at 10:15, Marek Vasut wrote: > Sync the libgcc shift operations with Linux kernel 4.4.6 , commit > 0d1912303e54ed1b2a371be0bba51c384dd57326 . Syncing these three > files is easy, as there is almost no change in them, except the > addition of Thumb support. > >

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

2016-04-09 Thread Simon Glass
On 18 March 2016 at 07:06, Purna Chandra Mandal wrote: > 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

Re: [U-Boot] mtd; spi-nor: Probing dual uclass drivers from cmd

2016-04-09 Thread Simon Glass
Hi Jagan, On 17 March 2016 at 11:54, Jagan Teki wrote: > Hi Simon and All, > > SPI-NOR with MTD uclass framework, we need to probe the two different > uclass drivers from command like UCLASS_SPI and UCLASS_MTD > > UCLASS_SPI: will detect the spi drivers from drivers/spi

Re: [U-Boot] [PATCH 1/5] arm: include: Import unified.h from Linux kernel

2016-04-09 Thread Simon Glass
Hi Marek, On 20 March 2016 at 10:15, Marek Vasut wrote: > Import unified.h from Linux kernel 4.4.6 , commit > 0d1912303e54ed1b2a371be0bba51c384dd57326 . This header file contains > macros used in libgcc functions in Linux kernel on ARM and will be > needed for the libgcc sync. > >

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

2016-04-09 Thread Simon Glass
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 the mini UART to use for the serial > console. Add support for this UART so we can use it. > >

Re: [U-Boot] [PATCH v8 5/9] drivers: pinctrl: Add simple pinctrl driver for QCA/Athores qca953x.

2016-04-09 Thread Simon Glass
On 16 March 2016 at 02:59, Wills Wang wrote: > This is a simple pinctrl driver, it just support uart and spi pin-mux now. > > Signed-off-by: Wills Wang > --- > > Changes in v8: None > Changes in v7: None > Changes in v6: None > Changes in v5: None >

Re: [U-Boot] [PATCH v8 6/9] drivers: serial: add serial driver for ar933x SOC

2016-04-09 Thread Simon Glass
Hi Wills, On 16 March 2016 at 02:59, Wills Wang wrote: > This patch add support for ar933x serial. > > Reviewed-by: Thomas Chou > Reviewed-by: Daniel Schwierzeck > Reviewed-by: Simon Glass > >

Re: [U-Boot] [PATCH 2/5] arm: lib: Drop underscore from private libgcc filenames

2016-04-09 Thread Simon Glass
On 20 March 2016 at 10:15, Marek Vasut wrote: > Drop the underscore from the filenames of files implementing libgcc > routines. There is no functional change. This change is done to make > sync with Linux kernel easier. > > Signed-off-by: Marek Vasut > Cc: Albert

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

2016-04-09 Thread Simon Glass
Hi Lokesh, On 4 April 2016 at 22:30, 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 > --- > common/spl/spl_fit.c | 96 >

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

2016-04-09 Thread Simon Glass
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 + > 1 file changed, 1

Re: [U-Boot] [PATCH RESEND 2/2] cmd: fdt: add fdt overlay application subcommand

2016-04-09 Thread Simon Glass
Hi Maxime, On 4 April 2016 at 12:25, Maxime Ripard wrote: > The device tree overlays are a good way to deal with user-modifyable > boards or boards with some kind of an expansion mechanism where we can > easily plug new board in (like the BBB or the raspberry

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

2016-04-09 Thread Simon Glass
Hi Michal, On 6 April 2016 at 12:28, Michal Simek wrote: > On 6.4.2016 03:28, Masahiro Yamada wrote: >> Hi. >> >> >> 2016-04-06 4:09 GMT+09:00 Simon Glass : >>> Hi Michal, >>> >>> On 5 April 2016 at 04:15, Michal Simek wrote:

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

2016-04-09 Thread Simon Glass
On 4 April 2016 at 22:30, Lokesh Vutla wrote: > Detect a FIT when loading from a FAT File system and handle it using the > new FIT SPL support. > > Signed-off-by: Lokesh Vutla > --- > common/spl/spl_fat.c | 27 +-- > 1 file

Re: [U-Boot] [PATCH RESEND 1/2] cmd: fdt: Narrow the check for fdt addr

2016-04-09 Thread Simon Glass
On 4 April 2016 at 12:25, Maxime Ripard wrote: > The current code only checks if the fdt subcommand is fdt addr by checking > whether it starts with 'a'. > > Since this is a pretty widely used letter, narrow down that check a bit. > > Signed-off-by: Maxime Ripard

Re: [U-Boot] [PATCH 1/2] pinctrl: add the DM_UC_FLAG_SEQ_ALIAS flag for numbering the devices

2016-04-09 Thread Simon Glass
On 5 April 2016 at 19:45, Thomas Abraham wrote: > It is possible to have multiple pin controllers in the system. Use the > DM_UC_FLAG_SEQ_ALIAS flag so that the pinctrl instances are assigned > a sequence number. > > Cc: Masahiro Yamada > Cc:

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

2016-04-09 Thread Simon Glass
+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 structures as an example > TI DRA7xx SoC is enabled as 64bit as there is LPAE support > but the addresses

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

2016-04-09 Thread Simon Glass
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 which enables OF_LIBFDT.

Re: [U-Boot] [PATCH 2/2] pinctrl: Add pinctrl driver support for Exynos7420 SoC

2016-04-09 Thread Simon Glass
On 5 April 2016 at 19:45, Thomas Abraham wrote: > Add pinctrl driver support for Samsung's Exynos7420 SoC. The changes > have been split into Exynos7420 specific and common Exynos specific > portions so that this implementation is reusable on other Exynos > SoCs as well. >

Re: [U-Boot] [PATCH 0/6] Remove calls from net drivers to legacy miiphy_register() entry-point

2016-04-09 Thread Simon Glass
Hi Joe, On 4 April 2016 at 03:07, Joe Hershberger wrote: > > This is an effort to migrate closer to the phylib approach so that a > new DM approach can be developed from a single starting point. The more > of this legacy code can be removed, the easier it will be to move

[U-Boot] [PATCH 12/44] dm: ide: Remove the forward declarations

2016-04-09 Thread Simon Glass
Reorder the code to avoid needing forward declarations. Fix up code style as needed. Signed-off-by: Simon Glass --- cmd/ide.c | 1924 ++--- 1 file changed, 946 insertions(+), 978 deletions(-) diff --git a/cmd/ide.c

[U-Boot] [PATCH 19/44] dm: mmc: Add a legacy block interface for MMC

2016-04-09 Thread Simon Glass
Add a legacy block interface for MMC. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index d3c22ab..024368c 100644 ---

[U-Boot] [PATCH 11/44] dm: ide: Correct various code style problems

2016-04-09 Thread Simon Glass
Adjust common/ide.c so that it passes most checkpatch.pl checks. Signed-off-by: Simon Glass --- cmd/ide.c | 57 + 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/cmd/ide.c b/cmd/ide.c index

[U-Boot] [PATCH 10/44] dm: scsi: Fix up code style

2016-04-09 Thread Simon Glass
Update the code style of this file so that it passes checkpatch.pl. Signed-off-by: Simon Glass --- cmd/scsi.c | 482 + 1 file changed, 226 insertions(+), 256 deletions(-) diff --git a/cmd/scsi.c b/cmd/scsi.c index

[U-Boot] [PATCH 09/44] dm: scsi: Remove the forward declarations

2016-04-09 Thread Simon Glass
Reorder the code to avoid needing forward declarations. Signed-off-by: Simon Glass --- cmd/scsi.c | 755 +++-- 1 file changed, 378 insertions(+), 377 deletions(-) diff --git a/cmd/scsi.c b/cmd/scsi.c index

[U-Boot] [PATCH 08/44] sandbox: Add dummy SATA functions

2016-04-09 Thread Simon Glass
Add some functions needed by the SATA code. This allows it to be compiled for sandbox, thus increasing build coverage. Signed-off-by: Simon Glass --- drivers/block/Makefile | 2 +- drivers/block/sata_sandbox.c | 33 + 2 files changed,

[U-Boot] [PATCH 06/44] sandbox: Add string and 16-bit I/O functions

2016-04-09 Thread Simon Glass
Add outsw() and insw() functions for sandbox, as these are needed by the IDE code. The functions will not do anything useful if called, but allow the code to be compiled. Also add out16() and in16(), required by systemace. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 07/44] sandbox: Add dummy SCSI functions

2016-04-09 Thread Simon Glass
Add some functions needed by the SCSI code. This allows it to be compiled for sandbox, thus increasing build coverage. Signed-off-by: Simon Glass --- drivers/block/Makefile | 2 +- drivers/block/sandbox_scsi.c | 29 + 2 files changed, 30

[U-Boot] [PATCH 02/44] dm: sandbox: Add a board for sandbox without CONFIG_BLK

2016-04-09 Thread Simon Glass
While the driver-model block device support is in progress, it is useful to build sandbox both with and without CONFIG_BLK. Add a separate board for the latter. Signed-off-by: Simon Glass --- board/sandbox/MAINTAINERS | 7 +++ configs/sandbox_noblk_defconfig | 98

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

2016-04-09 Thread Simon Glass
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(-) diff --git a/drivers/pci/pci.c

[U-Boot] [PATCH 01/44] Revert "dm: sandbox: Drop the pre-DM host implementation"

2016-04-09 Thread Simon Glass
Bring this support back so that sandbox can be compiled with CONFIG_BLK. This allows sandbox to have greater build coverage during the block-device transition. This can be removed again later. This reverts commit 33cf727b1634dbd9cd68a6ebc444a88f053822d7. Signed-off-by: Simon Glass

  1   2   >