[U-Boot] [PATCH v2 00/16] device model bring-up of ti-qspi on dra72, dra74 and am437x-sk evm

2015-11-04 Thread Mugunthan V N
This patch series enables ti_qspi to adopt driver model. This has been tested on dra72, dra74 and am437x-sk evms (logs [1]). Also pushed a branch for testing [2] [1]: http://pastebin.ubuntu.com/13099856/ [2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git qspi-v2 Changes from Init

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

2015-11-04 Thread Mugunthan V N
Changing the ti_qspi_priv structure and its instance names from to priv for driver mode conversion. Signed-off-by: Mugunthan V N --- drivers/spi/ti_qspi.c | 118 +- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/drivers/spi/ti_qspi

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

2015-11-04 Thread Mugunthan V N
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 select value to control module register. Signed-off-by: Mugunthan V N --- drivers/spi/ti_qspi.c | 4 ++-- 1 file changed,

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

2015-11-04 Thread Mugunthan V N
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_qspi.c b/drivers/spi/ti_qspi.c index 44c5762..003df80 100644 --- a/d

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

2015-11-04 Thread Mugunthan V N
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 | 10 ++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/drivers/core/device.c b/drivers/core/device.c index 758f390..3cdc

[U-Boot] [PATCH v2 07/16] dts: dra7: add spi alias for qspi

2015-11-04 Thread Mugunthan V N
add spi alias for qspi so that spi probes the device and driver successfully. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- arch/arm/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 8f1e25b..3060e9a 100644 --- a/

[U-Boot] [PATCH v2 08/16] drivers: spi: ti_qspi: convert driver to adopt device driver model

2015-11-04 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N --- drivers/spi/ti_qspi.c | 172 ++ 1 file changed, 172 insertions(+) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 003df80..fa86f4f 100644 --- a/drivers/s

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

2015-11-04 Thread Mugunthan V N
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: Simon Glass --- drivers/spi/spi-uclass.c | 33

[U-Boot] [PATCH v2 06/16] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-11-04 Thread Mugunthan V N
Since spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N --- include/configs/dra7xx_evm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index 6e32de8..525dce7 1

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

2015-11-04 Thread Mugunthan V N
Add compatible for spansion 32MiB spi flash s25fl256s1. Signed-off-by: Mugunthan V N --- drivers/mtd/spi/sf_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index c000c53..9cfa9b6 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/dri

[U-Boot] [PATCH v2 11/16] drivers: mtd: spi: sf_probe: add compatible for Macronix spi flash

2015-11-04 Thread Mugunthan V N
Add compatible for Macronix 64MiB spi flash mx66l51235l. Signed-off-by: Mugunthan V N --- drivers/mtd/spi/sf_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index 9cfa9b6..b16a392 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/dr

[U-Boot] [PATCH v2 09/16] arm: dts: dra7: add qspi register maps for memory map and control module

2015-11-04 Thread Mugunthan V N
Add qspi memory map and control module register maps to device tree. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- arch/arm/dts/dra7.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 3060e9a..7045c0f 10

[U-Boot] [PATCH v2 12/16] defconfig: dra72_evm: enable spi driver model

2015-11-04 Thread Mugunthan V N
enable mmc driver model for dra72_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig index cce3255..d88b2b7 100

[U-Boot] [PATCH v2 13/16] defconfig: dra74_evm: enable spi driver model

2015-11-04 Thread Mugunthan V N
enable mmc driver model for dra74_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig index a57cd7f..b7c541b 100

[U-Boot] [PATCH v2 14/16] am43xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-11-04 Thread Mugunthan V N
Since spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N --- include/configs/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index d93e3e7..1258492 1006

[U-Boot] [PATCH v2 16/16] defconfig: am437x_sk_evm: enable spi driver model

2015-11-04 Thread Mugunthan V N
enable mmc driver model for am437x_sk_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- configs/am437x_sk_evm_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_evm_defconfig index 024

[U-Boot] [PATCH v2 15/16] arm: dts: am4372: add qspi register maps for memory map

2015-11-04 Thread Mugunthan V N
Add qspi memory map address to device tree. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- arch/arm/dts/am4372.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi index ade28c7..1b30d53 100644 --- a/arch/arm/

Re: [U-Boot] [PATCH v2 1/5] ARM: OMAP4/5: Centralize early clock initialization

2015-11-04 Thread Lokesh Vutla
On Tuesday 03 November 2015 05:52 PM, Steve Kipisz wrote: > Early clock initialization is currently done in two stages for OMAP4/5 > SoCs. The first stage is the initialization of console clocks and > then we initialize basic clocks for functionality necessary for SoC > initialization and basic b

Re: [U-Boot] [RFC PATCH 6/8] net: TFTP over IPv6

