Re: [U-Boot] [PATCH 4/7] arm: Make new baltos board not break on savedefconfig

2015-06-23 Thread Yegor Yefremov
Hi Joe, On Wed, Jun 24, 2015 at 5:26 AM, Joe Hershberger wrote: > Hi Tom, > > On Tue, Jun 23, 2015 at 9:23 AM, Tom Rini wrote: >> On Mon, Jun 22, 2015 at 04:15:27PM -0500, Joe Hershberger wrote: >> >>> This config defined a CONS_INDEX as a config but did not define it in >>> any Kconfig, so save

Re: [U-Boot] [PATCH v3 22/25] rockchip: Add SPI driver

2015-06-23 Thread Jagan Teki
On 24 June 2015 at 04:59, Simon Glass wrote: > Add a SPI driver for the Rockchip RK3288, using driver model. It should work > for other Rockchip SoCs also. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > drivers/spi/Kconfig | 10 ++ > drivers/spi/Makefile

[U-Boot] [PATCH] drivers: usb: fsl: Remove LS102XA immap inclusion

2015-06-23 Thread Nikhil Badola
Remove LS102XA immap header inclusion from xhci fsl driver. It removes redefinition warnings when built for platforms other than LS102XA Signed-off-by: Nikhil Badola --- drivers/usb/host/xhci-fsl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/

Re: [U-Boot] [PATCH 11/11] dm: x86: baytrail: Correct PCI region 3 when driver model is used

2015-06-23 Thread Bin Meng
Hi Simon, On Wed, Jun 24, 2015 at 11:23 AM, Simon Glass wrote: > Hi, > > On 8 June 2015 at 06:32, Andrew Bradford wrote: >> Hi Bin / Simon, >> >> On 06/08 10:57, Bin Meng wrote: >>> Hi Simon, >>> >>> On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass wrote: >>> > Commit afbbd413a fixed this for non-d

Re: [U-Boot] [PATCH v3 25/25] rockchip: Add a simple README

2015-06-23 Thread Naoki FUKAUMI
Hi, On Wed, Jun 24, 2015 at 8:29 AM, Simon Glass wrote: > Add a few notes on how to try out the Rockchip support so far. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Update README to mention available drivers > - Add various new patches to get RK3288 booting to a prompt > > Change

Re: [U-Boot] [PATCH v3 06/25] rockchip: Add the rkimage format to mkimage

2015-06-23 Thread Naoki FUKAUMI
Hi, On Wed, Jun 24, 2015 at 8:28 AM, Simon Glass wrote: > Rockchip SoCs require certain formats for code that they execute, The > simplest format is a 4-byte header at the start of a binary file. Add > support for this so that we can create images that the boot ROM understands. > > Signed-off-by:

Re: [U-Boot] [PATCH v3 08/25] rockchip: Add support for the SPI image

2015-06-23 Thread Naoki FUKAUMI
Hi, On Wed, Jun 24, 2015 at 8:28 AM, Simon Glass wrote: > The Rockchip boot ROM requires a particular file format for booting from SPI. > It consists of a 512-byte header encoded with RC4, some padding and then up > to 32KB of executable code in 2KB blocks, separated by 2KB empty blocks. > > Add

Re: [U-Boot] [PATCH v3 00/25] dm: Introduce Rockchip RK3288 support

2015-06-23 Thread Naoki FUKAUMI
Hi, On Wed, Jun 24, 2015 at 8:28 AM, Simon Glass wrote: > Since much of the code is generic, this also supports the Radxa Rock Pro. > Since there is no device tree available for that yet, it uses the same > config and device tree as the Firefly. This works because not all > peripherals are suppor

Re: [U-Boot] [PATCH 07/11] x86: pci: Tidy up the generic x86 PCI driver

2015-06-23 Thread Bin Meng
Hi Simon, On Wed, Jun 24, 2015 at 11:54 AM, Simon Glass wrote: > Hi Bin, > > On 23 June 2015 at 21:46, Bin Meng wrote: >> Hi Simon, >> >> On Wed, Jun 24, 2015 at 11:18 AM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 7 June 2015 at 20:15, Bin Meng wrote: Hi Simon, On Sun, Jun 7, 20

Re: [U-Boot] [PATCH 07/11] x86: pci: Tidy up the generic x86 PCI driver

2015-06-23 Thread Simon Glass
Hi Bin, On 23 June 2015 at 21:46, Bin Meng wrote: > Hi Simon, > > On Wed, Jun 24, 2015 at 11:18 AM, Simon Glass wrote: >> Hi Bin, >> >> On 7 June 2015 at 20:15, Bin Meng wrote: >>> Hi Simon, >>> >>> On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass wrote: This driver should use the x86 PCI con

