Re: [U-Boot] [PATCH v2 04/16] dm: core: Add a new api to get indexed device address

2015-11-16 Thread Mugunthan V N
On Friday 06 November 2015 05:37 PM, Simon Glass wrote: > +Stephen > > Hi, > > On 4 November 2015 at 01:16, Mugunthan V N wrote: >> Add new api to get device address based on index. >> >> Signed-off-by: Mugunthan V N >> --- >> drivers/core/device.c | 16 >> include/dm/device.h

Re: [U-Boot] [PATCH v2 03/16] drivers: spi: ti_qspi: prepare driver for DM conversion

2015-11-16 Thread Mugunthan V N
On Tuesday 17 November 2015 11:51 AM, Jagan Teki wrote: > On 4 November 2015 at 13:46, Mugunthan V N wrote: >> Prepare driver for DM conversion. >> >> Signed-off-by: Mugunthan V N >> --- >> drivers/spi/ti_qspi.c | 287 >> -- >> 1 file changed, 161

[U-Boot] [PATCH 00/25] dm: Conversion of code to the new driver model PCI API

2015-11-16 Thread Simon Glass
PCI devices should be accessed just by their device pointer (which is struct udevice *). At present the hose (PCI controller) is often passed along with a pci_dev_t (bus/device/function) value. With driver model this is not necessary but most PCI code has not been converted over to use this new AP

Re: [U-Boot] [PATCH v1] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-11-16 Thread Joakim Tjernlund
On Mon, 2015-11-16 at 09:03 -0800, York Sun wrote: > > On 11/12/2015 02:54 PM, Joakim Tjernlund wrote: > > On Thu, 2015-11-12 at 14:20 -0800, York Sun wrote: > > > Introduce a new function to calculate reserved memory to replace macro > > > CONFIG_SYS_MEM_TOP_HIDE for more flexibility. Legacy use

Re: [U-Boot] [PATCH 2/2] usb: eth: add Realtek RTL8152B/RTL8153 driver

2015-11-16 Thread Ted
Hi Stephen, I am investigating how to modify this driver by Marek's comments, and will send you new patch ASAP. Thanks~ BRs Ted 從: Stephen Warren [swar...@wwwdotorg.org] 寄件日期: 2015年11月17日 上午 01:32 至: Ted 副本: Marek Vasut; u-boot@lists.denx.de; Joe Hershb

Re: [U-Boot] [PATCH v2 03/16] drivers: spi: ti_qspi: prepare driver for DM conversion

2015-11-16 Thread Mugunthan V N
On Friday 06 November 2015 05:37 PM, Simon Glass wrote: > Hi Mugunthan, > > On 4 November 2015 at 01:16, Mugunthan V N wrote: >> Prepare driver for DM conversion. >> >> Signed-off-by: Mugunthan V N >> --- >> drivers/spi/ti_qspi.c | 287 >> -- >>

Re: [U-Boot] [PATCH 1/2] spi: ti_qspi: Add dummy readl for bus sync

2015-11-16 Thread Jagan Teki
On 17 November 2015 at 11:57, Vignesh R wrote: > > > On 11/17/2015 11:33 AM, Jagan Teki wrote: >> On 10 November 2015 at 11:52, Vignesh R wrote: >>> Add dummy readl after invalidating cmd field of QSPI_CMD_REG to ensure >>> bus sync. Without this device's CS is not deactivated reliably leading >>

Re: [U-Boot] [PATCH v7 21/21] sf: Add SPI NOR protection mechanism

2015-11-16 Thread Jagan Teki
Hi Tom/Simon/Febio, On 17 November 2015 at 02:37, Simon Glass wrote: > Hi Tom, > > On 15 November 2015 at 18:58, Tom Rini wrote: >> On Sun, Nov 15, 2015 at 06:34:51PM -0700, Simon Glass wrote: >>> Hi, >>> >>> On 13 November 2015 at 03:41, Bin Meng wrote: >>> > Hi, >>> > >>> > On Wed, Nov 11, 20

Re: [U-Boot] [PATCH v2 05/16] spi: Add support for dual and quad mode

2015-11-16 Thread Jagan Teki
On 4 November 2015 at 13:46, Mugunthan V N wrote: > spi bus can support dual and quad wire data transfers for tx and > rx. So defining dual and quad modes for both tx and rx. Also add > support to parse bus width used for spi tx and rx transfers. > > Signed-off-by: Mugunthan V N > Reviewed-by: Si

Re: [U-Boot] [PATCH 1/2] spi: ti_qspi: Add dummy readl for bus sync

2015-11-16 Thread Vignesh R
On 11/17/2015 11:33 AM, Jagan Teki wrote: > On 10 November 2015 at 11:52, Vignesh R wrote: >> Add dummy readl after invalidating cmd field of QSPI_CMD_REG to ensure >> bus sync. Without this device's CS is not deactivated reliably leading >> to failure to enumerate flash or failure to set quad e

[U-Boot] [PATCH v6 21/23] rockchip: Add max spl size & spl header configs