2015-11-04 Thread Chris Packham
On Wed, Nov 4, 2015 at 8:43 AM, Joe Hershberger wrote: > Hi Chris, > > On Tue, Nov 3, 2015 at 4:15 AM, Chris Packham wrote: >> On Tue, Nov 3, 2015 at 9:43 AM, Joe Hershberger >> wrote: >>> Hi Chris, >>> >>> On Mon, Oct 12, 2015 at 2:43 AM, Chris Packham >>> wrote: Add support for UDP/TFTP

Re: [U-Boot] [PATCH 1/5] arm: ls1021a: merge SoC specific code in a separate file

2015-11-04 Thread Huan Wang
Reviewed-by: Alison Wang Best Regards, Alison Wang > -Original Message- > From: Yuan Yao [mailto:yao.y...@freescale.com] > Sent: Wednesday, October 21, 2015 6:15 PM > To: Sun York-R58495; Wang Huan-B18965 > Cc: u-boot@lists.denx.de > Subject: [PATCH 1/5] arm: ls1021a: merge SoC specific

[U-Boot] [PATCH 3/6] net: altera_tse: fix CamelCase

2015-11-04 Thread Thomas Chou
fix CamelCase. CHECK: Avoid CamelCase: #170: FILE: drivers/net/altera_tse.h:170: + u32 aMACID_1; /*The MAC addresses */ Signed-off-by: Thomas Chou --- drivers/net/altera_tse.h | 81 1 file changed, 41 insertions(+), 40 deletions(-) diff

[U-Boot] [PATCH 1/6] net: altera_tse: use data type u32 for regs and desc

2015-11-04 Thread Thomas Chou
Use data type u32/u16/u8 for regs and desc, as it is more portable. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.c | 16 ++-- drivers/net/altera_tse.h | 186 +++ 2 files changed, 101 insertions(+), 101 deletions(-) diff --git a/drivers/net/a

[U-Boot] [PATCH 2/6] net: altera_tse: fix packed and aligned attribute

2015-11-04 Thread Thomas Chou
Fix packed and aligned attribute warnings. WARNING: __packed is preferred over __attribute__((packed)) #14: FILE: drivers/net/altera_tse.h:14: +#define __packed_1___attribute__ ((packed, aligned(1))) WARNING: __aligned(size) is preferred over __attribute__((aligned(size))) #14: FILE: drivers/

[U-Boot] [PATCH 6/6] net: altera_tse: use BIT macro

2015-11-04 Thread Thomas Chou
Replace numerical bit shift with BIT macro in altera_tse :%s/(1 << nr)/BIT(nr)/g where nr = 0, 1, 2 31 Signed-off-by: Thomas Chou --- drivers/net/altera_tse.h | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/net/altera_tse.h b/dri

[U-Boot] [PATCH 4/6] net: altera_tse: remove the useless parenthesis

2015-11-04 Thread Thomas Chou
Remove the useless parenthesis. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.h | 100 +++ 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/drivers/net/altera_tse.h b/drivers/net/altera_tse.h index 1652e40..f751f6a 100644 --- a/d

[U-Boot] [PATCH 5/6] net: altera_tse: remove unused macro

2015-11-04 Thread Thomas Chou
Remove unused macro. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.h | 44 1 file changed, 44 deletions(-) diff --git a/drivers/net/altera_tse.h b/drivers/net/altera_tse.h index f751f6a..14c064b 100644 --- a/drivers/net/altera_tse.h +++ b/dri

Re: [U-Boot] please pull u-boot-samsung master

2015-11-04 Thread Przemyslaw Marczak
Hello Minkyu, On 11/04/2015 03:05 AM, Minkyu Kang wrote: Dear Przemyslaw Marczak, 2015년 11월 4일 수요일, Tom Rini Dear Tom, > > The following changes since commit 0e067a65f57189703668826d9841fea477026bf6: > > x86: Select the ns16550 debug UART for minnowmax, chromebook_

Re: [U-Boot] [PATCH V2 12/13] arm: mx6: cm-fx6: define fallback boot devices for spl

2015-11-04 Thread Stefano Babic
On 28/10/2015 10:23, Nikita Kiryanov wrote: > Use spl alternate boot device feature to define fallback to > the main boot device as it is defined by hardware. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Stefano Babic > Cc: Tom Rini > --- > Changes in V2: > - No changes.

[U-Boot] [PATCH] Add missing file: include/sandbox-adc.h