Re: [U-Boot] [PATCH 07/11] x86: pci: Tidy up the generic x86 PCI driver

2015-06-23 Thread Bin Meng
Hi Simon, On Wed, Jun 24, 2015 at 11:18 AM, Simon Glass wrote: > Hi Bin, > > On 7 June 2015 at 20:15, Bin Meng wrote: >> Hi Simon, >> >> On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass wrote: >>> This driver should use the x86 PCI configuration functions. Also adjust its >>> compatible string to s

Re: [U-Boot] [PATCH 7/7] Move defaults from config_cmd_default.h to Kconfig

2015-06-23 Thread Joe Hershberger
Hi Tom, On Tue, Jun 23, 2015 at 9:33 AM, Tom Rini wrote: > On Mon, Jun 22, 2015 at 04:15:30PM -0500, Joe Hershberger wrote: > >> This sets the default commands Kconfig to match >> include/config_cmd_default.h commands in the common/Kconfig and removes >> them from include/configs. > [snip] >> dif

Re: [U-Boot] [PATCH 10/11] dm: pci: Correct bus number when scanning sub-buses

2015-06-23 Thread Simon Glass
On 7 June 2015 at 08:50, Simon Glass wrote: > The sub-bus passed to pciauto_prescan_setup_bridge() is incorrect. Fix it > so that sub-buses are numbered correctly. > > Signed-off-by: Simon Glass > --- > > drivers/pci/pci-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied t

Re: [U-Boot] [PATCH 4/7] arm: Make new baltos board not break on savedefconfig

2015-06-23 Thread Joe Hershberger
Hi Tom, On Tue, Jun 23, 2015 at 9:23 AM, Tom Rini wrote: > On Mon, Jun 22, 2015 at 04:15:27PM -0500, Joe Hershberger wrote: > >> This config defined a CONS_INDEX as a config but did not define it in >> any Kconfig, so savedefconfig will delete that entry. Use >> CONFIG_SYS_EXTRA_OPTIONS for now u

Re: [U-Boot] [PATCH 09/11] dm: pci: Use the correct hose when configuring devices

2015-06-23 Thread Simon Glass
On 7 June 2015 at 08:50, Simon Glass wrote: > Only the PCI controller has access to the PCI region information. Make sure > to use the controller (rather than any attached bridges) when configuring > devices. > > This corrects a failure to scan and configure devices when driver model is > enabled

Re: [U-Boot] [PATCH 11/11] dm: x86: baytrail: Correct PCI region 3 when driver model is used

2015-06-23 Thread Simon Glass
Hi, On 8 June 2015 at 06:32, Andrew Bradford wrote: > Hi Bin / Simon, > > On 06/08 10:57, Bin Meng wrote: >> Hi Simon, >> >> On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass wrote: >> > Commit afbbd413a fixed this for non-driver-model. Make sure that the driver >> > model code handles this also. >>

Re: [U-Boot] [PATCH 07/11] x86: pci: Tidy up the generic x86 PCI driver

2015-06-23 Thread Simon Glass
Hi Bin, On 7 June 2015 at 20:15, Bin Meng wrote: > Hi Simon, > > On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass wrote: >> This driver should use the x86 PCI configuration functions. Also adjust its >> compatible string to something generic (i.e. without a vendor name). >> >> Signed-off-by: Simon G

Re: [U-Boot] BTRFS support in u-boot?

2015-06-23 Thread Simon Glass
Hi, On 4 June 2015 at 10:32, Joakim Tjernlund wrote: > I have seen btrfs patches for u-boot flying around a year ago or so then > it went silent. Is there any efforts ongoing to add btrfs support to u-boot? > > Jocke I'm not sure. It would be good to get that in - if someone reposts I am willin

[U-Boot] [PATCH] ls2085a: esdhc: flush D-cache before 'mmc read'

2015-06-23 Thread Yangbo Lu
It needs to flush D-cache before 'mmc read' so that we can see the right data in DDR. And fix parameter for invalidate_dcache_range() after 'mmc read'. Signed-off-by: Yangbo Lu Cc: York Sun --- drivers/mmc/fsl_esdhc.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-)

Re: [U-Boot] [RESPIN PATCH v2 14/15] x86: crownbay: Enable writing MP table

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Enable writing MP table for Intel Crown Bay board. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > > --- > > Changes in v2: None > > configs/crownbay_defconfig | 1 + > 1 file changed, 1 insertion(+) Applied to u-boot-x86, thanks! _