2015-11-16 Thread Lin Huang
From: Jeffy Chen Our chips may have different max spl size and spl header, so we need to add configs for that. Signed-off-by: Jeffy Chen Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: - Adviced by Simon: - move CONFIG_RO

[U-Boot] [PATCH v6 22/23] rockchip: Add support for rk's second level loader

2015-11-16 Thread Lin Huang
From: Jeffy Chen The Rockchip boot ROM could load & run an initial spl loader, and continue to load a second level boot-loader(which stored right after the initial loader) when it returns. Modify idblock generation code to support it. Signed-off-by: Jeffy Chen Acked-by: Simon Glass --- Changes

[U-Boot] [PATCH v6 23/23] rockchip: doc: show packet rk3036 uboot image

2015-11-16 Thread Lin Huang
show how to packet rk3036 uboot image and boot from SD Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: - fix some spell error Changes in v5: - Adviced by Simon: - add evb rk3036 board to supported boards Changes in v6:

[U-Boot] [PATCH v6 20/23] rockchip: Add basic support for evb-rk3036 board

2015-11-16 Thread Lin Huang
This add some basic files required to allow the board to dispaly serial message and can run command(mmc info etc) Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - get sdram info from evb_rk3036.c Changes in v3: - delete some config

[U-Boot] [PATCH v6 19/23] rockchip: rk3036: Add core Soc start-up code

2015-11-16 Thread Lin Huang
rk3036 only 4K size SRAM for SPL, so only support timer, uart, sdram driver in SPL stage, when finish initial sdram, back to bootrom.And in rk3036 sdmmc and debug uart use same iomux, so if you want to boot from sdmmc, you must disable debug uart. Signed-off-by: Lin Huang Acked-by: Simon Glass -

[U-Boot] [PATCH v6 18/23] rockchip: add rk3036 sdram driver

2015-11-16 Thread Lin Huang
add rk3036 sdram driver so we can set up sdram in SPL Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - fix some code style error Changes in v4: - modify code advice by Simon Glass Changes in v5: - Advice by Simon: - move some global variables to local variable

[U-Boot] [PATCH v6 17/23] rockchip: add early uart driver

2015-11-16 Thread Lin Huang
add early uart driver so we can print debug message in SPL stage Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: - pass uart base address to rk_uart_init() function Changes in v4: None Changes in v5: None Changes in v6: - Adviced by Simon

[U-Boot] [PATCH v6 16/23] rockchip: mmc: get the fifo mode and fifo depth property from dts

2015-11-16 Thread Lin Huang
rk3036 mmc do not have internal dma, so we use fifo mode when read and write data, we get the fifo mode and fifo depth property from dts, pass to dw_mmc driver. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes

[U-Boot] [PATCH v6 15/23] rockchip: mmc: use non-removable property to disginguish emmc and sdcard register

2015-11-16 Thread Lin Huang
emmc and sdcard have different register address, use non-removeable property to disginuish them. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c inde

[U-Boot] [PATCH v6 13/23] mmc: dw_mmc: move data transfer as a separate function

2015-11-16 Thread Lin Huang
the data transfer seem to long in the dwmci_send_cmd function, so move this block as a separate funciton. Signed-off-by: Lin Huang --- drivers/mmc/dw_mmc.c | 65 ++-- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/drivers/mmc/dw_m

[U-Boot] [PATCH v6 14/23] mmc: dw_mmc: support fifo mode in dwc mmc driver

2015-11-16 Thread Lin Huang
some soc(rk3036 etc) use dw_mmc but do not have internal dma, so we implement fifo mode to read and write data. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: - move data fifo mode to dwmci_data_trans

[U-Boot] [PATCH v6 12/23] rockchip: rk3036: Add pinctrl driver

2015-11-16 Thread Lin Huang
Add a driver which support pin multiplexing setup for rk3036 Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: - fix some coding style error Changes in v4: None Changes in v5: None Changes in v6: - remove duplicate

[U-Boot] [PATCH v6 10/23] rockchip: rk3036: Add Soc reset driver

2015-11-16 Thread Lin Huang
We can reset the Soc using some CRU (clock/reset unit) register. Add support for this. Signed-off-by: Lin Huang Acked-by: Simon Glass --- --- Changes in v1: - clean copyright announcement Changes in v2: - only build reset_rk3036.c in NON-SPL stage Changes in v3: None Changes in v4: None Changes

[U-Boot] [PATCH v6 11/23] rockchip: rk3036: Add a simple syscon driver

2015-11-16 Thread Lin Huang
Add a driver that provides access to system controllers Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - only build syscon_rk3036.c on NON-SPL stage Changes in v3: None Changes in v4: None Changes in v5: None arch/arm/mach-rockch

Re: [U-Boot] [PATCH v2 03/16] drivers: spi: ti_qspi: prepare driver for DM conversion

2015-11-16 Thread Jagan Teki
On 4 November 2015 at 13:46, Mugunthan V N wrote: > Prepare driver for DM conversion. > > Signed-off-by: Mugunthan V N > --- > drivers/spi/ti_qspi.c | 287 > -- > 1 file changed, 161 insertions(+), 126 deletions(-) > > diff --git a/drivers/spi/ti_