2015-11-04 Thread Przemyslaw Marczak
This should be squashed to commit: sandbox: add ADC driver This commit adds implementation of Sandbox ADC device emulation. The device provides: - single and multi-channel conversion - 4 channels with predefined conversion output data - 16-bit resolution Signed-off-by: Przemyslaw Marczak Cc: Si

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Fabio Estevam
Hi Tom, On Wed, Nov 4, 2015 at 1:45 AM, Fabio Estevam wrote: > On Tue, Nov 3, 2015 at 11:47 PM, Tom Rini wrote: > >> NAK. >> >> So, this blows up badly for a lot of things when I do: >> ./tools/buildman/buildman -b master --force-build --step 0 -Cdvel >> 'blackfin|microblaze|m68k|nds32|x86|aarch

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Fabio Estevam
On Wed, Nov 4, 2015 at 8:46 AM, Fabio Estevam wrote: > Hi Tom, > > On Wed, Nov 4, 2015 at 1:45 AM, Fabio Estevam wrote: >> On Tue, Nov 3, 2015 at 11:47 PM, Tom Rini wrote: >> >>> NAK. >>> >>> So, this blows up badly for a lot of things when I do: >>> ./tools/buildman/buildman -b master --force-b

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Fabio Estevam
Hi Jagan, On Wed, Nov 4, 2015 at 8:47 AM, Fabio Estevam wrote: > On Wed, Nov 4, 2015 at 8:46 AM, Fabio Estevam wrote: >> Hi Tom, >> >> On Wed, Nov 4, 2015 at 1:45 AM, Fabio Estevam wrote: >>> On Tue, Nov 3, 2015 at 11:47 PM, Tom Rini wrote: >>> NAK. So, this blows up badly for a

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Jagan Teki
Fabio, On 4 November 2015 at 16:38, Fabio Estevam wrote: > Hi Jagan, > > On Wed, Nov 4, 2015 at 8:47 AM, Fabio Estevam wrote: >> On Wed, Nov 4, 2015 at 8:46 AM, Fabio Estevam wrote: >>> Hi Tom, >>> >>> On Wed, Nov 4, 2015 at 1:45 AM, Fabio Estevam wrote: On Tue, Nov 3, 2015 at 11:47 PM, T

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Fabio Estevam
Hi Jagan, On Wed, Nov 4, 2015 at 9:17 AM, Jagan Teki wrote: > Updated u32 to size_t as prototype uses the same. Does this break? it look OK? Here is the error I see on Blackfin: Building bf518f-ezbrd board... /home/fabio/.buildman-toolchains/gcc-4.6.3-nolibc/bfin-uclinux/bin/bfin-uclinux-size:

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Jagan Teki
On 4 November 2015 at 16:51, Fabio Estevam wrote: > Hi Jagan, > > On Wed, Nov 4, 2015 at 9:17 AM, Jagan Teki wrote: > >> Updated u32 to size_t as prototype uses the same. Does this break? it look >> OK? > > Here is the error I see on Blackfin: > > Building bf518f-ezbrd board... > /home/fabio/.bu

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Fabio Estevam
On Wed, Nov 4, 2015 at 9:30 AM, Jagan Teki wrote: > Yes true, stm_lock and stm_unlock should use size_t for len - Will > update the same. > > With these all built fine? After applying this size_t change plus the three attached bitops patches I sent you for mips, arc. avr32 I do not see any more

[U-Boot] [PATCH] net: altera_tse: get numbers of fdt address and size cells

2015-11-04 Thread Thomas Chou
Get numbers of fdt address and size cells in altera_tse_probe(), thereby remove the assumption of one address cell and one size cell. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/altera_tse.

[U-Boot] [PATCH 1/7] x86: qemu: Remove call to vgabios execution

2015-11-04 Thread Bin Meng
The call to pci_run_vga_bios() is not needed as this is handled in the vesa_fb driver. Signed-off-by: Bin Meng --- arch/x86/cpu/qemu/pci.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/arch/x86/cpu/qemu/pci.c b/arch/x86/cpu/qemu/pci.c index 2e94456..851

[U-Boot] [PATCH 2/7] x86: qemu: Move chipset-specific codes from pci.c to qemu.c

2015-11-04 Thread Bin Meng
Move chipset-specific codes such as PAM init, PCIe ECAM and MP table from pci.c to qemu.c, to prepare for DM PCI conversion. Signed-off-by: Bin Meng --- arch/x86/cpu/qemu/pci.c| 72 arch/x86/cpu/qemu/qemu.c | 82

[U-Boot] [PATCH 6/7] x86: Remove legacy pci codes

2015-11-04 Thread Bin Meng
Now that we have converted all x86 boards to use driver model pci, remove these legacy pci codes. Signed-off-by: Bin Meng --- arch/x86/cpu/pci.c| 45 --- arch/x86/include/asm/pci.h| 21 arch/x86/lib/fsp/fsp_common.c |

[U-Boot] [PATCH 5/7] x86: crownbay: Remove unused PCI region address macros

2015-11-04 Thread Bin Meng
These are leftover when converted to use driver model pci. Signed-off-by: Bin Meng --- include/configs/crownbay.h | 12 1 file changed, 12 deletions(-) diff --git a/include/configs/crownbay.h b/include/configs/crownbay.h index 7f91fff..184169d 100644 --- a/include/configs/crownbay