Re: [U-Boot] [RESPIN PATCH v2 15/15] x86: queensbay: Change PCIe root ports' interrupt routing

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> So far interrupt routing works pretty well for any on-chip devices >> on Intel Crown Bay. When inserting any PCIe card to any PCIe slot, >> Linux kernel is smart enough to do interrupt swizzling and figure

Re: [U-Boot] [RESPIN PATCH v2 10/15] x86: Remove inline for lapic access routines

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> Remove inline for lapic access routines and expose lapic_read() >> & lapic_write() as APIs to read/write lapic registers. Also move >> stop_this_cpu() to mp_init.c as it has nothing to do with lapic. >> >>

Re: [U-Boot] [RESPIN PATCH v2 13/15] x86: Update README.x86 for SMP support

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> Document U-Boot multi-processor support as well as configuration >> tables like SFI and MP tables for SMP OS kernel. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v2: >> - New patch to update R

Re: [U-Boot] [RESPIN PATCH v2 11/15] x86: Add MultiProcessor (MP) table APIs

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> The MP table provides a way for the operating system to support >> for symmetric multiprocessing as well as symmetric I/O interrupt >> handling with the local APIC and I/O APIC. We provide a bunch of >> AP

Re: [U-Boot] [RESPIN PATCH v2 09/15] x86: Add I/O APIC register access routines

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> I/O APIC registers are addressed indirectly. Add io_apic_read() and >> io_apic_write() routines to help register access. Two macros for I/O >> APIC ID and version register offset are also added. >> >> Sign

Re: [U-Boot] [RESPIN PATCH v2 12/15] x86: Generate a valid MultiProcessor (MP) table

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> Implement write_mp_table() to create a minimal working MP table. >> This includes an MP floating table, a configuration table header >> and all of the 5 base configuration table entries. The I/O interrupt

Re: [U-Boot] [RESPIN PATCH v2 04/15] x86: queensbay: Correct Topcliff device irqs

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > There are 4 usb ports on the Intel Crown Bay board, 2 of which are > connected to Topcliff usb host 0 and the other 2 connected to usb > host 1. USB devices inserted in the ports connected to usb host 1 > cannot get detected due to wrong IRQ assigned to