[U-Boot] [PATCH v6 09/23] rockchip: rk3036: Add header files for GRF

2015-11-16 Thread Lin Huang
GRF is the gereral register file. Add header files with register definitions. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to grf_rk3036.h Changes in v3: None Changes in v4: None Changes in v5: None Changes in v

[U-Boot] [PATCH v6 07/23] rockchip: Bring in RK3036 device tree file includes and bindings

2015-11-16 Thread Lin Huang
Since rk3036 device tree file still in reviewing, bring it from https://patchwork.kernel.org/patch/7203371/ and add some aliases we need in uboot Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: None Changes in v4

[U-Boot] [PATCH v6 08/23] rockchip: rk3036: Add clock driver

2015-11-16 Thread Lin Huang
Add a driver for setting up and modifying the various PLLs, peripheral clocks and mmc clocks on RK3036 Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to cru_rk3036.h Changes in v3: None Changes in v4: None Changes

[U-Boot] [PATCH v6 04/23] rockchip: add config decide whether to build common.c

2015-11-16 Thread Lin Huang
some rockchips soc will not use uclass in SPL stage, so define config to decide whether to build common.c Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None arch/arm/mach-roc

[U-Boot] [PATCH v6 05/23] dm: core: Add SPL Kconfig for REGMAP and SYSCON

2015-11-16 Thread Lin Huang
Add SPL Kconfig for REGMAP and SYSCON, so REGMAP and SYSCON can remove from SPL stage. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: - fix compile error Changes in v4: None Changes in v5: None Changes in v6: None configs/chromebook_je

[U-Boot] [PATCH v6 06/23] rockchip: serial driver support rk3036

2015-11-16 Thread Lin Huang
Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: - modify code suggest by Simon Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None drivers/serial/serial_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/seria

[U-Boot] [PATCH v6 03/23] rockchip: rename board-spl.c to rk3288-board-spl.c

2015-11-16 Thread Lin Huang
since different rockchip soc need different spl file, so rename board-spl.c. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None arch/arm/mach-rockchip/Makefile |

[U-Boot] [PATCH v6 02/23] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-16 Thread Lin Huang
since different rockchip SOC have different size of SRAM, So the size SYS_MALLOC_F_LEN may different, so move this config to rk3288 own Kconfig Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None C

[U-Boot] [PATCH v6 01/23] rockchip: add timer driver

2015-11-16 Thread Lin Huang
some rockchip soc will not include lib/timer.c in SPL stage, so implement timer driver for some soc can use us delay function in SPL. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: - add udelay function Changes in v3: - fix some coding style Changes in v4:

[U-Boot] [PATCH v6 00/23] Bring up rk3036 uboot

2015-11-16 Thread Lin Huang
This series patch bring up rk3036 uboot, since rk3036 only 4K size SRAM for SPL, so in SPL stage only support timer, uart, sdram driver, and back to bootrom when finish ddr initial, and boot up second stage from bootrom.You can boot to command line(mmc info etc) for now use this patchset. Jeffy Ch

Re: [U-Boot] [PATCH v2 02/16] drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver model conversion

2015-11-16 Thread Jagan Teki
On 8 November 2015 at 19:01, Tom Rini wrote: > On Wed, Nov 04, 2015 at 01:46:10PM +0530, Mugunthan V N wrote: > >> Changing the ti_qspi_priv structure and its instance names from >> to priv for driver mode conversion. >> >> Signed-off-by: Mugunthan V N > > Reviewed-by: Tom Rini Reviewed-by: Jag

Re: [U-Boot] [PATCH v2 01/16] drivers: spi: ti_qspi: do not hard code chip select for memory map configuration

2015-11-16 Thread Jagan Teki
On 8 November 2015 at 19:01, Tom Rini wrote: > On Wed, Nov 04, 2015 at 01:46:09PM +0530, Mugunthan V N wrote: > >> To enable memory map in dra7xx, specific chip select must be >> written to control module register. But this hard coded to chip >> select 1, fixing it by writing the specific chip sel

Re: [U-Boot] [RESEND PATCH v5 1/6] cgtqmx6eval: Add SPI NOR flash support

2015-11-16 Thread Jagan Teki
On 14 November 2015 at 00:19, Otavio Salvador wrote: > Add SPI NOR support: > > => sf probe > SF: Detected SST25VF032B with page size 256 Bytes, erase size 4 KiB, total 4 > MiB > > Signed-off-by: Otavio Salvador I have asked to move the spi_nor int stuff on #ifdef CONFIG_SPI_MXC in previous pat

Re: [U-Boot] [RESEND PATCH v5 2/6] cgtqmx6eval: Use SPI NOR to store the environment

2015-11-16 Thread Jagan Teki
On 14 November 2015 at 00:19, Otavio Salvador wrote: > Congatec boards boot from SPI NOR, so it makes more sense to use > SPI NOR to store the environment variables. > > Signed-off-by: Otavio Salvador Please add previous version reviews or tested tags if any? > --- > > Changes in v5: None > Cha

Re: [U-Boot] [PATCH 1/2] spi: ti_qspi: Add dummy readl for bus sync