[U-Boot] [PATCH 3/7] x86: qemu: Convert to use driver model pci

2015-11-04 Thread Bin Meng
Move to driver model for pci on QEMU. Signed-off-by: Bin Meng --- arch/x86/cpu/qemu/Makefile | 1 - arch/x86/cpu/qemu/pci.c| 49 -- configs/qemu-x86_defconfig | 1 + include/configs/qemu-x86.h | 12 4 files changed, 1 insertion(+),

[U-Boot] [PATCH 4/7] x86: qemu: Convert to use driver model usb

2015-11-04 Thread Bin Meng
Move to driver model for USB on QEMU. Signed-off-by: Bin Meng --- configs/qemu-x86_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig index 62ac76e..7d814d8 100644 --- a/configs/qemu-x86_defconfig +++ b/configs/qemu-x86_defco

[U-Boot] [PATCH 7/7] x86: Remove CONFIG_SYS_EARLY_PCI_INIT

2015-11-04 Thread Bin Meng
CONFIG_SYS_EARLY_PCI_INIT is not needed any more since with driver model, PCI enumeration is automatically triggered. Signed-off-by: Bin Meng --- include/configs/bayleybay.h | 1 - include/configs/crownbay.h | 1 - include/configs/galileo.h| 1 - include/configs/minnowmax.h

[U-Boot] [PATCH v2 00/17]

2015-11-04 Thread Lin Huang
This series patch bring up rk3036 uboot, since rk3036 only 4K size SRAM for SPL, so in SPL image only support timer, uart, sdram driver, adn back to bootrom when finish ddr initial. Lin Huang (17): rockchip: add timer driver rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig rockchip: re

[U-Boot] [PATCH v2 01/17] rockchip: add timer driver

2015-11-04 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 --- Changes in v1: None Changes in v2: add udelay function arch/arm/include/asm/arch-rockchip/timer.h | 16 ++ arch/arm/mach-roc

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

2015-11-04 Thread Lin Huang
since different rockchip soc need different spl file, so rename board-spl.c. Signed-off-by: Lin Huang --- arch/arm/mach-rockchip/Makefile | 2 +- arch/arm/mach-rockchip/board-spl.c| 270 -- arch/arm/mach-rockchip/rk3288-board-spl.c | 270 +

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

2015-11-04 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 --- Changes in v1: None Changes in v2: None arch/arm/mach-rockchip/Kconfig| 3 --- arch/arm/mach-rockchip/rk3288/Kconf

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

2015-11-04 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 --- arch/arm/mach-rockchip/Makefile | 2 +- include/configs/rk3288_common.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rock

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

2015-11-04 Thread Lin Huang
Add SPL Kconfig for REGMAP and SYSCON, so REGMAP and SYSCON can remove from SPL stage. --- configs/chromebook_jerry_defconfig | 2 ++ configs/firefly-rk3288_defconfig | 2 ++ configs/sandbox_defconfig | 2 ++ drivers/core/Kconfig | 19 +++ drivers/core/M

[U-Boot] [PATCH v2 06/17] rockchip: serial driver support rk3036

2015-11-04 Thread Lin Huang
Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: - modify code suggest by Simon drivers/serial/serial_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_rockchip.c b/drivers/serial/serial_rockchip.c index 0e7bbfc..21836bb 100644 --- a/drivers/seri

[U-Boot] [PATCH v2 08/17] rockchip: rk3036: Add clock driver

2015-11-04 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 --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to cru_rk3036.h arch/arm/include/asm/arch-rockchip/cru_rk3036.h | 168 ++ dr

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

2015-11-04 Thread Lin Huang
GRF is the gereral register file. Add header files with register definitions. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to grf_rk3036.h arch/arm/include/asm/arch-rockchip/grf_rk3036.h | 493 1 file change

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

2015-11-04 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 --- Changes in v1: - clean copyright announcement Changes in v2: None arch/arm/dts/rk3036.dtsi | 427 +

[U-Boot] [PATCH v2 10/17] rockchip: rk3036: Add Soc reset driver

2015-11-04 Thread Lin Huang
We can reset the Soc using some CRU (clock/reset unit) register. Add support for this. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - only build reset_rk3036.c in NON-SPL stage arch/arm/mach-rockchip/rk3036/Makefile | 10 +++ arch/arm/mach-

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

2015-11-04 Thread Lin Huang
Add a driver that provides access to system controllers Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - only build syscon_rk3036.c on NON-SPL stage arch/arm/mach-rockchip/rk3036/Makefile| 2 +- arch/arm/mach-rockchip/rk3036/syscon_rk3036.c |

[U-Boot] [PATCH v2 12/17] rockchip: rk3036: Add pinctrl driver

2015-11-04 Thread Lin Huang
Add a driver which support pin multiplexing setup for rk3036 Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: None drivers/pinctrl/Kconfig | 18 ++ drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl_rk3