Re: [U-Boot] [RESPIN PATCH v2 08/15] x86: Clean up ioapic header file

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Remove all the dead/unused macros from asm/ioapic.h. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/include/asm/ioapic.h | 26 +++--- > 1 file changed, 3 insertions(+), 23 deletions(-

Re: [U-Boot] [RESPIN PATCH v2 06/15] x86: Ignore function number when writing PIRQ routing table

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > In fill_irq_info() pci device's function number is written into > the table, however this is not really necessary. The function > number can be anything as OS doesn't care about this field, > neither does the PIRQ routing specification. Change to always

Re: [U-Boot] [RESPIN PATCH v2 03/15] x86: crownbay: Enable DM RTC support

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> Add a RTC node in the device tree to enable DM RTC support. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v2: >> - New patch to enable DM RTC support for Crown Bay >> >> arch/x86/dts/crownbay.

Re: [U-Boot] [RESPIN PATCH v2 07/15] x86: Reduce PIRQ routing table size

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > There is no need to populate multiple irq info entries with the same > bus number and device number, but with different interrupt pin. We > can use the same entry to store all the 4 interrupt pin (INT A/B/C/D) > routing information to reduce the whole PI

Re: [U-Boot] [RESPIN PATCH v2 05/15] x86: Write correct bus number for the irq router

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > We should write correct bus number to the PIRQ routing table for the > irq router from device tree, instead of hard-coded zero. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/irq.c | 2 +- > 1 file c

Re: [U-Boot] [PATCH v4 6/6] x86: crownbay: Add MP initialization

2015-06-23 Thread Simon Glass
On 16 June 2015 at 21:15, Bin Meng wrote: > Intel Crown Bay board has a TunnelCreek processor which supports > hyper-threading. Add /cpus node in the crownbay.dts and enable > the MP initialization. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > > --- > > Changes in v4: None > Changes in

Re: [U-Boot] [RESPIN PATCH v2 02/15] cmd: date: Change to use CONFIG_DM_RTC instead of CONFIG_DM_I2C

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> Currently CONFIG_DM_I2C is used in cmd_date.c for driver model, >> but it should be actually CONFIG_DM_RTC. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v2: >> - New patch to change to use CON

Re: [U-Boot] [PATCH v4 5/6] x86: Clean up lapic codes

2015-06-23 Thread Simon Glass
On 16 June 2015 at 21:15, Bin Meng wrote: > This commit cleans up the lapic codes: > - Delete arch/x86/include/asm/lapic_def.h, and move register and bit > defines into arch/x86/include/asm/lapic.h > - Use MSR defines from msr-index.h in enable_lapic() and disable_lapic() > - Remove unnecessary

Re: [U-Boot] [RESPIN PATCH v2 01/15] dm: rtc: Support mc146818 driver in driver model

2015-06-23 Thread Simon Glass
On 23 June 2015 at 19:45, Simon Glass wrote: > On 22 June 2015 at 22:18, Bin Meng wrote: >> Add driver model support to the mc146818 rtc driver. Also clean up >> the driver a little bit for coding convention issues. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v2: >> - New patch to s

Re: [U-Boot] [PATCH v4 2/6] x86: ivybridge: Remove SMP from CPU_SPECIFIC_OPTIONS

2015-06-23 Thread Simon Glass
Hi Bin, On 16 June 2015 at 21:15, Bin Meng wrote: > > Ivybridge is not ready for U-Boot MP initialization yet. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > > --- > > Changes in v4: None > Changes in v3: > - New patch to remove SMP from CPU_SPECIFIC_OPTIONS for ivybridge > > Changes in

Re: [U-Boot] [PATCH v4 4/6] x86: Move lapic_setup() call into init_bsp()

2015-06-23 Thread Simon Glass
On 16 June 2015 at 21:15, Bin Meng wrote: > Currently lapic_setup() is called before calling mp_init(), which > then calls init_bsp() where it calls enable_lapic(), which was > already enabled in lapic_setup(). Hence move lapic_setup() call > into init_bsp() to avoid the duplication. > > Signed-of

Re: [U-Boot] [PATCH v4 3/6] x86: Move MP initialization codes into a common place

2015-06-23 Thread Simon Glass
On 16 June 2015 at 21:15, Bin Meng wrote: > Most of the MP initialization codes in arch/x86/cpu/baytrail/cpu.c is > common to all x86 processors, except detect_num_cpus() which varies > from cpu to cpu. Move these to arch/x86/cpu/cpu.c and implement the > new 'get_count' method for baytrail and cp

Re: [U-Boot] [PATCH v4 1/6] dm: cpu: Add a new get_count method to cpu uclass

2015-06-23 Thread Simon Glass
On 17 June 2015 at 09:11, Simon Glass wrote: > On 16 June 2015 at 21:15, Bin Meng wrote: >> Introduce a new method 'get_count' in the UCLASS_CPU ops to get >> the number of CPUs in the system. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v4: >> - Remove parameter 'count' from cpu_get

Re: [U-Boot] [PATCH v3 27/54] mmc: Avoid using printf() for errors

2015-06-23 Thread Chen-Yu Tsai
On Wed, Jun 24, 2015 at 5:38 AM, Simon Glass wrote: > These bloat the code and cause problems for SPL. Use debug() where possible > and try to return a useful error code instead. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > drivers/mmc/dw_mmc.c | 21

Re: [U-Boot] [PATCH v3 31/54] mmc: Support bypass mode with the get_mmc_clk() method

2015-06-23 Thread Chen-Yu Tsai
Hi, On Wed, Jun 24, 2015 at 5:38 AM, Simon Glass wrote: > Some SoCs want to adjust the input clock to the DWMMC block as a way of > controlling the MMC bus clock. Update the get_mmc_clk() method to support > this. The subject line should probably reflect this is a DWMMC only patch? There are sys

Re: [U-Boot] [RESPIN PATCH v2 12/15] x86: Generate a valid MultiProcessor (MP) table

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Implement write_mp_table() to create a minimal working MP table. > This includes an MP floating table, a configuration table header > and all of the 5 base configuration table entries. The I/O interrupt > assignment table entry is created based on the sa

Re: [U-Boot] [RESPIN PATCH v2 13/15] x86: Update README.x86 for SMP support

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Document U-Boot multi-processor support as well as configuration > tables like SFI and MP tables for SMP OS kernel. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - New patch to update README.x86 for SMP support > > doc/README.x86 | 13 ++

Re: [U-Boot] [RESPIN PATCH v2 10/15] x86: Remove inline for lapic access routines

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Remove inline for lapic access routines and expose lapic_read() > & lapic_write() as APIs to read/write lapic registers. Also move > stop_this_cpu() to mp_init.c as it has nothing to do with lapic. > > Signed-off-by: Bin Meng > > --- > > Changes in v2:

Re: [U-Boot] [RESPIN PATCH v2 09/15] x86: Add I/O APIC register access routines

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > I/O APIC registers are addressed indirectly. Add io_apic_read() and > io_apic_write() routines to help register access. Two macros for I/O > APIC ID and version register offset are also added. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - D

Re: [U-Boot] [RESPIN PATCH v2 15/15] x86: queensbay: Change PCIe root ports' interrupt routing

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > So far interrupt routing works pretty well for any on-chip devices > on Intel Crown Bay. When inserting any PCIe card to any PCIe slot, > Linux kernel is smart enough to do interrupt swizzling and figure > out device's irq using its parent bridge's inter

Re: [U-Boot] [RESPIN PATCH v2 11/15] x86: Add MultiProcessor (MP) table APIs

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > The MP table provides a way for the operating system to support > for symmetric multiprocessing as well as symmetric I/O interrupt > handling with the local APIC and I/O APIC. We provide a bunch of > APIs for U-Boot to write the floating table, configura

Re: [U-Boot] [RESPIN PATCH v2 03/15] x86: crownbay: Enable DM RTC support

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Add a RTC node in the device tree to enable DM RTC support. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - New patch to enable DM RTC support for Crown Bay > > arch/x86/dts/crownbay.dts | 1 + > arch/x86/dts/rtc.dtsi | 6 ++ > con

Re: [U-Boot] [RESPIN PATCH v2 02/15] cmd: date: Change to use CONFIG_DM_RTC instead of CONFIG_DM_I2C

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Currently CONFIG_DM_I2C is used in cmd_date.c for driver model, > but it should be actually CONFIG_DM_RTC. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - New patch to change to use CONFIG_DM_RTC instead of CONFIG_DM_I2C > > common/cmd_date.

Re: [U-Boot] [RESPIN PATCH v2 01/15] dm: rtc: Support mc146818 driver in driver model

2015-06-23 Thread Simon Glass
On 22 June 2015 at 22:18, Bin Meng wrote: > Add driver model support to the mc146818 rtc driver. Also clean up > the driver a little bit for coding convention issues. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - New patch to support mc146818 driver in driver model > > drivers/rtc/m

[U-Boot] [PATCH v3 23/25] rockchip: Add basic support for firefly-rk3288

2015-06-23 Thread Simon Glass
The Firefly RK3288 is a suitable target board for initial mainline Rockchip support. It includes a good set of peripherals, a recent SoC and it is readily available. This adds only some basic files required to allow the baord to display a serial message in SPL and hang. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 24/25] rockchip: Add basic support for jerry

