Re: [U-Boot] [PATCH 02/23] dm: video: Flush the cache after a puts()

2016-01-18 Thread Simon Glass
Hi Tom, On 18 January 2016 at 15:29, Tom Warren wrote: > Simon, > >> -Original Message- >> From: Simon Glass [mailto:s...@google.com] On Behalf Of Simon Glass >> Sent: Thursday, January 14, 2016 11:28 AM >> To: U-Boot Mailing List >> Cc: Tom Warren ; Stephen Warren >> ; Stephen Warren ;

Re: [U-Boot] [PATCH 1/4] tegra: dts: Sync seaboard device tree file with Linux

2016-01-18 Thread Simon Glass
Hi Stephen, On 18 January 2016 at 12:32, Stephen Warren wrote: > On 01/14/2016 01:26 PM, Simon Glass wrote: >> >> Sync everything except the display panel, which will come in a future >> patch. >> One USB port is left disabled since we don't want to support it in U-Boot. > > > It would be useful

Re: [U-Boot] [PATCH 01/50] dm: clk: Add support for decoding clocks from the device tree

2016-01-18 Thread Masahiro Yamada
Hi Simon, 2016-01-15 22:21 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 14 January 2016 at 03:11, Masahiro Yamada > wrote: >> Hi Simon, >> >> >> >>> @@ -12,6 +12,8 @@ >>> #include >>> #include >>> >>> +DECLARE_GLOBAL_DATA_PTR; >>> + >>> ulong clk_get_rate(struct udevice *dev) >>> { >>>

Re: [U-Boot] [PATCH v2 16/26] dm: tegra: net: Convert tegra boards to driver model for Ethernet

2016-01-18 Thread Simon Glass
Hi Stephen, On Jan 18, 2016 10:26, "Stephen Warren" wrote: > > On 01/17/2016 08:58 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 15 January 2016 at 16:53, Stephen Warren wrote: >>> >>> On 12/13/2015 08:46 PM, Simon Glass wrote: Applied to u-boot-dm/next. >>> >>> >>> >>> This c

Re: [U-Boot] [PATCH 0/4] tegra: Move tegra20 towards the 'new' display bindings

2016-01-18 Thread Simon Glass
Hi Stephen, On 18 January 2016 at 12:57, Stephen Warren wrote: > On 01/14/2016 01:26 PM, Simon Glass wrote: >> >> The original tegra20 display driver was written before Linux had device >> tree >> bindings for display. Since then Linux has developed a robust set of >> bindings >> covering various

Re: [U-Boot] [PATCH 0/4] tegra: Move tegra20 towards the 'new' display bindings

2016-01-18 Thread Simon Glass
Hi Stephen, On 18 January 2016 at 12:52, Stephen Warren wrote: > On 01/14/2016 04:12 PM, Simon Glass wrote: >> >> Hi Lucas, >> >> On 14 January 2016 at 13:34, Lucas Stach wrote: >>> >>> Am Donnerstag, den 14.01.2016, 13:26 -0700 schrieb Simon Glass: The original tegra20 display driver

Re: [U-Boot] [PATCH 6/9] ARM: ARMv7: PSCI: ls102xa: Verify CPU ID for CPU_ON

2016-01-18 Thread Scott Wood
On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > From: Wang Dongsheng > > Add validation code to make sure target cpu ID is valid. > > Signed-off-by: Wang Dongsheng > --- > arch/arm/cpu/armv7/ls102xa/psci.S | 27 --- > 1 file changed, 24 insertions(+), 3 delet

Re: [U-Boot] dm: pci: Avoid a memory leak when allocating the ROM