[U-Boot] [PATCH v2 13/17] rockchip: Add an rk3036 MMC driver

2015-11-04 Thread Lin Huang
rk3036 mmc driver is similar to dw_mmc, but use external dma, this patch implment fifo mode, need to do dma mode in future. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - modify code suggest by Simon: - use get_time() to do timeout drivers/mmc/Kconfi

[U-Boot] [PATCH v2 14/17] rockchip: add early uart driver

2015-11-04 Thread Lin Huang
add early uart driver so we can print debug message in SPL stage Signed-off-by: Lin Huang --- arch/arm/include/asm/arch-rockchip/uart.h | 39 ++ arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/rk_early_print.c | 55 +++ 3

[U-Boot] [PATCH v2 15/17] rockchip: add rk3036 sdram driver

2015-11-04 Thread Lin Huang
add rk3036 sdram driver so we can set up sdram in SPL Signed-off-by: Lin Huang --- arch/arm/include/asm/arch-rockchip/sdram_rk3036.h | 337 ++ arch/arm/mach-rockchip/rk3036/Makefile| 2 + arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 732 ++ 3 file

[U-Boot] [PATCH v2 16/17] rockchip: rk3036: Add core Soc start-up code

2015-11-04 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. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - support SPL arch/arm/mach-rockchip/Kconfig | 10 +-

[U-Boot] [PATCH 2/2] ARM: dts: uniphier: add USB xHCI nodes for PH1-Pro5 and ProXstream2

2015-11-04 Thread Masahiro Yamada
This makes USB3.0 available on new SoCs/boards. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ph1-ld6b-ref.dts | 8 arch/arm/dts/uniphier-ph1-pro5-4kbox.dts | 4 arch/arm/dts/uniphier-ph1-pro5.dtsi | 18 ++ arch/arm/dts/uniphier-prox

[U-Boot] [PATCH 1/2] ARM: dts: uniphier: fix interrupt number of USB core for PH1-Pro4

2015-11-04 Thread Masahiro Yamada
The IRQ is not used in U-boot, but this would be useful to sync device trees between Linux and U-boot. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ph1-pro4.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/uniphier-ph1-pro4.dtsi b/arch/arm/dts/u

[U-Boot] [PATCH v2 17/17] rockchip: Add basic support for evb-rk3036 board

2015-11-04 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 --- Changes in v1: - clean copyright announcement Changes in v2: - get sdram info from evb_rk3036.c arch/arm/dts/Makefile| 3 +- arch/a

Re: [U-Boot] [PATCH 1/2] ARM: dts: uniphier: fix interrupt number of USB core for PH1-Pro4

2015-11-04 Thread Bin Meng
Hi Masahiro, On Wed, Nov 4, 2015 at 8:56 PM, Masahiro Yamada wrote: > The IRQ is not used in U-boot, but this would be useful to sync > device trees between Linux and U-boot. Nits: U-boot -> U-Boot > > Signed-off-by: Masahiro Yamada > --- > > arch/arm/dts/uniphier-ph1-pro4.dtsi | 2 +- > 1 fi

[U-Boot] [PATCH 1/1] fsl_qspi: Pet the watchdog while reading/writing

2015-11-04 Thread Alexander Stein
When reading a large blob. e.g. a linux kernel (several MiBs) a watchdog timeout might occur meanwhile. So pet the watchdog while operating on the flash. Signed-off-by: Alexander Stein --- drivers/spi/fsl_qspi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/spi/fsl_qspi.c b/dr

Re: [U-Boot] [RFC PATCH 6/8] net: TFTP over IPv6

2015-11-04 Thread Angga
Chris Have a look at https://www.ietf.org/rfc/rfc2732.txt, might give you some hints. Kind regards Angga -Original Message- From: Chris Packham [mailto:judge.pack...@gmail.com] Sent: Wednesday, 4 November 2015 9:43 p.m. To: Joe Hershberger Cc: u-boot; Joe Hershberger; jp.tos...@acksys

Re: [U-Boot] [PATCH 8/8] net: zynq: Fix MDC setting for zynq

2015-11-04 Thread Michal Simek
On 11/02/2015 10:39 PM, Joe Hershberger wrote: > On Tue, Oct 27, 2015 at 10:17 AM, Michal Simek > wrote: >> Based on spec: >> "MDC must not exceed 2.5 MHz (MDC is only active during MDIO read and >> write operations)" >> Zynq is running on 111MHz. Current setting is 32 which is 111/32=3.47 > > I

Re: [U-Boot] u-boot device model SPI + SPI Flash

2015-11-04 Thread Michal Simek
Hi, you have to change microblaze configuration to enable DM. If you look at xilinx git tree then you will have all patches what you need. Unfortunatelly there is no configuration for SPI DM because petalinux is not using microblaze-generic configuration. When I have time I will try to fix this bu