2015-06-23 Thread Simon Glass
This builds and displays an SPL message, but does not function beyond that. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Tidy up license headers and remove SPL #ifdefs arch/arm/dts/Makefile | 3 +- arch/arm/dts/cros-ec-sbs.dtsi | 16 +

[U-Boot] [PATCH v3 20/25] rockchip: Add core SoC start-up code

2015-06-23 Thread Simon Glass
Add code for starting up U-Boot SPL and U-Boot proper. This is generic and makes use of devices provided by the board- or SoC-specific code. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/Kconfig | 10 ++ arch/arm/Makefile

[U-Boot] [PATCH v3 21/25] rockchip: Add I2C driver

2015-06-23 Thread Simon Glass
Add an I2C driver for the Rockchip RK3288, using driver model. It should work for other Rockchip SoCs also. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/i2c.h | 70 ++ drivers/i2c/Kconfig | 9 + drivers/i2

[U-Boot] [PATCH v3 16/25] rockchip: rk3288: Add a simple syscon driver

2015-06-23 Thread Simon Glass
Add a driver that provides access to system controllers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/mach-rockchip/rk3288/Makefile| 1 + arch/arm/mach-rockchip/rk3288/syscon_rk3288.c | 25 + 2 files changed, 26 insertions(+)

[U-Boot] [PATCH v3 17/25] rockchip: rk3288: Add pinctrl driver

2015-06-23 Thread Simon Glass
Add a driver which supports pin multiplexing setup for the most commonly used peripherals. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/rockchip/Makef

[U-Boot] [PATCH v3 25/25] rockchip: Add a simple README

2015-06-23 Thread Simon Glass
Add a few notes on how to try out the Rockchip support so far. Signed-off-by: Simon Glass --- Changes in v3: - Update README to mention available drivers - Add various new patches to get RK3288 booting to a prompt Changes in v2: None doc/README.rockchip | 246 +

[U-Boot] [PATCH v3 18/25] rockchip: rk3288: Add SDRAM init