2016-01-18 Thread Tom Rini
On Mon, Jan 18, 2016 at 09:51:42PM +, Tom Warren wrote: > This patch causes a warning for every Tegra board: > > drivers/pci/pci_rom.c: In function 'dm_pci_run_vga_bios': > drivers/pci/pci_rom.c:353:7: warning: 'ram' may be used uninitialized in this > function [-Wuninitialized] >free(ra

Re: [U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-01-18 Thread Scott Wood
On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > From: Wang Dongsheng > > Based on PSCI v1.0, implement interface for ls102xa SoC: > psci_version, > psci_features, > psci_cpu_suspend, > psci_affinity_info, > psci_system_reset, > psci_system_off. > > Tested on LS1021aQDS, LS1021aTWR. >

Re: [U-Boot] [PATCH 7/9] ARM: ARMv7: PSCI: Add PSCI 1.0 version support

2016-01-18 Thread Scott Wood
On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > + > +#ifdef CONFIG_ARMV7_PSCI_GTE_1_0 > + tmp = fdt_psci_gte_1_0_fixup(fdt, nodeoff); > if (tmp) > return tmp; > - tmp = fdt_setprop_u32(fdt, nodeoff, "migrate", PSCI_FN_MIGRATE); > +#endif > + tmp = fdt_psci

Re: [U-Boot] [PATCH 02/23] dm: video: Flush the cache after a puts()

2016-01-18 Thread Tom Warren
Simon, > -Original Message- > From: Simon Glass [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Thursday, January 14, 2016 11:28 AM > To: U-Boot Mailing List > Cc: Tom Warren ; Stephen Warren > ; Stephen Warren ; Simon > Glass ; Marek Vasut ; Anatolij > Gustschin ; Pavel Herrman

Re: [U-Boot] dm: pci: Avoid a memory leak when allocating the ROM

2016-01-18 Thread Tom Warren
This patch causes a warning for every Tegra board: drivers/pci/pci_rom.c: In function 'dm_pci_run_vga_bios': drivers/pci/pci_rom.c:353:7: warning: 'ram' may be used uninitialized in this function [-Wuninitialized] free(ram); ^ I'm running MAKEALL -s tegra (haven't switched over to buildman

Re: [U-Boot] [PATCH 5/5] i2c: omap24xx: Convert fully to DM_I2C

2016-01-18 Thread Christophe Ricard
Hi Heiko, I was expecting such kind of feedback on this one :). I had myself to hack around between the MLO and the u-boot.img to get it working. For omap, i think twl drivers are kind of the main item to convert. Would you accept to take the first 4 patches until the board are fully ready f

Re: [U-Boot] [PATCH 3/4] tegra: video: Always use write-through cache on LCD

2016-01-18 Thread Stephen Warren
On 01/14/2016 01:26 PM, Simon Glass wrote: This seems to give the best performance, so let's use it always. I thought we chose the current cache mode due to display corruption issues with other modes, but I tested a change that I believe does the same as this change on Seaboard without any ap

Re: [U-Boot] [PATCH 0/4] tegra: Move tegra20 towards the 'new' display bindings

2016-01-18 Thread Stephen Warren
On 01/14/2016 01:26 PM, Simon Glass wrote: The original tegra20 display driver was written before Linux had device tree bindings for display. Since then Linux has developed a robust set of bindings covering various aspects of enabling a display. This series moves closer to those bindings by usin

Re: [U-Boot] [PATCH 0/4] tegra: Move tegra20 towards the 'new' display bindings

2016-01-18 Thread Stephen Warren
On 01/14/2016 04:12 PM, Simon Glass wrote: Hi Lucas, On 14 January 2016 at 13:34, Lucas Stach wrote: Am Donnerstag, den 14.01.2016, 13:26 -0700 schrieb Simon Glass: The original tegra20 display driver was written before Linux had device tree bindings for display. Since then Linux has develope

Re: [U-Boot] [PATCH 2/4] video: tegra: Move to using simple-panel and pwm-backlight

2016-01-18 Thread Stephen Warren
On 01/14/2016 01:26 PM, Simon Glass wrote: We have standard drivers for panels and backlights which can do most of the work for us. Move the tegra20 LCD driver over to use those instead of custom code. This patch includes device tree changes for the nvidia boards. I have only been able to test s

Re: [U-Boot] [PATCH 1/4] tegra: dts: Sync seaboard device tree file with Linux

2016-01-18 Thread Stephen Warren
On 01/14/2016 01:26 PM, Simon Glass wrote: Sync everything except the display panel, which will come in a future patch. One USB port is left disabled since we don't want to support it in U-Boot. It would be useful to mention which version of Linux this DT content came from. BTW, this series

Re: [U-Boot] [PATCH] ARM: tegra: rm Jetson TK1 PMIC GPIO programming

2016-01-18 Thread Tom Warren
Stephen, > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Monday, January 18, 2016 11:23 AM > To: u-boot@lists.denx.de; Simon Glass ; Tom Warren > ; Stephen Warren > Cc: Thierry Reding > Subject: [PATCH] ARM: tegra: rm Jetson TK1 PMIC GPIO programming >

[U-Boot] [PATCH] ARM: tegra: rm Jetson TK1 PMIC GPIO programming

2016-01-18 Thread Stephen Warren
From: Stephen Warren The PMIC is configured such that its GPIOs have the correct configuration at power-up, so no programming is required. In fact, the current programming is actively wrong, since: (a) the AS3722 driver configures the GPIO to be an output before setting its output value, which

Re: [U-Boot] [REGRESSION] Ethernet broken on Colibri T20/T30

2016-01-18 Thread Stephen Warren
On 01/16/2016 05:51 PM, Marcel Ziswiler wrote: Hi Simon As mentioned before I noticed Ethernet (on-module USB ASIX chip) to be broken on master while it still worked fine in v2016.01. I kind of remember having once noticed something along those lines when testing some of your early dm stuff but

Re: [U-Boot] [PATCH v2 16/26] dm: tegra: net: Convert tegra boards to driver model for Ethernet

2016-01-18 Thread Stephen Warren
On 01/17/2016 08:58 PM, Simon Glass wrote: Hi Stephen, On 15 January 2016 at 16:53, Stephen Warren wrote: On 12/13/2015 08:46 PM, Simon Glass wrote: Applied to u-boot-dm/next. This change has removed/disabled/... PCIe support on at least Jetson TK1. I haven't checked the other Tegra board

Re: [U-Boot] [PATCH 0/6] usb: dwc2: Add support for SPLIT transactions

2016-01-18 Thread Marek Vasut
On Sunday, January 17, 2016 at 04:09:50 AM, Stefan BrĂ¼ns wrote: > The first patch fixes an out-of-bounds access, and makes the calculation of > maximum transfer size more straightforward. It also makes overriding the > maximum transfer size easier for split transactions > > 2nd and 3rd patch clean

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Michael Trimarchi
Hi On Mon, Jan 18, 2016 at 5:40 PM, Tom Rini wrote: > On Mon, Jan 18, 2016 at 09:23:54AM +0100, Michael Trimarchi wrote: >> Hi >> >> On Sun, Jan 17, 2016 at 3:44 AM, Tom Rini wrote: >> > With gcc-5.3 we get a warning for using switch() on a bool type. >> > Rewrite these sections as if/else and u

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Tom Rini
On Mon, Jan 18, 2016 at 09:23:54AM +0100, Michael Trimarchi wrote: > Hi > > On Sun, Jan 17, 2016 at 3:44 AM, Tom Rini wrote: > > With gcc-5.3 we get a warning for using switch() on a bool type. > > Rewrite these sections as if/else and update the one section that was > > using 1/0 instead of true

[U-Boot] [PATCH] x86: quark: Fix boot breakage

2016-01-18 Thread Bin Meng
With driver model timer conversion, quark based board does not boot any more as mdelay() is called during quark_pcie_early_init() which is before driver model gets initialized. Fix this breakage. Signed-off-by: Bin Meng --- arch/x86/cpu/quark/quark.c | 27 --- 1 file cha

[U-Boot] [PATCH 2/2] x86: x86-common.h: Add generic FS commands

2016-01-18 Thread Stefan Roese
This patch adds the generic FS commands (ls, load) to all x86 boards. Signed-off-by: Stefan Roese Cc: Miao Yan Cc: Bin Meng Cc: Simon Glass --- include/configs/x86-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h index 6e

[U-Boot] [PATCH 1/2] x86: x86-common.h: Add CONFIG_BOOTDELAY

2016-01-18 Thread Stefan Roese
Without this CONFIG_BOOTDELAY, autobooting does not work at all. As autoboot_command() from common/* will not get called. So lets define CONFIG_BOOTDELAY, so that auto-booting works on x86. Signed-off-by: Stefan Roese Cc: Miao Yan Cc: Bin Meng Cc: Simon Glass --- include/configs/x86-common.h

[U-Boot] [PATCH] x86: baytrail: Add documentation for FSP memory-down values

2016-01-18 Thread Stefan Roese
This patch adds the documentation for the memory-down parameters of the Intel FSP. To configure a board without SPD DDR DIMM but with onboard DDR chips. The values are taken from the coreboot header: src/soc/intel/fsp_baytrail/chip.h (git ID da1a70ea from 2016-01-16 as reference). Signed

Re: [U-Boot] [PATCH v2 9/9] arm: ls1021atwr: Enable driver model lpuart serial driver

2016-01-18 Thread Huan Wang
Hi, > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Thursday, January 14, 2016 11:39 AM > To: Simon Glass; Stefan Agner; Bhuvanchandra DV; Albert ARIBAUD (3ADEV); > York Sun; Alison Wang; U-Boot Mailing List > Subject: [PATCH v2 9/9] arm: ls1021atwr: Enable driver

[U-Boot] [PATCH 2/3] x86: BayTrail: Add function to disable the internal legacy UART

2016-01-18 Thread Stefan Roese
Some BayTrail boards may want to use a different legacy UART than the internal one. E.g. one provided by a Winbond Super IO chip, like the W83627. This patch adds a function to disable this BayTrail internal UART for this purpose. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Simon Glass --- ar

[U-Boot] [PATCH 1/3] misc: Add simple driver to enable the legacy UART on Winbond Super IO chips

2016-01-18 Thread Stefan Roese
On most x86 boards, the legacy serial ports (io address 0x3f8/0x2f8) are provided by a superio chip connected to the LPC bus. We must program the superio chip so that serial ports are available for us. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Simon Glass --- drivers/misc/Kconfig |

[U-Boot] [PATCH 3/3] x86: fsp: Disable legacy internal UART if necessary

2016-01-18 Thread Stefan Roese
The FSP enables the BayTrail internal UART (again). Boards that don't use this UART but an external one instead (e.g. provided by a Super IO chip) need to disable this internal UART. So that the one from the Super IO chip can be used. This patch adds the necessary code, to disable the internal lega

Re: [U-Boot] [PATCH 43/50] rockchip: pinctrl: Reduce the size for SPL

2016-01-18 Thread Sjoerd Simons
On Thu, 2016-01-14 at 08:51 -0700, Simon Glass wrote: > Hi Eddie, > > On 14 January 2016 at 05:47, Eddie Cai > wrote: > > Hi Simon > > > > I think the best way to reduce SPL size is to jump back to boot > > rom. > > Which don't require eMMC, SD card driver in SPL any more. Even > > clock > > and

Re: [U-Boot] [PATCH 2/6] dm: implement a SATA uclass

2016-01-18 Thread Bin Meng
+Simon On Mon, Jan 18, 2016 at 4:47 PM, Mugunthan V N wrote: > Implement a SATA uclass that can represent a SATA controller. > > Signed-off-by: Mugunthan V N > --- > drivers/block/Kconfig | 10 +++ > drivers/block/Makefile | 2 ++ > drivers/block/sata-uclass.c | 69 > ++

[U-Boot] [PATCH 3/6] arm: omap-common: sata: prepare driver for DM conversion

2016-01-18 Thread Mugunthan V N
Prepare sata driver for DM conversion by abstracting sata phy init to seperate function. Signed-off-by: Mugunthan V N --- arch/arm/cpu/armv7/omap-common/sata.c | 13 + include/sata.h| 2 ++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/arch/

[U-Boot] [PATCH 5/6] defconfig: dra74_evm: enable sata driver model

2016-01-18 Thread Mugunthan V N
Enable sata driver model for dra74_evm as dwc_ahci supports driver model Signed-off-by: Mugunthan V N --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig index 6e5a705..18bb950 100644 --- a/configs/dra74_

[U-Boot] [PATCH 6/6] defconfig: dra72_evm: enable sata driver model

2016-01-18 Thread Mugunthan V N
Enable sata driver model for dra72_evm as dwc_ahci supports driver model Signed-off-by: Mugunthan V N --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig index b57ecca..b22438e 100644 --- a/configs/dra72_

[U-Boot] [PATCH 4/6] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2016-01-18 Thread Mugunthan V N
Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N --- arch/arm/cpu/armv7/omap-common/sata.c | 2 + drivers/block/Kconfig | 7 drivers/block/Makefile| 1 + drivers/block/dwc_ahci.c |

[U-Boot] [PATCH 0/6] driver model bring-up of sata device on dra72 and dra74 evm

2016-01-18 Thread Mugunthan V N
This patch series enables sata driver to adopt driver model. This has been tested on the following evms (logs [1]) by loading kernel and dtb from sata hard-disk. * dra72 evm * dra74 evm Also pushed a branch for testing [2] [1] - http://pastebin.ubuntu.com/14565924/ [2] - git://git.ti.com/~mugunth

[U-Boot] [PATCH 2/6] dm: implement a SATA uclass

2016-01-18 Thread Mugunthan V N
Implement a SATA uclass that can represent a SATA controller. Signed-off-by: Mugunthan V N --- drivers/block/Kconfig | 10 +++ drivers/block/Makefile | 2 ++ drivers/block/sata-uclass.c | 69 + include/dm/uclass-id.h | 1 + 4 file

[U-Boot] [PATCH 1/6] arm: omap: sata: move enable sata clocks to enable_basic_clocks()

2016-01-18 Thread Mugunthan V N
All the clocks which has to be enabled has to be done in enable_basic_clocks(), so moving enable sata clock to common clocks enable function. Signed-off-by: Mugunthan V N --- arch/arm/cpu/armv7/omap-common/sata.c | 23 --- arch/arm/cpu/armv7/omap5/hw_data.c| 12 ++

Re: [U-Boot] [PATCH v4 8/8] dm: x86: spi: Convert ICH SPI driver to driver model PCI API

2016-01-18 Thread Bin Meng
Hi Simon, On Mon, Jan 18, 2016 at 3:44 PM, Bin Meng wrote: > Hi Simon, > > On Sun, Jan 17, 2016 at 7:44 AM, Simon Glass wrote: >> At present this SPI driver works by searching the PCI buses for its >> peripheral. It also uses the legacy PCI API. >> >> In addition the driver has code to determine

[U-Boot] [PATCH] x86: WIP: Various dts fixes

2016-01-18 Thread Bin Meng
This patch should be squashed into Simon's patch [1], to fix booting issues seen on Crown Bay. [1]: http://patchwork.ozlabs.org/patch/569189/ Signed-off-by: Bin Meng --- arch/x86/dts/bayleybay.dts | 2 +- arch/x86/dts/broadwell_som-6896.dts | 1 + arch/x86/dts/chromebox_panther.dts

Re: [U-Boot] [PATCH 2/2] Remove the cmd_ prefix from command files

2016-01-18 Thread Przemyslaw Marczak
Hello Simon, On 01/18/2016 04:53 AM, Simon Glass wrote: Now that they are in their own directory, we can remove this prefix. This makes it easier to find a file since the prefix does not get in the way. Signed-off-by: Simon Glass --- cmd/Makefile | 258

Re: [U-Boot] [PATCH 1/2] Move all command code into its own directory

2016-01-18 Thread Przemyslaw Marczak
Hello Simon, On 01/18/2016 04:53 AM, Simon Glass wrote: There are a lot of unrelated files in common, including all of the commands. Moving them into their own directory makes them easier to find and is more logical. Some commands include non-command code, such as cmd_scsi.c. This should be sor

Re: [U-Boot] x86: Bay Trail support with W83627DHG

2016-01-18 Thread Stefan Roese
Hi Bin, On 18.01.2016 04:03, Bin Meng wrote: On Mon, Jan 18, 2016 at 1:44 AM, Stefan Roese wrote: Hi Bin, On 17.01.2016 03:35, Stefan Roese wrote: On 16.01.2016 15:08, Bin Meng wrote: On Fri, Jan 15, 2016 at 10:37 PM, Stefan Roese wrote: Hi Simon, Hi Bin! I'm currently busy with porti

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Michael Trimarchi
Hi On Sun, Jan 17, 2016 at 3:44 AM, Tom Rini wrote: > With gcc-5.3 we get a warning for using switch() on a bool type. > Rewrite these sections as if/else and update the one section that was > using 1/0 instead of true/false. > > Cc: Simon Glass > Cc: Przemyslaw Marczak > Signed-off-by: Tom Rin

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Przemyslaw Marczak
Hello Tom, On 01/17/2016 03:44 AM, Tom Rini wrote: With gcc-5.3 we get a warning for using switch() on a bool type. Rewrite these sections as if/else and update the one section that was using 1/0 instead of true/false. Cc: Simon Glass Cc: Przemyslaw Marczak Signed-off-by: Tom Rini --- driv

<    1   2