Re: [U-Boot] [PATCH 00/30] dm: Add driver-model support for block drivers

2016-02-29 Thread Simon Glass
Hi Tom, On 15 February 2016 at 15:37, Tom Rini wrote: > On Sun, Feb 14, 2016 at 07:16:29PM -0700, Simon Glass wrote: > >> Recent additions of the MMC and DISK uclasses have indicated that it is time >> to look at adding a uclass for block devices. This series does this and >> includes a few clean

Re: [U-Boot] [PATCH 00/30] dm: Add driver-model support for block drivers

2016-02-29 Thread Simon Glass
Hi Stephen, On 16 February 2016 at 16:43, Stephen Warren wrote: > On 02/14/2016 07:16 PM, Simon Glass wrote: >> >> Recent additions of the MMC and DISK uclasses have indicated that it is >> time >> to look at adding a uclass for block devices. This series does this and >> includes a few clean-ups

[U-Boot] [PATCH] RFC: rockchip: video: Lower hpd wait time

2016-02-29 Thread Sjoerd Simons
Waiting 30 seconds for the hpd to go high seems a bit much, especially on headless boots. Lowering the timeout to 300ms. Sending as RFC because frankly i don't know what a sensible timeout is here, but 30 seconds is clearly not it :) Signed-off-by: Sjoerd Simons --- drivers/video/rockchip/rk_

[U-Boot] [PATCH v2 07/12] net: gmac_rk3288: Add RK3288 GMAC driver

2016-02-29 Thread Sjoerd Simons
Add a new driver for the GMAC ethernet interface present in Rockchip RK3288 SOCs. This driver subclasses the generic design-ware driver to add the glue needed specifically for Rockchip. Signed-off-by: Sjoerd Simons --- Changes in v2: - Fix various coding style nits - Adjust to new hook name d

[U-Boot] [PATCH v2 06/12] rockchip: rk3288: grf: Define GRF_SOC_CON1 and GRF_SOC_CON3

2016-02-29 Thread Sjoerd Simons
Add definitions for GRF_SOC_CON1 and GRF_SOC_CON3 which contain various GMAC related fields. Signed-off-by: Sjoerd Simons --- Changes in v2: None arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 53 + 1 file changed, 53 insertions(+) diff --git a/arch/arm/include/asm/

[U-Boot] [PATCH v2 00/12] Add support for Rockchip RK3288 Ethernet

2016-02-29 Thread Sjoerd Simons
Second round to add support for the GMAC Ethernet interface on RK3288 SoCs. I had hope to follow up a lot earlier, but things were bussier then expected :( To add support I've taken a slightly different approach then some of the other boards with a designware IP block, by creating a new driver to

[U-Boot] [PATCH v2 05/12] rockchip: rk3288: Add clock support for the gmac ethernet interface

2016-02-29 Thread Sjoerd Simons
Setup the clocks for the gmac ethernet interface. This assumes the mac clock is fed by an external clock which is common on RK3288 based devices. Signed-off-by: Sjoerd Simons --- Changes in v2: None arch/arm/include/asm/arch-rockchip/cru_rk3288.h | 17 + drivers/clk/clk_rk3288.

[U-Boot] [PATCH v2 08/12] rockchip: rk3288-firefly: Add gmac definition

2016-02-29 Thread Sjoerd Simons
Add a definition for the gmac interface to the firefly device-tree. Copied verbatim from the linux kernel. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-firefly.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v2 12/12] rockchip: Drop Ethernet from the TODO

2016-02-29 Thread Sjoerd Simons
Now that ethernet support works, it can be dropped from the rockchip TODO Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- Changes in v2: None doc/README.rockchip | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index e0572c8..3ce12d3 100644

[U-Boot] [PATCH v2 04/12] rockchip: rk3288: pinctrl: support more pins

2016-02-29 Thread Sjoerd Simons
The rgmii_pins node in rk3288.dtsi configures 15 pins. Increase the size of the cell array to accomedate that, otherwise only the first 10 get configured. Signed-off-by: Sjoerd Simons --- Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[U-Boot] [PATCH v2 09/12] rockchip: rock2: dts: use status = "okay" not ok

2016-02-29 Thread Sjoerd Simons
u-boot only recognize okay to enable a node (Linux seems to be more lenient here). So use okay instead. Signed-off-by: Sjoerd Simons --- Changes in v2: None arch/arm/dts/rk3288-rock2-square.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3288-rock2-square

[U-Boot] [PATCH v2 03/12] net: designware: Add a fix_mac_speed hook

2016-02-29 Thread Sjoerd Simons
Add the ability for e.g. drivers subclassing to register a function to be called after phy link negotiation. This is useful if e.g. the driver needs to change the mac configuration based on the negotiated speed. Signed-off-by: Sjoerd Simons --- Changes in v2: - Move the hook into the dw_adjust_

[U-Boot] [PATCH v2 11/12] rockchip: Add PXE and DHCP to the default boot targets