2015-11-16 Thread Jagan Teki
On 10 November 2015 at 11:52, Vignesh R wrote: > Add dummy readl after invalidating cmd field of QSPI_CMD_REG to ensure > bus sync. Without this device's CS is not deactivated reliably leading > to failure to enumerate flash or failure to set quad enable bit on > Macronix flash present on am437x-s

Re: [U-Boot] [PATCH 2/2] ARM: am43xx: Enable QUAD read and EDMA support for ti_qspi

2015-11-16 Thread Jagan Teki
On 12 November 2015 at 15:17, Mugunthan V N wrote: > On Tuesday 10 November 2015 11:52 AM, Vignesh R wrote: >> Enable TI_EDMA3 and QUAD read support for ti_qspi on am43xx, this >> increases read performance to 4 MB/s. >> >> Signed-off-by: Vignesh R >> --- > > Reviewed-by: Mugunthan V N Reviewed

Re: [U-Boot] [PATCH 0/2] am43xx: Enable QUAD mode and DMA support for QSPI

2015-11-16 Thread Vignesh R
On 11/10/2015 11:52 AM, Vignesh R wrote: > This patchset enables QUAD mode and DMA support for qspi read on > am437x. This increases the througput to 4 MB/s. > > Tested on am437x-sk and am437x-idk evm. > > Vignesh R (2): > spi: ti_qspi: Add dummy readl for bus sync > ARM: am437xx: Enable QU

Re: [U-Boot] [PATCH v5] Fix board init code to respect the C runtime environment

2015-11-16 Thread Simon Glass
Hi Albert, On 16 November 2015 at 09:22, Albert ARIBAUD wrote: > > board_init_f_mem() alters the C runtime environment's > stack it is actually already using. This is not a valid > behaviour within a C runtime environment. > > Split board_init_f_mem into C functions which do not alter > their own

[U-Boot] [PATCH 16/25] dm: x86: Convert x86 PCI functions over to DM PCI API

2015-11-16 Thread Simon Glass
Adjust these functions to use the driver model PCI API functions. At some point we should be able to remove these by requiring the caller to obtain the PCI bus and pass it to pci_bus_read/write_config(), or have a device driver and use dm_pci_config_read/write...(). Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 21/25] dm: usb: Convert echi-pci to use new DM PCI API

2015-11-16 Thread Simon Glass
Convert this driver to use the new driver model PCI API. Signed-off-by: Simon Glass --- drivers/usb/host/ehci-pci.c | 43 +++ 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 0c

[U-Boot] [PATCH 17/25] dm: pci: Add driver model API functions for address mapping

2015-11-16 Thread Simon Glass
At present the PCI address map functions use the old API. Add new functions for this so that drivers can be converted. Signed-off-by: Simon Glass --- drivers/pci/pci-uclass.c | 82 include/pci.h| 59 ++

[U-Boot] [PATCH 22/25] dm: Convert PCI MMC over to use DM PCI API

2015-11-16 Thread Simon Glass
At present pci_mmc_init() does not correctly use the PCI function since the list it passes is not terminated. The array size passed to pci_mmc_init() is actually not used correctly. Fix this and adjust the pci_mmc_init() to scan all available MMC devices. Adjust this code to use the new driver mod

[U-Boot] [PATCH 20/25] dm: ahci: Convert to use new DM PCI API

2015-11-16 Thread Simon Glass
Convert this driver to use the new driver model PCI API. Signed-off-by: Simon Glass --- drivers/block/ahci.c | 62 +--- include/ahci.h | 4 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/drivers/block/ahci.c b/drivers/

[U-Boot] [PATCH 18/25] dm: net: Convert rtl8169 to use DM PCI API

2015-11-16 Thread Simon Glass
Update this driver to use the proper driver-model PCI API functions. Signed-off-by: Simon Glass --- drivers/net/rtl8169.c | 88 --- 1 file changed, 70 insertions(+), 18 deletions(-) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index

[U-Boot] [PATCH 23/25] pci: Tidy up comments in pci_bind_bus_devices()

2015-11-16 Thread Simon Glass
The current comments are confusing. We don't actually bind a generic device when the device tree has no information. We try to scan available PCI drivers. Update the comments to reflect this. Signed-off-by: Simon Glass --- drivers/pci/pci-uclass.c | 4 +--- 1 file changed, 1 insertion(+), 3 del

[U-Boot] [PATCH 19/25] dm: pci: Switch to DM API for PCI address mapping

2015-11-16 Thread Simon Glass
We should use the new address mapping functions unless we are in compatibility mode. Disable the old functions by default. Signed-off-by: Simon Glass --- drivers/pci/pci_common.c | 2 ++ include/pci.h| 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/p

[U-Boot] [PATCH 14/25] dm: tegra: net: Convert tegra boards to driver model for Ethernet

2015-11-16 Thread Simon Glass
Adjust all Tegra boards to use driver model for Ethernet, now that the required drivers are converted. Signed-off-by: Simon Glass --- arch/arm/mach-tegra/Kconfig | 1 + board/compulab/trimslice/trimslice.c | 8 board/nvidia/cardhu/cardhu.c | 6 -- board/nvidia/j