Re: [U-Boot] Pull request: u-boot-spi/next

2015-11-04 Thread Fabio Estevam
On Wed, Nov 4, 2015 at 9:35 AM, Fabio Estevam wrote: > After applying this size_t change plus the three attached bitops > patches I sent you for mips, arc. avr32 I do not see any more build > issues here. > > Also, when you apply the three patches to your tree, please make sure > they are applied

Re: [U-Boot] [PATCH 6/6] net: altera_tse: use BIT macro

2015-11-04 Thread Marek Vasut
On Wednesday, November 04, 2015 at 10:12:29 AM, Thomas Chou wrote: > Replace numerical bit shift with BIT macro > in altera_tse > > :%s/(1 << nr)/BIT(nr)/g > > where nr = 0, 1, 2 31 > > Signed-off-by: Thomas Chou Whole series: Reviewed-by: Marek Vasut Best regards, Marek Vasut

Re: [U-Boot] [PATCH] mtd: add altera quadspi driver

2015-11-04 Thread Marek Vasut
On Wednesday, November 04, 2015 at 06:33:00 AM, Thomas Chou wrote: > Hi Marek, Hi, > On 2015年11月04日 13:15, Marek Vasut wrote: > > On Wednesday, November 04, 2015 at 05:45:24 AM, Thomas Chou wrote: > >> Hi Marek, > > > > Hi, > > > >> On 2015年11月04日 11:45, Marek Vasut wrote: > >>> Let me just put

Re: [U-Boot] [PATCH 1/2] nios2: trim CONFIG_SYS_MALLOC_LEN

2015-11-04 Thread Chin Liang See
On Wed, 2015-11-04 at 13:30 +0800, tho...@wytron.com.tw wrote: > Trim CONFIG_SYS_MALLOC_LEN size, because CONFIG_ENV_SIZE > is included to total memory allocation in common.h, > > Signed-off-by: Thomas Chou > --- Reviewed-by: Chin Liang See Thanks Chin Liang ___

[U-Boot] [PATCH] dm: core: Kconfig: set OF_TRANSLATE default value to n

2015-11-04 Thread Mugunthan V N
Based on the OF_TRANSLATE Kconfig description, this is required only on platforms with complex "ranges" in the DT nodes. For simpler platforms using SIMPLE_BUS should be sufficient. Since this a set to default y, simple bus is never used in any platform. So make the default value as "n" and enable

Re: [U-Boot] [PATCH 2/2] nios2: trim CONFIG_SYS_MEMTEST_END

2015-11-04 Thread Chin Liang See
On Wed, 2015-11-04 at 13:30 +0800, tho...@wytron.com.tw wrote: > Trim CONFIG_SYS_MEMTEST_END location. > > CONFIG_SYS_MONITOR_LEN > Reserving 256k for U-Boot at: d7fc > CONFIG_ENV_SIZE > CONFIG_SYS_MALLOC_LEN > Reserving 256k for malloc() at: d7f8 > 0x1 for the rest > Reserving 6

Re: [U-Boot] [PATCH 1/3] nios2: remove CONFIG_SYS_MALLOC_BASE macro

2015-11-04 Thread Chin Liang See
On Tue, 2015-11-03 at 14:20 +0800, tho...@wytron.com.tw wrote: > Remove CONFIG_SYS_MALLOC_BASE macro, as it is not used by > the generic board. > > Signed-off-by: Thomas Chou Reviewed-by: Chin Liang See Thanks Chin Liang ___ U-Boot mailing list U-Bo

Re: [U-Boot] [PATCH 2/3] nios2: remove CONFIG_SYS_INIT_SP macro

2015-11-04 Thread Chin Liang See
On Tue, 2015-11-03 at 14:20 +0800, tho...@wytron.com.tw wrote: > Remove CONFIG_SYS_INIT_SP macro, as the initial stack is set to > below the u-boot code. > > Signed-off-by: Thomas Chou Reviewed-by: Chin Liang See Thanks Chin Liang ___ U-Boot mailing

Re: [U-Boot] [PATCH] ARM: zynq: Remove zc70x target

2015-11-04 Thread Jagan Teki
On 3 November 2015 at 03:11, Joe Hershberger wrote: > On Fri, Oct 30, 2015 at 9:51 AM, Michal Simek wrote: >> Remove zc70x target which was one setting for zc702 and zc706. >> Currently zc702 and zc706 are separated. >> >> Signed-off-by: Michal Simek > > Reviewed-by: Joe Hershberger Reviewed-b

Re: [U-Boot] [PATCH 3/3] nios2: fix cached mode in clearing the BSS

2015-11-04 Thread Chin Liang See
On Tue, 2015-11-03 at 14:20 +0800, tho...@wytron.com.tw wrote: > As the generic board runs in cached mode, it should not use > "stwio" which bypass the cache. > > Signed-off-by: Thomas Chou > --- Reviewed-by: Chin Liang See Thanks Chin Liang ___ U-Bo