2015-06-23 Thread Simon Glass
Add code to set up the SDRAM in SPL, ready for loading U-Boot. This uses device tree for configuration so should be able to support other RAM configurations. It may be possible to generalise the code to support other SoCs at some point. Signed-off-by: Simon Glass --- Changes in v3: None Changes

[U-Boot] [PATCH v3 22/25] rockchip: Add SPI driver

2015-06-23 Thread Simon Glass
Add a SPI driver for the Rockchip RK3288, using driver model. It should work for other Rockchip SoCs also. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/spi/Kconfig | 10 ++ drivers/spi/Makefile | 1 + drivers/spi/rk_spi.c | 375

[U-Boot] [PATCH v3 10/25] rockchip: Add basic peripheral and clock definitions

2015-06-23 Thread Simon Glass
Add header files for the peripherals and clocks supported on Rockchip platforms. The particular implementation (and register set) for each is SoC-specific, but it seems that the naming can be generic. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/include/asm/a

[U-Boot] [PATCH v3 19/25] rockchip: Add an MMC driver

2015-06-23 Thread Simon Glass
Add an MMC driver which supports RK3288, but may also support other SoCs. It uses the Designware MMC device. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mmc/Kconfig| 9 + drivers/mmc/Makefile | 1 + drivers/mmc/rockchip_mmc.c | 98

[U-Boot] [PATCH v3 11/25] power: Add support for ACT8846 PMIC

2015-06-23 Thread Simon Glass
Add a driver for the ACT8846 PMIC. This supports several LDOs and BUCKs and is connected to the I2C bus. This driver supports using a regulator driver to access the regulators. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/pmic/Kconfig | 9 + drive

[U-Boot] [PATCH v3 15/25] rockchip: rk3288: Add SoC reset driver

2015-06-23 Thread Simon Glass
We can reset the SoC using some CRU (clock/reset unit) registers. Add support for this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/mach-rockchip/rk3288/Makefile | 7 + arch/arm/mach-rockchip/rk3288/reset_rk3288.c | 47

[U-Boot] [PATCH v3 06/25] rockchip: Add the rkimage format to mkimage

2015-06-23 Thread Simon Glass
Rockchip SoCs require certain formats for code that they execute, The simplest format is a 4-byte header at the start of a binary file. Add support for this so that we can create images that the boot ROM understands. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common

[U-Boot] [PATCH v3 14/25] rockchip: rk3288: Add header files for PMU and GRF

2015-06-23 Thread Simon Glass
PMU is the power management unit and GRF is the general register file. Both are heavily used in U-Boot. Add header files with register definitions. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 768 +

[U-Boot] [PATCH v3 07/25] rockchip: Add support for the SD image

2015-06-23 Thread Simon Glass
The Rockchip boot ROM requires a particular file format. It consists of 64KB of zeroes, a 512-byte header encoded with RC4, and then some executable code. Add support to mkimage so that an SPL image (u-boot-spl-dtb.bin) can be converted to this format. Signed-off-by: Simon Glass --- Changes in

[U-Boot] [PATCH v3 09/25] rockchip: gpio: Add rockchip GPIO driver

2015-06-23 Thread Simon Glass
This supports RK3288 at present. It does not implement functions or support for pull up/down. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/gpio.h | 28 +++ drivers/gpio/Kconfig | 9 +++ drivers/gpio/Makefi

[U-Boot] [PATCH v3 13/25] rockchip: rk3288: Add clock driver

2015-06-23 Thread Simon Glass
Add a driver for setting up and modifying the various PLLs and peripheral clocks on the RK3288. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/cru_rk3288.h | 185 +++ drivers/clk/Makefile| 1 + drivers

[U-Boot] [PATCH v3 12/25] power: regulator: Add a driver for ACT8846 regulators

2015-06-23 Thread Simon Glass
Add a full regulator driver for the ACT8846. This provides easy access to voltage and current settings for each regulator. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/regulator/Kconfig | 9 +++ drivers/power/regulator/Makefile | 1 + drivers/powe

[U-Boot] [PATCH v3 02/25] rockchip: Bring in RK3288 device tree file includes and bindings

2015-06-23 Thread Simon Glass
Bring in required device tree files from Linux. Since mainline Linux is somewhat behind, use the files from the Chromium tree. We can re-sync once further code is acccepted upstream. Signed-off-by: Simon Glass --- Changes in v3: - Add device tree bindings for CRU and DMC Changes in v2: - Tidy u

[U-Boot] [PATCH v3 01/25] rockchip: Add serial support