[U-Boot] [PATCH 15/25] dm: test: Convert PCI tests to use the DM PCI API

2015-11-16 Thread Simon Glass
Update these tests to use driver model API functions. Signed-off-by: Simon Glass --- test/dm/pci.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/test/dm/pci.c b/test/dm/pci.c index 3ab4ba8..a1750bf 100644 --- a/test/dm/pci.c +++ b/test/dm/pci.c @@ -35,20 +3

[U-Boot] [PATCH 24/25] dm: net: usb: Refactor mcs7830 driver ready for DM conversion

2015-11-16 Thread Simon Glass
Remove stamp data and create common functions for the main Ethernet operations. This will make it easier to convert this driver to support driver model. Signed-off-by: Simon Glass --- drivers/usb/eth/mcs7830.c | 265 +- 1 file changed, 144 insertions(

[U-Boot] [PATCH 25/25] dm: net: usb: Convert mcs7830 driver to support driver model

2015-11-16 Thread Simon Glass
Adjust this driver to support driver model for Ethernet. Signed-off-by: Simon Glass --- drivers/usb/eth/mcs7830.c | 105 ++ 1 file changed, 105 insertions(+) diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c index de40bd6..9d6cf8c 10

[U-Boot] [PATCH 09/25] dm: Convert bios_interrupts to use DM PCI API

2015-11-16 Thread Simon Glass
Adjust this code to use driver model for devices where possible. Since existing users have not been converted the old code must remain. Signed-off-by: Simon Glass --- arch/x86/lib/bios_interrupts.c | 78 +++--- 1 file changed, 65 insertions(+), 13 deletions(-

[U-Boot] [PATCH 13/25] dm: pci: Drop the old version of pci_find_class()

2015-11-16 Thread Simon Glass
Move this function into the compatibility file so that it is not available by default. Signed-off-by: Simon Glass --- drivers/pci/pci_common.c | 42 -- drivers/pci/pci_compat.c | 42 ++ 2 files changed, 42 insertion

[U-Boot] [PATCH 11/25] dm: x86: pci: Adjust bios_run_on_x86() to use the DM PCI API

2015-11-16 Thread Simon Glass
This function should take a struct udevice rather than pci_dev_t. Update it. Signed-off-by: Simon Glass --- arch/x86/lib/bios.c | 3 ++- drivers/pci/pci_rom.c | 2 +- include/bios_emul.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/lib/bios.c b/arch/x86/li

[U-Boot] [PATCH 10/25] dm: pci: video: Convert video and pci_rom to use DM PCI API

2015-11-16 Thread Simon Glass
Adjust these files to use the driver-model PCI API instead of the legacy functions. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/gma.c | 2 +- drivers/pci/pci_rom.c| 31 --- drivers/video/vesa_fb.c | 6 +++--- include/pci_rom.h| 2

[U-Boot] [PATCH 07/25] dm: serial: Convert ns16550 driver to use driver model PCI API

2015-11-16 Thread Simon Glass
Use the driver model version of the function to find the BAR. This updates the fdtdec function, of which ns16550 is the only user. The fdtdec_get_pci_bdf() function is dropped for several reasons: - with driver model we should use 'struct udevice *' rather than passing the device tree offset ex

[U-Boot] [PATCH 12/25] dm: pci: Drop the old version of pci_find_device()

2015-11-16 Thread Simon Glass
When driver model is being used, drop this old function. Signed-off-by: Simon Glass --- drivers/pci/pci_common.c | 51 drivers/pci/pci_compat.c | 51 2 files changed, 51 insertions(+), 51 deletions

[U-Boot] [PATCH 06/25] dm: pci: Add a function to read a PCI BAR

2015-11-16 Thread Simon Glass
Add a driver-model function for reading the PCI BAR from a device. Signed-off-by: Simon Glass --- drivers/pci/pci-uclass.c | 13 + include/pci.h| 9 + 2 files changed, 22 insertions(+) diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 929d7

[U-Boot] [PATCH 08/25] dm: x86: ivybridge: Convert graphics init to use DM PCI API

2015-11-16 Thread Simon Glass
Use the driver-model PCI functions here where possible. For now we have to search for the device with pci_bus_find_bdf() but at some point we can put this in a proper driver and avoid this. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/bd82x6x.c | 6 -- arch/x86/cpu/iv

[U-Boot] [PATCH 04/25] dm: pci: scsi: Use driver-model PCI API

2015-11-16 Thread Simon Glass
Adjust the SCSI command to use driver model for its PCI interface. Signed-off-by: Simon Glass --- common/cmd_scsi.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c index 31c4319..855016d 100644 --- a/common/cmd_scsi.c +++

[U-Boot] [PATCH 01/25] dm: pci: Mark legacy files as such

2015-11-16 Thread Simon Glass
We don't want people changing the legacy PCI files while migration is in progress. Update the file headers to indicate that. Signed-off-by: Simon Glass --- drivers/pci/pci.c | 5 - drivers/pci/pci_auto_old.c | 9 ++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --g

[U-Boot] [PATCH 05/25] dm: pci: Add a driver-model version of pci_find_class()

2015-11-16 Thread Simon Glass
Add a function which scans the driver model device information rather than scanning the PCI bus again. Signed-off-by: Simon Glass --- drivers/pci/pci-uclass.c | 20 include/pci.h| 10 ++ 2 files changed, 30 insertions(+) diff --git a/drivers/pci/pci-ucl

[U-Boot] [PATCH 03/25] dm: pci: Add a driver-model version of pci_find_device()

2015-11-16 Thread Simon Glass
Add a function which scans the driver model device information rather than scanning the PCI bus again. Signed-off-by: Simon Glass --- drivers/pci/pci-uclass.c | 39 +++ include/pci.h| 12 2 files changed, 51 insertions(+) diff --git

[U-Boot] [PATCH 02/25] dm: pci: Use driver model PCI API in auto-config

2015-11-16 Thread Simon Glass
At present we are using legacy functions even in the auto-configuration code used by driver model. Add a new pci_auto.c version which uses the correct API. Signed-off-by: Simon Glass --- drivers/pci/Makefile | 6 +- drivers/pci/pci-uclass.c | 18 +-- drivers/pci/pci_auto.c | 387

[U-Boot] [ANN] U-Boot v2016.01-rc1 released

2015-11-16 Thread Tom Rini
Hey all, I've pushed v2016.01-rc1 out to the repository and tarballs should exist soon. The merge window is now closed. I too an extra week to tag things since I wanted a few more things to land and then they did. This feels like a good solid -rc1 and we've had some nice updates come in and pro

Re: [U-Boot] tools/proftool: fix use-after-free

2015-11-16 Thread Tom Rini
On Wed, Oct 07, 2015 at 03:48:48PM +0200, Vincent Stehlé wrote: > The read_trace_config() can dereference the line pointer after freeing > it on its error path. Avoid that. > > This was found by Coverity Scan. > > Signed-off-by: Vincent Stehlé > Cc: Simon Glass Applied to u-boot/master, thank

Re: [U-Boot] [PATCH V2 07/12] board: LaCie: Move common headers to board-common directory

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 09:34:07AM -0600, Nishanth Menon wrote: > On 11/15/2015 09:32 PM, Masahiro Yamada wrote: > > 2015-11-15 14:38 GMT+09:00 Nishanth Menon : > >> On 11/14/2015 05:56 PM, Masahiro Yamada wrote: > >>> 2015-11-13 14:43 GMT+09:00 Nishanth Menon : > Header files can be located i

Re: [U-Boot] [PATCH 07/12] ns16550: unify serial_rockchip

2015-11-16 Thread Thomas Chou
Hi Ariel, On 2015年11月16日 22:36, Thomas Chou wrote: Unify serial_rockchip, and use the generic binding. Signed-off-by: Thomas Chou --- arch/arm/mach-rockchip/Kconfig | 8 +++- drivers/serial/Kconfig | 9 - drivers/serial/Makefile | 1 - drivers/serial/se

Re: [U-Boot] [PATCH 02/12] arc: add mapping between physical and virtual address

2015-11-16 Thread Thomas Chou
On 2015年11月16日 22:36, Thomas Chou wrote: Add mapping between physical and virtual address. Signed-off-by: Thomas Chou --- arch/arc/include/asm/io.h | 28 1 file changed, 28 insertions(+) Drop this patch as it is taken cared by Alexey Brodkin. - Thomas di

Re: [U-Boot] [PATCH 03/12] ns16550: change map_sysmem to map_physmem

2015-11-16 Thread Thomas Chou
Hi Simon, On 2015年11月17日 05:08, Simon Glass wrote: Hi Thomas, On 16 November 2015 at 07:36, Thomas Chou wrote: Change map_sysmem() to map_physmem(), because sandbox is the only arch which define map_sysmem() and it actually only calls map_physmem(). For some arch like nios2, the flag should b

Re: [U-Boot] [PATCH v4 8/8] dm: tegra: pci: Convert tegra boards to driver model for PCI

2015-11-16 Thread Stephen Warren
On 11/16/2015 04:20 PM, Simon Glass wrote: On 16 November 2015 at 16:13, Stephen Warren wrote: On 11/13/2015 09:19 PM, Simon Glass wrote: Adjust the Tegra PCI driver to support driver model and move all boards over at the same time. This can make use of some generic driver model code, such as

Re: [U-Boot] [PATCH v4 8/8] dm: tegra: pci: Convert tegra boards to driver model for PCI

2015-11-16 Thread Simon Glass
Hi Stephen, On 16 November 2015 at 16:13, Stephen Warren wrote: > On 11/13/2015 09:19 PM, Simon Glass wrote: >> >> Adjust the Tegra PCI driver to support driver model and move all boards >> over >> at the same time. This can make use of some generic driver model code, >> such >> as the range-deco

Re: [U-Boot] [PATCH] arc: add stubs for map_physmem() and unmap_physmem()

2015-11-16 Thread Stephen Warren
On 11/16/2015 03:15 PM, Alexey Brodkin wrote: Hi Stephen, On Mon, 2015-11-16 at 14:08 -0700, Simon Glass wrote: Hi, On 16 November 2015 at 06:47, Alexey Brodkin wrote: Hi Simon, Stephen, On Fri, 2015-11-13 at 19:03 -0700, Simon Glass wrote: On 13 November 2015 at 11:23, Alexey Brodkin wro

Re: [U-Boot] [PATCH v4 8/8] dm: tegra: pci: Convert tegra boards to driver model for PCI

2015-11-16 Thread Stephen Warren
On 11/13/2015 09:19 PM, Simon Glass wrote: Adjust the Tegra PCI driver to support driver model and move all boards over at the same time. This can make use of some generic driver model code, such as the range-decoding logic. To make this series work on Jetson TX1, two things need to happen. Fi

Re: [U-Boot] [PATCH] arc: add stubs for map_physmem() and unmap_physmem()

2015-11-16 Thread Alexey Brodkin
Hi Stephen, On Mon, 2015-11-16 at 14:08 -0700, Simon Glass wrote: > Hi, > > On 16 November 2015 at 06:47, Alexey Brodkin > wrote: > > Hi Simon, Stephen, > > > > On Fri, 2015-11-13 at 19:03 -0700, Simon Glass wrote: > > > On 13 November 2015 at 11:23, Alexey Brodkin > > > wrote: > > > > Hi Simo

Re: [U-Boot] [PATCH v2 18/26] dm: usb: Remove inactive children after a bus scan

2015-11-16 Thread Simon Glass
Hi Hans, On 15 November 2015 at 12:35, Hans de Goede wrote: > > Hi, > > On 11/13/2015 10:58 PM, Simon Glass wrote: >> >> Hi Hans, > > > > > Talking about usb-stop, there is still one (BIG!) problem after > this patch set when building usb-support with DM_DEVICE_REMOVE > not set. This

Re: [U-Boot] [PATCH 03/12] ns16550: change map_sysmem to map_physmem

2015-11-16 Thread Simon Glass
Hi Thomas, On 16 November 2015 at 07:36, Thomas Chou wrote: > Change map_sysmem() to map_physmem(), because sandbox is the only > arch which define map_sysmem() and it actually only calls > map_physmem(). For some arch like nios2, the flag should be > MAP_NOCACHE for port access. Why change it t

Re: [U-Boot] [PATCH 1/4 v2] common/console.c: Drop sandbox special-case console code

2015-11-16 Thread Simon Glass
On 16 November 2015 at 07:26, Stefan Roese wrote: > As done in commit da229e4e [sandbox: Drop special-case sandbox console code], > this patch drops the sandbox special-case code in vprintf() that was > missed by Simon at that time. > > Signed-off-by: Stefan Roese > Cc: Simon Glass > --- > v2: >

Re: [U-Boot] [PATCH 2/2] rockchip: move SYS_MALLOC_SIMPLE to mach-rockchip Kconfig

2015-11-16 Thread Simon Glass
On 16 November 2015 at 04:15, Ariel D'Alessandro wrote: > Commit 1eb0c03c2198a7ec9de456b83dacdc4831b96cbf added > SPL_SYS_MALLOC_SIMPLE Kconfig option and changed the way it is > evaluated. > > Thus, the definitions of CONFIG_SYS_MALLOC_SIMPLE in rk3***_common.h > board configs are now incorrect b

Re: [U-Boot] [PATCH] arc: add stubs for map_physmem() and unmap_physmem()

2015-11-16 Thread Simon Glass
Hi, On 16 November 2015 at 06:47, Alexey Brodkin wrote: > Hi Simon, Stephen, > > On Fri, 2015-11-13 at 19:03 -0700, Simon Glass wrote: >> On 13 November 2015 at 11:23, Alexey Brodkin >> wrote: >> > Hi Simon, >> > >> > On Fri, 2015-11-13 at 11:14 -0700, Simon Glass wrote: >> > > Hi Alexey, >> > >

Re: [U-Boot] [PATCH 2/4 v2] common/console.c: Small coding style cleanup

2015-11-16 Thread Simon Glass
On 16 November 2015 at 07:26, Stefan Roese wrote: > Change some comments to match the U-Boot coding style rules. > > Signed-off-by: Stefan Roese > Cc: Simon Glass > --- > v2: > - new patch > > common/console.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Acked-by: Simon Glass

Re: [U-Boot] [PATCH v2 10/16] drivers: mtd: spi: sf_probe: add compatible for spansion spi flash

2015-11-16 Thread Simon Glass
Hi, On 12 November 2015 at 05:48, Tom Rini wrote: > On Thu, Nov 12, 2015 at 02:42:41PM +0530, Mugunthan V N wrote: >> On Friday 06 November 2015 05:37 PM, Simon Glass wrote: >> > Hi Mugunthan, >> > >> > On 4 November 2015 at 01:16, Mugunthan V N wrote: >> >> Add compatible for spansion 32MiB spi

Re: [U-Boot] [PATCH] Fix sandbox build on Ubuntu 10.04

2015-11-16 Thread Simon Glass
On 16 November 2015 at 06:07, Tom Rini wrote: > On Sun, Nov 15, 2015 at 11:48:38PM -0700, Stephen Warren wrote: >> On 11/15/2015 07:07 PM, Tom Rini wrote: >> > On Sat, Nov 14, 2015 at 11:53:49PM -0700, Stephen Warren wrote: >> > >> >> gcc 4.4.3 (which is the default native compiler on x86-64 Ubunt

Re: [U-Boot] [PATCH 1/2] rockchip: Turn on CONFIG_DEBUG_UART_NS16550 in defconfigs

2015-11-16 Thread Simon Glass
On 16 November 2015 at 04:15, Ariel D'Alessandro wrote: > No UART driver was specified in defconfig, thus > DEBUG_UART_ALTERA_JTAGUART was incorrectly selected by default since > commit 220e8021af96741bd7149ca9895e1f0c8a38d0bb added a new Altera UART > driver. > > Signed-off-by: Ariel D'Alessandro

Re: [U-Boot] [PATCH v7 21/21] sf: Add SPI NOR protection mechanism

2015-11-16 Thread Simon Glass
Hi Tom, On 15 November 2015 at 18:58, Tom Rini wrote: > On Sun, Nov 15, 2015 at 06:34:51PM -0700, Simon Glass wrote: >> Hi, >> >> On 13 November 2015 at 03:41, Bin Meng wrote: >> > Hi, >> > >> > On Wed, Nov 11, 2015 at 10:04 PM, Fabio Estevam wrote: >> >> On Wed, Nov 11, 2015 at 12:56 AM, Simon

Re: [U-Boot] [PATCH v7 21/21] sf: Add SPI NOR protection mechanism

2015-11-16 Thread Fabio Estevam
Hi Simon, On Sun, Nov 15, 2015 at 11:34 PM, Simon Glass wrote: > Fabio can you please rework this to remove the pre-driver-model > support, and add your new functions to struct dm_spi_flash_ops > instead, then convert the affected boards to driver model? Ok, I will give it a try in converting i

Re: [U-Boot] [PATCH] ARM: mxs: fix VDDD brownout setting

2015-11-16 Thread Michael Heimpold
Hi Marek, Am Monday 16 November 2015, 12:01:36 schrieben Sie: > On Sunday, November 15, 2015 at 10:47:12 PM, Michael Heimpold wrote: > > At the moment, the desired brownout is at 1.0V. However, > > this setting cannot be realized by hardware since we have > > only 3 bits to represent the voltage d

Re: [U-Boot] [PATCH v4 0/8] dm: pci: tegra: Convert Tegra PCI to driver model

2015-11-16 Thread Stephen Warren
On 11/13/2015 09:19 PM, Simon Glass wrote: This series converts all Tegra boards to use driver model for PCI. The net effect should be no change in functionality. In v4, Jetson TK1 now works as expected. However, the issues on p2371-2180 (Jetson TX1) still remain. I'll try and look into these.

Re: [U-Boot] [PATCH 10/12] ns16550: unify serial_tegra

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:54PM +0800, Thomas Chou wrote: > Unify serial_tegra, and use the generic binding. > > Signed-off-by: Thomas Chou Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boo

Re: [U-Boot] [PATCH 08/12] ns16550: unify serial_keystone

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:52PM +0800, Thomas Chou wrote: > Unify serial_keystone, and use the generic binding. > > Signed-off-by: Thomas Chou Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-

Re: [U-Boot] [PATCH 11/12] ns16550: unify serial_omap

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:55PM +0800, Thomas Chou wrote: > Unify serial_omap, and use the generic binding. > > Signed-off-by: Thomas Chou Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot

Re: [U-Boot] [PATCH 01/12] debug_uart: restore ns16550 as default

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:45PM +0800, Thomas Chou wrote: > Since commit 220e8021af96 ("nios2: convert altera_jtag_uart to > driver model"), the default debug uart was changed. Most people > use ns16550 UART, so restore it as default. > > Signed-off-by: Thomas Chou > Reported-by: Ezequiel Gar

Re: [U-Boot] [PATCH 07/12] ns16550: unify serial_rockchip

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:51PM +0800, Thomas Chou wrote: > Unify serial_rockchip, and use the generic binding. > > Signed-off-by: Thomas Chou Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-

Re: [U-Boot] [PATCH 09/12] ns16550: unify serial_dw

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:53PM +0800, Thomas Chou wrote: > Unify serial_dw, and use the generic binding. > > Signed-off-by: Thomas Chou Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [PATCH 06/12] ns16550: unify serial_ppc

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:50PM +0800, Thomas Chou wrote: > Unify serial_ppc, and use the generic binding. > > Signed-off-by: Thomas Chou Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@

Re: [U-Boot] [PATCH 05/12] ns16550: unify serial_x86

2015-11-16 Thread Tom Rini
On Mon, Nov 16, 2015 at 10:36:49PM +0800, Thomas Chou wrote: > Unify serial_x86, and use the generic binding. > > Signed-off-by: Thomas Chou Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@

  1   2   3   >