2016-02-29 Thread Sjoerd Simons
Now that at least on the firefly board we have network support, enable PXE and DHCP boot targets by default. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- Changes in v2: None include/configs/rk3288_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includ

[U-Boot] [PATCH v2 10/12] rockchip: Enable networking support on rock2 and firefly

2016-02-29 Thread Sjoerd Simons
Enable the various configuration option required to get the ethernet interface up and running on Radxa Rock2 and Firefly. Signed-off-by: Sjoerd Simons --- Changes in v2: None configs/firefly-rk3288_defconfig | 5 + configs/rock2_defconfig | 5 + 2 files changed, 10 insertions(

[U-Boot] [PATCH v2 02/12] net: designware: Export various functions/struct to allow subclassing

2016-02-29 Thread Sjoerd Simons
To allow other DM drivers to subclass the designware driver various functions and structures need to be exported. Export these. Signed-off-by: Sjoerd Simons Reviewed-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: None drivers/net/designware.c | 6 +++--- drivers/net/designware.h | 4 +

[U-Boot] [PATCH v2 01/12] net: designware: support phy reset device-tree bindings

2016-02-29 Thread Sjoerd Simons
Add support for the snps,reset-gpio, snps,reset-active-low (optional) and snps,reset-delays-us device-tree bindings. The combination of these three define how the PHY should be reset to ensure it's in a sane state. Signed-off-by: Sjoerd Simons --- Changes in v2: - Store probe gpio in private da

Re: [U-Boot] [PATCH 03/17] drivers: usb: musb: add ti musb misc driver for wrapper

2016-02-29 Thread Mugunthan V N
On Monday 29 February 2016 09:14 AM, Mugunthan V N wrote: > Add a misc driver for MUSB wrapper, so that based on dr_mode the > USB devices can bind to USB host or USB device drivers. > > Signed-off-by: Mugunthan V N > --- > drivers/usb/musb-new/Kconfig | 9 + > drivers/usb/musb-new/Makefi

Re: [U-Boot] pull request: u-boot-uniphier/master

2016-02-29 Thread Masahiro Yamada
Hi Tom, I found a small bug in this series. If it is not too late, please let me fix it and do a 2nd round. If it is, it's OK, I will send a follow-up patch. 2016-02-29 4:03 GMT+09:00 Masahiro Yamada : > Hi Tom, > > Here is a bunch of UniPhier updates which include GPIO driver support, > MM

[U-Boot] [PATCH 1/1] am33xx: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Mugunthan V N
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property" reg_offset is added to the struct ns16550_platdata to be dt compatible with Linux kernel driver, TI AM335x evms are broken as the serial platdata updates wrong offsets. Correcting it with initializing reg_offset to zero.

Re: [U-Boot] [PATCH 1/1] am33xx: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Lokesh Vutla
On Monday 29 February 2016 02:55 PM, Mugunthan V N wrote: > With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property" > reg_offset is added to the struct ns16550_platdata to be > dt compatible with Linux kernel driver, TI AM335x evms are broken > as the serial platdata updates

Re: [U-Boot] [PATCH] usb: gadget: composite: Correct recovery path for register

2016-02-29 Thread Lukasz Majewski
Hi Marek, > On 02/26/2016 08:43 PM, Sam Protsenko wrote: > > On Fri, Feb 19, 2016 at 9:34 PM, Sam Protsenko > > wrote: > >> + Praneeth Bajjuri > >> + Tom Rini > >> + Rob Herring > >> > >> On Tue, Feb 16, 2016 at 7:59 PM, Semen Protsenko > >> wrote: > >>> From: Sam Protsenko > >>> > >>> In case

Re: [U-Boot] U-Boot as first bootloader on Exynos platforms

2016-02-29 Thread Lukasz Majewski
Hi Paul, > Hi, > > I was told some time ago that a publicly-available version of the > Samsung Chromebook 2 (supposedly, the one with an Exynos 5800 SoC) > allows running unsigned code (the U-Boot SPL) directly after the > bootrom. Is that correct? > > Do you know of any (other) publicly availab

Re: [U-Boot] [PATCH 2/2] Add support the Avionic Design Meerkat COM and Kein Baseboard

2016-02-29 Thread Julian Scheel
Hi Stephen, On 23.02.2016 19:03, Stephen Warren wrote: On 02/23/2016 05:59 AM, Julian Scheel wrote: Add support for platforms based on the Meerkat COM module. Includes support for the minimal reference platform called Kein Baseboard, which in fact is sufficient to run most existing Meerkat carr

[U-Boot] [PATCH] spl_mmc: allow to load raw image

2016-02-29 Thread Masahiro Yamada
The function spl_parse_image_header() falls back to a raw image if the U-Boot header is missing and CONFIG_SPL_PANIC_ON_RAW_IMAGE is undefined. While, the bad magic checking here makes the spl_parse_image_header() unreachable in case of the missing header. Signed-off-by: Masahiro Yamada --- co

[U-Boot] [PATCH] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Adam Ford
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property" reg_offset is added to the struct ns16550_platdata to be dt compatible with Linux kernel driver. A variety of OMAP3 boards are broken as the serial platdata is missing offsets. By explicitly naming the entry, this should a

[U-Boot] [PATCH] spl_nor: fix warning when compiled for 64bit target

2016-02-29 Thread Masahiro Yamada
Fix "warning: cast to pointer from integer of different size". Signed-off-by: Masahiro Yamada --- common/spl/spl_nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index e08afe2..d0bd0b0 100644 --- a/common/spl/spl_nor.c +++ b/c

[U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Adam Ford
V2: I hastily copy-pasted the boards without looking at the UART number. This addresses 3 boards that use UART3 and not UART1. With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property" reg_offset is added to the struct ns16550_platdata to be dt compatible with Linux kernel drive

[U-Boot] [PATCH] mtd: denali: fix warning when compiled for 64bit system

2016-02-29 Thread Masahiro Yamada
The 64-bit compiler (ex. aarch64) emits "warning: cast from pointer to integer of different size". Make it work with 64bit DMA address while I am here. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [U-Boot] [PATCH] usb: gadget: composite: Correct recovery path for register

2016-02-29 Thread Marek Vasut
On 02/29/2016 11:11 AM, Lukasz Majewski wrote: > Hi Marek, > >> On 02/26/2016 08:43 PM, Sam Protsenko wrote: >>> On Fri, Feb 19, 2016 at 9:34 PM, Sam Protsenko >>> wrote: + Praneeth Bajjuri + Tom Rini + Rob Herring On Tue, Feb 16, 2016 at 7:59 PM, Semen Protsenko wr

Re: [U-Boot] [PATCH 03/17] drivers: usb: musb: add ti musb misc driver for wrapper

2016-02-29 Thread Marek Vasut
On 02/29/2016 04:44 AM, Mugunthan V N wrote: > Add a misc driver for MUSB wrapper, so that based on dr_mode the > USB devices can bind to USB host or USB device drivers. > > Signed-off-by: Mugunthan V N > --- > drivers/usb/musb-new/Kconfig | 9 + > drivers/usb/musb-new/Makefile | 1 + >

Re: [U-Boot] [PATCH 05/17] drivers: usb: musb: adopt musb backend driver to driver model

2016-02-29 Thread Marek Vasut
On 02/29/2016 04:44 AM, Mugunthan V N wrote: > Currently all backend driver ops uses hard coded physical > address, so to adopt the driver to DM, add device pointer to ops > call backs so that drivers that drivers can get physical > addresses from the usb driver priv/plat data. > > Signed-off-by:

Re: [U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-02-29 Thread Jagan Teki
Hi York, On 27 February 2016 at 02:14, york sun wrote: > On 02/22/2016 10:18 AM, Jagan Teki wrote: >> Hi York, >> >> On 15 February 2016 at 02:16, Jagan Teki wrote: >>> Compared to previous patch series this series adds spi-nor >>> core with spi-nor controller drivers are of "mtd uclass" >>> >>>

Re: [U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-02-29 Thread Jagan Teki
Hi Fabio, On 24 February 2016 at 02:16, Fabio Estevam wrote: > On Tue, Feb 23, 2016 at 10:03 AM, Jagan Teki wrote: >> Hi Fabio, >> >> On 23 February 2016 at 00:22, Fabio Estevam wrote: >>> On Mon, Feb 22, 2016 at 3:17 PM, Jagan Teki wrote: >>> Can you pls- test the dataflash changes? use

Re: [U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Heiko Schocher
Hello Adam, Am 29.02.2016 um 12:53 schrieb Adam Ford: V2: I hastily copy-pasted the boards without looking at the UART number. This addresses 3 boards that use UART3 and not UART1. With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property" reg_offset is added to the struct ns1

Re: [U-Boot] [PATCH 2/2] warp7: Add initial support

2016-02-29 Thread Fabio Estevam
On Mon, Feb 29, 2016 at 2:15 AM, Peng Fan wrote: >>+ MX7D_PAD_SD3_RESET_B__SD3_RESET_B | MUX_PAD_CTRL(USDHC_PAD_CTRL), > > Will this pin be used? I did not see code to use this. It is OK to configure the IOMUX correctly independently of the driver using it or not. >>+CONFIG_IMX_RDC=y >>+CO

[U-Boot] [PATCH v2 2/2] warp7: Add initial support

2016-02-29 Thread Fabio Estevam
From: Fabio Estevam Add the basic support for Warp7 board. For more information about this reference design, please visit: https://www.element14.com/community/docs/DOC-79058/l/warp-7-the-next-generation-wearable-reference-platform Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan --- Change

[U-Boot] [PATCH v2 1/2] mx7_common: Put early/late init configs into board file

2016-02-29 Thread Fabio Estevam
From: Fabio Estevam CONFIG_BOARD_EARLY_INIT_F and CONFIG_BOARD_LATE_INIT should not be placed into mx7_common because not all boards need these options. Move them to the board file instead. Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan --- Changes since v1: - None include/configs/mx7_c

Re: [U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-02-29 Thread Fabio Estevam
On Mon, Feb 29, 2016 at 9:27 AM, Jagan Teki wrote: > Please verify 'sf protect' as well if you haven't tested. I tested it last week and it worked fine. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-02-29 Thread Jagan Teki
Hi Simon, On 27 February 2016 at 04:34, Simon Glass wrote: > Hi Jagan, > > On 26 February 2016 at 13:44, york sun wrote: >> On 02/22/2016 10:18 AM, Jagan Teki wrote: >>> Hi York, >>> >>> On 15 February 2016 at 02:16, Jagan Teki wrote: Compared to previous patch series this series adds spi-

Re: [U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-02-29 Thread Jagan Teki
On 29 February 2016 at 18:04, Fabio Estevam wrote: > On Mon, Feb 29, 2016 at 9:27 AM, Jagan Teki wrote: > >> Please verify 'sf protect' as well if you haven't tested. > > I tested it last week and it worked fine. OK, thanks! -- Jagan. ___ U-Boot mail

Re: [U-Boot] [PATCH v4 0/5] dm: omap3_spi: Convert to driver model

2016-02-29 Thread Jagan Teki
Christophe/All, On 22 February 2016 at 18:11, Jagan Teki wrote: > Christophe, > > Please test this series if you have hw. > > On 22 February 2016 at 18:09, Jagan Teki wrote: >> Changes for v4: >> - rebase to master >> Changes for v3: >> - Add DECLARE_GLOBAL_DATA_PTR >> Changes fo

Re: [U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Adam Ford
V1 I changed all the platform data to explicitly name the entries instead of just using a table of numbers. This would hopefully address future proofing against the header changing order. I copy-pasted the table from my board to a series of boards and then later realized I had accidentally change

Re: [U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Alexander Graf
On 02/29/2016 12:53 PM, Adam Ford wrote: V2: I hastily copy-pasted the boards without looking at the UART number. This addresses 3 boards that use UART3 and not UART1. With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property" reg_offset is added to the struct ns16550_platdata

Re: [U-Boot] [PATCH 03/17] drivers: usb: musb: add ti musb misc driver for wrapper

2016-02-29 Thread Mugunthan V N
On Monday 29 February 2016 05:32 PM, Marek Vasut wrote: > On 02/29/2016 04:44 AM, Mugunthan V N wrote: >> Add a misc driver for MUSB wrapper, so that based on dr_mode the >> USB devices can bind to USB host or USB device drivers. >> >> Signed-off-by: Mugunthan V N >> --- >> drivers/usb/musb-new/K

Re: [U-Boot] [PATCH 05/17] drivers: usb: musb: adopt musb backend driver to driver model

2016-02-29 Thread Mugunthan V N
On Monday 29 February 2016 05:34 PM, Marek Vasut wrote: > On 02/29/2016 04:44 AM, Mugunthan V N wrote: >> Currently all backend driver ops uses hard coded physical >> address, so to adopt the driver to DM, add device pointer to ops >> call backs so that drivers that drivers can get physical >> addr

Re: [U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Heiko Schocher
Hello Adam, Am 29.02.2016 um 13:51 schrieb Adam Ford: V1 I changed all the platform data to explicitly name the entries instead of just using a table of numbers. This would hopefully address future proofing against the header changing order. I copy-pasted the table from my board to a series of

[U-Boot] [PATCH 2/3] am335x-bbw: Add am335x_bone_defconfig using CONFIG_DM

2016-02-29 Thread Mugunthan V N
Add config file for AM335x Beagle Bone White and enable DM, DM_GPIO, DM_SERIAL, DM_ETH and DM_MMC. Signed-off-by: Mugunthan V N --- arch/arm/dts/Makefile | 4 +++- configs/am335x_bone_defconfig | 27 +++ 2 files changed, 30 insertions(+), 1 deletion(-) create mo

[U-Boot] [PATCH 0/3] device model bringup of AM335x bbw and sk-evm

2016-02-29 Thread Mugunthan V N
This patch series enables Driver Model and Device tree usage for AM335x Beagle Bone White and AM335x EVMsk tested it on same with loading file from MMC and over TFTP. (Loga [1]). Also pushed a branch [2] for reference. [1]: http://pastebin.ubuntu.com/15243394/ [2]: git://git.ti.com/~mugunthanvnm/t

[U-Boot] [PATCH 1/3] include: configs: am335x_evm: add FAT_ENV configs when env is in fat

2016-02-29 Thread Mugunthan V N
When CONFIG_ENV_IS_IN_FAT is defined, define FAT_ENV configurations for storing the environment setup. Signed-off-by: Mugunthan V N --- include/configs/am335x_evm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 6ebe0b3

[U-Boot] [PATCH 3/3] am437x-sk: add am335x_gp_evm_defconfig using CONFIG_DM

2016-02-29 Thread Mugunthan V N
Import DT file for am335x-sk-evm from Linux Kernel v4.4 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL, DM_ETH and DM_MMC. Signed-off-by: Mugunthan V N --- arch/arm/dts/Makefile | 1 + arch/arm/dts/am335x-evmsk.dts | 720 conf

Re: [U-Boot] [PATCH 0/3] device model bringup of AM335x bbw and sk-evm

2016-02-29 Thread Tom Rini
On Mon, Feb 29, 2016 at 07:28:26PM +0530, Mugunthan V N wrote: > This patch series enables Driver Model and Device tree usage for > AM335x Beagle Bone White and AM335x EVMsk tested it on same with > loading file from MMC and over TFTP. (Loga [1]). Also pushed a > branch [2] for reference. > > [1]

Re: [U-Boot] pull request: u-boot-uniphier/master

2016-02-29 Thread Tom Rini
On Mon, Feb 29, 2016 at 06:06:10PM +0900, Masahiro Yamada wrote: > Hi Tom, > > I found a small bug in this series. > > If it is not too late, please let me fix it and do a 2nd round. > > If it is, it's OK, I will send a follow-up patch. Yes, OK, thanks. -- Tom signature.asc Description: Di

Re: [U-Boot] [PATCH 05/17] drivers: usb: musb: adopt musb backend driver to driver model

2016-02-29 Thread Marek Vasut
On 02/29/2016 02:26 PM, Mugunthan V N wrote: > On Monday 29 February 2016 05:34 PM, Marek Vasut wrote: >> On 02/29/2016 04:44 AM, Mugunthan V N wrote: >>> Currently all backend driver ops uses hard coded physical >>> address, so to adopt the driver to DM, add device pointer to ops >>> call backs so

Re: [U-Boot] [PATCH 03/17] drivers: usb: musb: add ti musb misc driver for wrapper

2016-02-29 Thread Tom Rini
On Mon, Feb 29, 2016 at 06:51:32PM +0530, Mugunthan V N wrote: > On Monday 29 February 2016 05:32 PM, Marek Vasut wrote: > > On 02/29/2016 04:44 AM, Mugunthan V N wrote: > >> Add a misc driver for MUSB wrapper, so that based on dr_mode the > >> USB devices can bind to USB host or USB device drivers

Re: [U-Boot] [PATCH 03/17] drivers: usb: musb: add ti musb misc driver for wrapper

2016-02-29 Thread Marek Vasut
On 02/29/2016 03:42 PM, Tom Rini wrote: > On Mon, Feb 29, 2016 at 06:51:32PM +0530, Mugunthan V N wrote: >> On Monday 29 February 2016 05:32 PM, Marek Vasut wrote: >>> On 02/29/2016 04:44 AM, Mugunthan V N wrote: Add a misc driver for MUSB wrapper, so that based on dr_mode the USB devices

Re: [U-Boot] [PATCH 05/17] drivers: usb: musb: adopt musb backend driver to driver model

2016-02-29 Thread Tom Rini
On Mon, Feb 29, 2016 at 02:34:41PM +0100, Marek Vasut wrote: > On 02/29/2016 02:26 PM, Mugunthan V N wrote: > > On Monday 29 February 2016 05:34 PM, Marek Vasut wrote: > >> On 02/29/2016 04:44 AM, Mugunthan V N wrote: > >>> Currently all backend driver ops uses hard coded physical > >>> address, so

[U-Boot] [PATCH] Revert "dm: ns16550: Add support for reg-offset property"

2016-02-29 Thread Tom Rini
This reverts commit d9a3bec682f9756621615f4306718a356a3230e3. While this is a correct change to do long term it unfortunately breaks a number of platforms that are using pdata and not named struct members so they are getting all of their data after 'base' incorrect. Acked-by: Michal Simek Signed

Re: [U-Boot] [PATCH] Revert "dm: ns16550: Add support for reg-offset property"

2016-02-29 Thread Tom Rini
On Mon, Feb 29, 2016 at 10:29:21AM -0500, Tom Rini wrote: > This reverts commit d9a3bec682f9756621615f4306718a356a3230e3. > > While this is a correct change to do long term it unfortunately breaks a > number of platforms that are using pdata and not named struct members so > they are getting all

[U-Boot] pull request: u-boot-uniphier/master (2nd round)

2016-02-29 Thread Masahiro Yamada
Hi Tom, Here is a bunch of UniPhier updates which include GPIO driver support, MMC driver support, DRAM init code clean-ups, etc. Please pull. Changes for 2nd round: - Fix a build error when CONFIG_DEBUG_LL is defined The following changes since commit 50dc8677d769be6e2b34f49b6c43ad1e977bd

Re: [U-Boot] Problem with attaching UBI partition

2016-02-29 Thread Bakhvalov, Denis (Nokia - PL/Wroclaw)
Hi Jagan, Heiko, > Did you enable CONFIG_SPI_FLASH_SPANSION on your config, becuase > S25FL512S is already been added u-boot. Pls- check the same and let me > know if you find any issues while detecting the flash. > Whether the driver detecting flash or not with RDID, please define > DEBUG on dri

Re: [U-Boot] [PATCH 02/10] arm64: Make full va map code more dynamic

2016-02-29 Thread Stephen Warren
On 02/27/2016 05:09 AM, Alexander Graf wrote: On 26.02.16 20:25, Stephen Warren wrote: On 02/25/2016 09:36 AM, Alexander Graf wrote: On 24.02.16 19:14, Stephen Warren wrote: On 02/24/2016 05:11 AM, Alexander Graf wrote: The idea to generate our pages tables from an array of memory ranges

[U-Boot] [PATCH] compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6

2016-02-29 Thread Tom Rini
Copy these from Linux v4.5-rc6 tag. This is needed so that we can keep up with newer gcc versions. Note that we don't have the uapi/ hierarchy from the kernel so continue to use Signed-off-by: Tom Rini --- include/linux/compiler-gcc.h | 259 include

Re: [U-Boot] [PATCH 2/2] Add support the Avionic Design Meerkat COM and Kein Baseboard

2016-02-29 Thread Stephen Warren
On 02/29/2016 03:20 AM, Julian Scheel wrote: Hi Stephen, On 23.02.2016 19:03, Stephen Warren wrote: On 02/23/2016 05:59 AM, Julian Scheel wrote: Add support for platforms based on the Meerkat COM module. Includes support for the minimal reference platform called Kein Baseboard, which in fact i

[U-Boot] placement for new clock drivers

2016-02-29 Thread Dinh Nguyen
Hi, I have a few questions regarding the UCLASS_CLK driver. I need to implement a clock driver for a new-ish platform, an ARMv7 based SoCFPGA Arria10. I think going forward, it would make sense to place the driver to be of UCLASS_CLK and would go into drivers/clk/, instead of under arch/arm/mach-

Re: [U-Boot] Problem with attaching UBI partition

2016-02-29 Thread Jagan Teki
+ Marek On 29 February 2016 at 22:14, Bakhvalov, Denis (Nokia - PL/Wroclaw) wrote: > Hi Jagan, Heiko, > >> Did you enable CONFIG_SPI_FLASH_SPANSION on your config, becuase >> S25FL512S is already been added u-boot. Pls- check the same and let me >> know if you find any issues while detecting the

[U-Boot] [PATCH] amcc-common.h: Disable CONFIG_SYS_LONGHELP

2016-02-29 Thread Tom Rini
There are a number of AMCC platforms which are close to, or with some toolchains exceeding, the size constraints. Disable CONFIG_SYS_LONGHELP to get us room to build with again. Signed-off-by: Tom Rini --- include/configs/amcc-common.h |1 - 1 file changed, 1 deletion(-) diff --git a/inclu

Re: [U-Boot] [PATCH v4 3/5] spi: omap3: Move headers code inside the driver

2016-02-29 Thread Christophe Henri RICARD
Hi Jagan, Please see some feedback below. I got some patch formatting issues. Please see below CR >> Best Regards Christophe -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: lundi 22 février 2016 13:39 To: u-boot@lists.denx.de Cc: Christophe Henri RICARD; Simon Gla

Re: [U-Boot] [PATCH v4 0/5] dm: omap3_spi: Convert to driver model

2016-02-29 Thread Christophe Henri RICARD
Hi Jagan, Apologies for the delay, i got busy on other non u-boot topic. I have been reviewing and tried to applied your patches but it seems patches 3/4/5 got some formatting issues (due to mailbox client may be ?). I think I should be able to test this work anyway. Do you want me to send back

Re: [U-Boot] [PATCH v4 5/5] spi: omap3: Convert to driver model

2016-02-29 Thread Christophe Henri RICARD
Hi Jagan, I like your work but i think there is some few formatting issue on the patch itself. Please see below CR >> Best Regards Christophe -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: lundi 22 février 2016 13:39 To: u-boot@lists.denx.de Cc: Christophe Henri

Re: [U-Boot] [PATCH 02/10] arm64: Make full va map code more dynamic

2016-02-29 Thread Alexander Graf
On 29.02.16 17:52, Stephen Warren wrote: > On 02/27/2016 05:09 AM, Alexander Graf wrote: >> >> >> On 26.02.16 20:25, Stephen Warren wrote: >>> On 02/25/2016 09:36 AM, Alexander Graf wrote: On 24.02.16 19:14, Stephen Warren wrote: > On 02/24/2016 05:11 AM, Alexander Graf wrote:

Re: [U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Adam Ford
I won't be able to fix it tonight, but I'll try to look at this tomorrow. Sorry, I was in a hurry this morning. Does anyone have an opinion on whether or not I should I also remove the 'const' part of the declaration? I wonder how much longer we'll be using this mechanism before the device trees

Re: [U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Derald D. Woods
On Mon, Feb 29, 2016 at 03:31:35PM -0600, Adam Ford wrote: > I won't be able to fix it tonight, but I'll try to look at this > tomorrow. Sorry, I was in a hurry this morning. Does anyone have an > opinion on whether or not I should I also remove the 'const' part of > the declaration? I wonder ho

Re: [U-Boot] [PATCH V2] OMAP3: Various: Update serial platdata to update reg_offset to 0

2016-02-29 Thread Tom Rini
On Mon, Feb 29, 2016 at 03:31:35PM -0600, Adam Ford wrote: > I won't be able to fix it tonight, but I'll try to look at this > tomorrow. Sorry, I was in a hurry this morning. Does anyone have an > opinion on whether or not I should I also remove the 'const' part of > the declaration? I wonder h

[U-Boot] [PATCH v2 02/32] dm: pci: Break out the common region display code

2016-02-29 Thread Simon Glass
Each region is displayed in almost the same way. Break out this common code into its own function. Signed-off-by: Simon Glass --- Changes in v2: - Fix use of pci_mem instead of pci_prefetch - Remove 0x prefix for addresses drivers/pci/pci_auto_common.c | 51 +++-

[U-Boot] [PATCH v2 01/32] dm: Drop the block_dev_desc_t typedef

2016-02-29 Thread Simon Glass
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long and causes 80-column violations, rename it to struct blk_desc. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None api/api.c | 2 +- api/api_storage.c | 14 ++--- boa

[U-Boot] [PATCH v2 05/32] dm: part: Drop the common.h header

2016-02-29 Thread Simon Glass
We should not include in header files. Each C file should include it if needed. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/part.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/part.h b/include/part.h index d1e9d0f..140c9b6 100644 --- a/inclu

[U-Boot] [PATCH v2 03/32] dm: part: Correct a sandbox build warning

2016-02-29 Thread Simon Glass
Adjust the cast to avoid a warning when stdint.h is used. Signed-off-by: Simon Glass --- Changes in v2: None disk/part_efi.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/disk/part_efi.c b/disk/part_efi.c index db5e7ed..7bd840f 100644 --- a/disk/part_efi.c +++

[U-Boot] [PATCH v2 07/32] dm: blk: Convert interface type to an enum

2016-02-29 Thread Simon Glass
Since these are sequentially numbered it makes sense to use an enum. It avoids having to maintain the maximum value, and provides a type we can use if it is useful. In fact the maximum value is not used. Rename it to COUNT, since MAX suggests it is the maximum valid value, but it is not. Signed-o

[U-Boot] [PATCH v2 09/32] dm: blk: Rename get_dev() to blk_get_dev()

2016-02-29 Thread Simon Glass
The current name is too generic. Add a 'blk_' prefix to aid searching and make its purpose clearer. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None api/api_storage.c | 12 +++- cmd/gpt.c | 2 +- cmd/read.c| 2 +- common/fb_mmc.c | 4 ++--

[U-Boot] [PATCH v2 04/32] dm: fdtdec: Correct a sandbox build warning

2016-02-29 Thread Simon Glass
Adjust the cast to avoid a warning when stdint.h is used. Signed-off-by: Simon Glass --- Changes in v2: None lib/fdtdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index b361a25..0cb255f 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@

[U-Boot] [PATCH v2 06/32] dm: Add a new header for block devices

2016-02-29 Thread Simon Glass
At present block devices are tied up with partitions. But not all block devices have partitions within them. They are in fact separate concepts. Create a separate blk.h header file for block devices. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/blk.h | 71

[U-Boot] [PATCH v2 11/32] dm: blk: Rename get_device_and_partition()

2016-02-29 Thread Simon Glass
Rename this function to blk_get_device_part_str(). This is a better name because it makes it clear that the function returns a block device and parses a string. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Rename to blk_get_device_by_str() cmd/disk.c | 2 +- cm

[U-Boot] [PATCH v2 08/32] dm: blk: Add comments to a few functions

2016-02-29 Thread Simon Glass
The block interface is not well documented in the code. Pick two important functions and add comments. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/part.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/part.h b/i

[U-Boot] [PATCH v2 12/32] dm: part: Add a cast to avoid a compiler warning

2016-02-29 Thread Simon Glass
In part_amiga.c the name is unsigned but bcpl_strcpy() requires a signed pointer. Add a cast to fix the warning. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Fix 'by' which should be 'but' in the commit message disk/part_amiga.c | 2 +- 1 file changed, 1 insertion(+),

[U-Boot] [PATCH v2 14/32] dm: part: Convert partition API use to linker lists

2016-02-29 Thread Simon Glass
We can use linker lists instead of explicitly declaring each function. This makes the code shorter by avoiding switch() statements and lots of header file declarations. While this does clean up the code it introduces a few code issues with SPL. SPL never needs to print partition information since

[U-Boot] [PATCH v2 10/32] dm: blk: Rename get_device() to blk_get_device_by_str()

2016-02-29 Thread Simon Glass
The current name is too generic. The function returns a block device based on a provided string. Rename it to aid searching and make its purpose clearer. Also add a few comments. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Rename to blk_get_device_by_str() cmd/part.c

[U-Boot] [PATCH v2 21/32] dm: usb: Tidy up storage code ready for driver model conversion

2016-02-29 Thread Simon Glass
Adjust a few things so that the addition of driver-models support involved adding code rather than also changing it. This makes the patches easier to review. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_storage.c | 117 +++ 1 fil

[U-Boot] [PATCH v2 13/32] dm: sandbox: Enable all partition types

2016-02-29 Thread Simon Glass
It is useful to have sandbox build as much code as possible to avoid having to build every board to detect build errors. Also we may add tests for some more partition types at some point. Enable all partition types in sandbox. Signed-off-by: Simon Glass Reviewed-by: Tom Rini Reviewed-by: Bin Me

[U-Boot] [PATCH v2 15/32] dm: part: Rename some partition functions

2016-02-29 Thread Simon Glass
Rename three partition functions so that they start with part_. This makes it clear what they relate to. Signed-off-by: Simon Glass --- Changes in v2: None board/cm5200/fwupdate.c | 2 +- cmd/ide.c | 6 +++--- cmd/mmc.c | 2 +- cmd/part.c|

[U-Boot] [PATCH v2 16/32] dm: cbfs: Fix handling of invalid type

2016-02-29 Thread Simon Glass
The comment for file_cbfs_type() says that it returns 0 for an invalid type. The code appears to check for -1, except that it uses an unsigned variable to store the type. This results in a warning on 64-bit machines. Adjust it to make the meaning clearer. Continue to handle the -1 case since it ma

[U-Boot] [PATCH v2 31/32] part: Rename test_part_xx() and print_part_xx()

2016-02-29 Thread Simon Glass
Rename these functions so that part_ is at the start. This more clearly identifies these functions as partition functions. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to rename test_part_xx() and print_part_xx() disk/part_amiga.c | 22 +++--- disk/part_dos.c

[U-Boot] [PATCH v2 17/32] dm: sandbox: Enable cbfs and cramfs

2016-02-29 Thread Simon Glass
Enable these two filesystems to provide better build coverage in sandbox. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/configs/sandbox.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 786bb

[U-Boot] [PATCH v2 20/32] dm: usb: Avoid exceeding available array size for storage devices

2016-02-29 Thread Simon Glass
The limit on storage devices is USB_MAX_STOR_DEV but we use one extra element while probing to see if a device is a storage device. Avoid this, since it causes memory corruption. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_storage.c | 14 +++--- 1 file changed, 7 inse

[U-Boot] [PATCH v2 29/32] dm: usb: Clean up USB after each test

2016-02-29 Thread Simon Glass
The USB subsystem has a few counters that need to be reset since they are stored in static variables rather than driver-model data. An example is usb_max_devs. Ultimately we should move this data into the USB uclass. For now, make sure that USB is reset after each test, so that the counters go bac

[U-Boot] [PATCH v2 22/32] dm: blk: Add a block-device uclass

2016-02-29 Thread Simon Glass
Add a uclass for block devices. These provide block-oriented data access, supporting reading, writing and erasing of whole blocks. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/block/Kconfig | 11 +++ drivers/block/Makefile | 2 + drivers/block/b

[U-Boot] [PATCH v2 32/32] Drop CONFIG_CRAMFS_CMDLINE

2016-02-29 Thread Simon Glass
This option doesn't do anything. Drop it. Signed-off-by: Simon Glass Suggested-by: Bin Meng --- Changes in v2: None cmd/cramfs.c| 5 - include/configs/UCP1020.h | 1 - include/configs/km/keymile-common.h | 1 - include/configs/sandbox.h | 1 - 4

[U-Boot] [PATCH v2 26/32] dm: usb: Unbind old block devices when shutting down USB

2016-02-29 Thread Simon Glass
We don't want old block devices hanging around since they can still appear visible in some way. Possibly we should unbind all devices which don't cause problems by being unbound. Most likely we can remove everything except USB controllers, hubs and emulators. We can consider that later. Signed-of

[U-Boot] [PATCH v2 25/32] dm: usb: Convert USB storage to use driver-model for block devs

2016-02-29 Thread Simon Glass
Update this code to support CONFIG_BLK. Each USB storage device can have one or more block devices as children, each one representing a LUN (logical unit) of the USB device. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_storage.c | 141 ++

[U-Boot] [PATCH v2 24/32] dm: sandbox: Add driver-model block-device support for sandbox

2016-02-29 Thread Simon Glass
Update the host driver to support driver model for block devices. A future commit will remove the old code, but for now it is useful to be able to use it both with and without CONFIG_BLK. Signed-off-by: Simon Glass --- Changes in v2: - Use snprintf() to avoid overflow cmd/host.c

[U-Boot] [PATCH v2 19/32] dm: block: Adjust device calls to go through helpers function

2016-02-29 Thread Simon Glass
To ease conversion to driver model, add helper functions which deal with calling each block device method. With driver model we can reimplement these functions with the same arguments. Use inline functions to avoid increasing code size on some boards. Signed-off-by: Simon Glass Reviewed-by: Bin

  1   2   >