2015-06-23 Thread Simon Glass
Add support for the Rockchip serial device using the ns16550 driver. This uses driver model and device tree for both SPL and U-Boot proper. Signed-off-by: Simon Glass --- Changes in v3: - Update clock rate to always be 24MHz Changes in v2: None drivers/serial/Kconfig | 9 +

[U-Boot] [PATCH v3 08/25] rockchip: Add support for the SPI image

2015-06-23 Thread Simon Glass
The Rockchip boot ROM requires a particular file format for booting from SPI. It consists of a 512-byte header encoded with RC4, some padding and then up to 32KB of executable code in 2KB blocks, separated by 2KB empty blocks. Add support to mkimage so that an SPL image (u-boot-spl-dtb.bin) can be

[U-Boot] [PATCH v3 03/25] rockchip: rk3288: dts: Make core devices available early

2015-06-23 Thread Simon Glass
In SPL we need access to the CRU and other peripherals so we can set up SDRAM. Mark these so that they will remain in the device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/rk3288.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --

[U-Boot] [PATCH v3 04/25] mkimage: Allow padding to any length

2015-06-23 Thread Simon Glass
At present there is an arbitrary limit of 4KB for padding. Rockchip needs more than that, so remove this restriction. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None tools/mkimage.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --g

[U-Boot] [PATCH v3 05/25] mkimage: Allow the original file size to be recorded

2015-06-23 Thread Simon Glass
Allow the image handler to store the original input file size so that it can reference it later. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None tools/imagetool.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/imagetool.h b/tools/imagetool.h index 99bbf2f..23c

[U-Boot] [PATCH v3 00/25] dm: Introduce Rockchip RK3288 support

2015-06-23 Thread Simon Glass
The Rockchip RK3288 is based on a quad-core Cortex-A17 CPU and has a good set of peripherals. Various full-featured U-Boot ports are available and this is an attempt to bring those features into mainline. With this series the Firefly RK3288 can boot to a prompt from an SD card. Since much of the

[U-Boot] [PATCH v3 26/54] dm: mmc: Add an MMC uclass

2015-06-23 Thread Simon Glass
Add basic support for MMC, providing a uclass which can set up an MMC device. This allows MMC drivers to move to using driver model. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mmc/Kconfig | 10 ++ drivers/mmc/Makefile | 2 ++ drivers/mmc/mm

[U-Boot] [PATCH v3 43/54] dm: spi: Make local functions static

2015-06-23 Thread Simon Glass
Several functions in this file should be marked as static. Update them. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/spi/spi-uclass.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.

[U-Boot] [PATCH v3 45/54] Add rivest cipher 4 (rc4) implementation

2015-06-23 Thread Simon Glass
Add an implementation of RC4. This will be used by Rockchip booting but may be useful in other situations. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/rc4.h | 21 + lib/Makefile | 1 + lib/rc4.c | 49 +

[U-Boot] [PATCH v3 23/54] dm: Add support for LEDs

2015-06-23 Thread Simon Glass
Add a simple uclass for LEDs, so that these can be controlled by the device tree and activated when needed. LEDs are referred to by their label. This implementation requires a driver for each type of LED (e.g GPIO, I2C). Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None d

[U-Boot] [PATCH v3 24/54] dm: led: Add a driver for GPIO-controlled LEDs

2015-06-23 Thread Simon Glass
Add a simple driver which allows use of LEDs attached to GPIOs. The linux device tree binding is used. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None doc/device-tree-bindings/leds/leds-gpio.txt | 52 ++ drivers/led/Kconfig | 9 +++

[U-Boot] [PATCH v3 17/54] dm: gpio: Allow GPIO uclass to be used in SPL

2015-06-23 Thread Simon Glass
Now that we support driver model in SPL, allow GPIO drivers to be used there also. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/gpio/Makefile | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 5864850..67

[U-Boot] [PATCH v3 35/54] dm: power: Add regulator flags to centralise auto-set logic

2015-06-23 Thread Simon Glass
Decide when the regulator is set up whether we want to auto-set the voltage or current. This avoids the complex logic spilling into the processing code. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/regulator/regulator-uclass.c | 12 include/

[U-Boot] [PATCH v3 32/54] mmc: Calculate dwmmc FIFO threshold size if not provided

2015-06-23 Thread Simon Glass
We can calculate this. Add code to do this if it is not provided. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mmc/dw_mmc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index a034c3f

[U-Boot] [PATCH v3 53/54] dm: Add a clock uclass

2015-06-23 Thread Simon Glass
Clocks are an important feature of platforms and have become increasing complex with time. Most modern SoCs have multiple PLLs and dozens of clock dividers which distribute clocks to on-chip peripherals. Some SoC implementations have a clock API which is private to that SoC family, e.g. Tegra and