Re: [U-Boot] [PATCH v5 4/5] spi: cadence_qspi: Ensure check for max frequency in place

2015-11-04 Thread Chin Liang See
On Sat, 2015-10-17 at 16:14 +0200, ma...@denx.de wrote: > On Saturday, October 17, 2015 at 03:32:38 PM, Chin Liang See wrote: > > Ensure the intended SCLK frequency not exceeding the maximum > > frequency. If that happen, SCLK will set to maximum frequency. > > > > Signed-off-by: Chin Liang See >

Re: [U-Boot] [PATCH v2 1/5] ARM: OMAP4/5: Centralize early clock initialization

2015-11-04 Thread Steven Kipisz
On 11/04/2015 02:32 AM, Lokesh Vutla wrote: On Tuesday 03 November 2015 05:52 PM, Steve Kipisz wrote: Early clock initialization is currently done in two stages for OMAP4/5 SoCs. The first stage is the initialization of console clocks and then we initialize basic clocks for functionality neces

[U-Boot] [GIT PULL] Zynq changes

2015-11-04 Thread Michal Simek
Hi Tom, please pull these patches to your tree. They are enabling DM for Zynq and ZynqMP targets and also they are fixing compilation error which is currently in the tree. Also as I have promised I am removing zc70x target from u-boot and only zc702 and zc706 will be used. There will be some othe

Re: [U-Boot] [PATCH 5/8] net: zynq: Wait till packet is sent

2015-11-04 Thread Michal Simek
On 11/02/2015 10:40 PM, Joe Hershberger wrote: > On Tue, Oct 27, 2015 at 10:17 AM, Michal Simek > wrote: >> Wait till BD is process to ensure that packet was sent successfully. > > process -> processed Fixed in v2. > >> >> Signed-off-by: Michal Simek >> --- >> >> drivers/net/zynq_gem.c | 33

Re: [U-Boot] [PATCH 1/2] ARM: dts: uniphier: fix interrupt number of USB core for PH1-Pro4

2015-11-04 Thread Masahiro Yamada
Hi Bin, 2015-11-04 22:03 GMT+09:00 Bin Meng : > Hi Masahiro, > > On Wed, Nov 4, 2015 at 8:56 PM, Masahiro Yamada > wrote: >> The IRQ is not used in U-boot, but this would be useful to sync >> device trees between Linux and U-boot. > > Nits: U-boot -> U-Boot Thanks. I will fix it when I apply

Re: [U-Boot] please pull u-boot-samsung master

2015-11-04 Thread Minkyu Kang
Dear Przemyslaw Marczak, On 4 November 2015 at 18:37, Przemyslaw Marczak wrote: > Hello Minkyu, > > On 11/04/2015 03:05 AM, Minkyu Kang wrote: > >> Dear Przemyslaw Marczak, >> >> 2015년 11월 4일 수요일, Tom Rini> >> On Tue, Nov 03, 2015 at 02:02:57PM +0900, Minkyu Kang wrote: >> >> > Dear Tom

Re: [U-Boot] [PATCH] mtd: add altera quadspi driver

2015-11-04 Thread Chin Liang See
On Tue, 2015-11-03 at 21:22 +0800, tho...@wytron.com.tw wrote: > Add Altera Generic Quad SPI Controller support. The controller > converts SPI NOR flash to parallel flash interface. So it is > not like other SPI flash, but rather like CFI flash. > > Signed-off-by: Thomas Chou > --- > doc/device-

Re: [U-Boot] [PATCH 1/6] net: altera_tse: use data type u32 for regs and desc

2015-11-04 Thread Chin Liang See
On Wed, 2015-11-04 at 17:12 +0800, tho...@wytron.com.tw wrote: > Use data type u32/u16/u8 for regs and desc, as it is more > portable. > > Signed-off-by: Thomas Chou Reviewed-by: Chin Liang See Thanks Chin Liang ___ U-Boot mailing list U-Boot@lists.

Re: [U-Boot] [PATCH 2/6] net: altera_tse: fix packed and aligned attribute

2015-11-04 Thread Chin Liang See
On Wed, 2015-11-04 at 17:12 +0800, tho...@wytron.com.tw wrote: > Fix packed and aligned attribute warnings. > > WARNING: __packed is preferred over __attribute__((packed)) > #14: FILE: drivers/net/altera_tse.h:14: > +#define __packed_1___attribute__ ((packed, aligned(1))) > > WARNING: __align

Re: [U-Boot] [PATCH 3/6] net: altera_tse: fix CamelCase

2015-11-04 Thread Chin Liang See
Hi Thomas, On Wed, 2015-11-04 at 17:12 +0800, tho...@wytron.com.tw wrote: > fix CamelCase. > > CHECK: Avoid CamelCase: > #170: FILE: drivers/net/altera_tse.h:170: > + u32 aMACID_1; /*The MAC addresses */ > > Signed-off-by: Thomas Chou > --- > drivers/net/altera_tse.h | 81 > ++

Re: [U-Boot] [PATCH] mtd: add altera quadspi driver

2015-11-04 Thread Marek Vasut
On Wednesday, November 04, 2015 at 04:56:10 PM, Chin Liang See wrote: > On Tue, 2015-11-03 at 21:22 +0800, tho...@wytron.com.tw wrote: > > Add Altera Generic Quad SPI Controller support. The controller > > converts SPI NOR flash to parallel flash interface. So it is > > not like other SPI flash, bu

Re: [U-Boot] [PATCH 4/6] net: altera_tse: remove the useless parenthesis

2015-11-04 Thread Chin Liang See
On Wed, 2015-11-04 at 03:29 +, tho...@wytron.com.tw wrote: > Remove the useless parenthesis. > > Signed-off-by: Thomas Chou > --- Reviewed-by: Chin Liang See Thanks Chin Liang ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mail

Re: [U-Boot] [PATCH 5/6] net: altera_tse: remove unused macro

2015-11-04 Thread Chin Liang See
On Wed, 2015-11-04 at 17:12 +0800, tho...@wytron.com.tw wrote: > Remove unused macro. > > Signed-off-by: Thomas Chou > --- Reviewed-by: Chin Liang See Thanks Chin Liang ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinf

Re: [U-Boot] [PATCH 6/6] net: altera_tse: use BIT macro

2015-11-04 Thread Chin Liang See
On Wed, 2015-11-04 at 17:12 +0800, tho...@wytron.com.tw wrote: > Replace numerical bit shift with BIT macro > in altera_tse > > :%s/(1 << nr)/BIT(nr)/g > where nr = 0, 1, 2 31 > > Signed-off-by: Thomas Chou > --- Reviewed-by: Chin Liang See Thanks Chin Liang ___

Re: [U-Boot] [PATCH 6/6] net: altera_tse: use BIT macro

2015-11-04 Thread Jagan Teki
On 4 November 2015 at 21:52, Chin Liang See wrote: > On Wed, 2015-11-04 at 17:12 +0800, tho...@wytron.com.tw wrote: >> Replace numerical bit shift with BIT macro >> in altera_tse >> >> :%s/(1 << nr)/BIT(nr)/g >> where nr = 0, 1, 2 31 >> >> Signed-off-by: Thomas Chou >> --- > > > Reviewed-by:

[U-Boot] [PATCH 2/4] arc: Use the generic bitops headers

2015-11-04 Thread Fabio Estevam
From: Fabio Estevam The generic bitops headers are required when calling logarithimic functions, such as ilog2(). Signed-off-by: Fabio Estevam --- Applies against u-boot-spi next arch/arc/include/asm/bitops.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arc/include/asm/bitops

[U-Boot] [PATCH 1/4] mips: Use the generic bitops headers

2015-11-04 Thread Fabio Estevam
From: Fabio Estevam The generic bitops headers are required when calling logarithimic functions, such as ilog2(). Signed-off-by: Fabio Estevam --- Applies against u-boot-spi next arch/mips/include/asm/bitops.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/include/asm/bito

[U-Boot] [PATCH 3/4] avr32: Use the generic bitops headers

2015-11-04 Thread Fabio Estevam
From: Fabio Estevam The generic bitops headers are required when calling logarithimic functions, such as ilog2(). Signed-off-by: Fabio Estevam --- Applies against u-boot-spi next arch/avr32/include/asm/bitops.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/avr32/include/asm/bi

[U-Boot] [PATCH 4/4] spi: sf_ops: Use size_t for len

2015-11-04 Thread Fabio Estevam
From: Fabio Estevam Let the function and its prototype use the same variable type for 'len'. Signed-off-by: Fabio Estevam --- Applies against u-boot-spi next drivers/mtd/spi/sf_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd

Re: [U-Boot] please pull u-boot-samsung master

2015-11-04 Thread Przemyslaw Marczak
Hello Minkyu, On 11/04/2015 04:43 PM, Minkyu Kang wrote: Dear Przemyslaw Marczak, On 4 November 2015 at 18:37, Przemyslaw Marczak mailto:p.marc...@samsung.com>> wrote: Hello Minkyu, On 11/04/2015 03:05 AM, Minkyu Kang wrote: Dear Przemyslaw Marczak, 2015년 11월 4일 수요일,

[U-Boot] [PATCH] sandbox: adc: Add missing header file

2015-11-04 Thread Przemyslaw Marczak
Commit: sandbox: add ADC driver adds the driver without its main header file. It causes build brake for sandbox_defonfig. This commit adds a missing header: - include/sandbox-adc.h Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- include/sandbox-adc.h | 31 ++

  1   2   >