[U-Boot] [PATCH v3 31/54] mmc: Support bypass mode with the get_mmc_clk() method

2015-06-23 Thread Simon Glass
Some SoCs want to adjust the input clock to the DWMMC block as a way of controlling the MMC bus clock. Update the get_mmc_clk() method to support this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mmc/dw_mmc.c| 2 +- drivers/mmc/exynos_dw_mmc.c | 2 +

[U-Boot] [PATCH v3 51/54] dm: Add a system reset uclass

2015-06-23 Thread Simon Glass
It is common for system reset to be available at multiple levels in modern hardware. For example, an SoC may provide a reset option, and a board may provide its own reset for reasons of security or thoroughness. It is useful to be able to model this hardware without hard-coding the behaviour in the

[U-Boot] [PATCH v3 48/54] dm: spl: Allow device tree/driver model in board_init_f()

2015-06-23 Thread Simon Glass
Add an spl_init() function that does basic init such that board_init_f() can use simple malloc(), device tree and driver model. Each one is set up only if enabled for SPL. Note: We really should refactor SPL such that there is a single board_init_f() and rename the existing weak board_init_f() fun

[U-Boot] [PATCH v3 38/54] dm: power: Use debug() for errors in regulator uclass

2015-06-23 Thread Simon Glass
To reduce unnecessary code size in an uncommon code path, use debug() where possible(). The driver returns an error which indicates failure. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/regulator/regulator-uclass.c | 2 +- 1 file changed, 1 insertion(+),

[U-Boot] [PATCH v3 28/54] mmc: Add debug() output on read errors

2015-06-23 Thread Simon Glass
Allow read errors to be diagnosed more easily. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mmc/mmc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4eab274..da47037 100644 --- a/drivers/

[U-Boot] [PATCH v3 39/54] dm: pmic: Add functions to adjust PMIC registers

2015-06-23 Thread Simon Glass
It is a common requirement to update some PMIC registers. Provide some simple convenience functions to do this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/pmic/pmic-uclass.c | 32 include/power/pmic.h | 34 +

[U-Boot] [PATCH v3 20/54] dm: Add support for register maps (regmap)

2015-06-23 Thread Simon Glass
Add a simple implementaton of register maps, supporting only direct I/O for now. This can be enhanced later to support buses which have registers, such as I2C, SPI and PCI. It allows drivers which can operate with multiple buses to avoid dealing with the particulars of register access on that bus.

[U-Boot] [PATCH v3 30/54] mmc: Add structure comments for dwmmc

2015-06-23 Thread Simon Glass
It took a little while to figure this out, so this patch adds documentation to help the next person who needs to do this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/dwmmc.h | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 40/54] dm: power: Allow use of regulators in SPL

2015-06-23 Thread Simon Glass
This functionality may be useful for setting up regulators early during boot. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None scripts/Makefile.spl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 24ca58b..1e58be9 10064

[U-Boot] [PATCH v3 49/54] spl: Add a debug string before the jump to U-Boot

2015-06-23 Thread Simon Glass
As a debug option, add positive confirmation that SPL has completed execution. This can help with diagnosing the location of unexpected hangs. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/spl/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/

[U-Boot] [PATCH v3 47/54] fdt: Provide debug info when a device tree cannot be found

2015-06-23 Thread Simon Glass
It can be quite confusing with a new platform to figure out why the device tree cannot be located. Add some debug information for this case. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None lib/fdtdec.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib/fdtdec

[U-Boot] [PATCH v3 34/54] dm: power: Avoid case-insensitve match for child names

2015-06-23 Thread Simon Glass
This is not user input (i.e. from the command line). It should be possible to get the case correct and avoid the case-insensitive match. This will help avoid sloppy device tree setups. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/pmic/pmic-uclass.c | 2 +

[U-Boot] [PATCH v3 52/54] zynq: Rename struct clk_ops to zynq_clk_ops

2015-06-23 Thread Simon Glass
Since we want clk_ops to be used in U-Boot as a whole, rename the Zynq version until it can be converted to driver model. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/mach-zynq/clk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ar

[U-Boot] [PATCH v3 44/54] ns16550: Improve debug UART so it can work with 32-bit access

2015-06-23 Thread Simon Glass
Since Rockchip requires 32-bit serial access, add this to the driver. Refactor a little to make this easier. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/serial/ns16550.c | 36 +--- 1 file changed, 21 insertions(+), 15 deletions

  1   2   >