[U-Boot] [PATCH v1] ARM: at91: add default config file for sama5d36ek CMP board

2016-10-31 Thread Wenyou Yang
The sama5d36ek CMP board is the variant of sama5d3xek board. It is equipped with the low-power DDR2 SDRAM, PMIC ACT8865, and some power rail. Its main purpose is used to measure the power consumption. As those changes are done in at91bootstrap, in U-Boot, use another device tree file, no code to

[U-Boot] [PATCH v6 1/2] armv8/fsl-layerscape: fdt: fixup LS1043A rev1 GIC node

2016-10-31 Thread Wenbin song
The LS1043A rev1.1 silicon supports two types of GIC offset: 4K alignment and 64K alignment. The bit SCFG_GIC400_ALIGN[GIC_ADDR_BIT] is used to choose which offset will be used. If GIC_ADDR_BIT bit is set, 4K alignment is used, or else 64K alignment is used. The rev1.0 silicon only supports the

[U-Boot] Device tree & PCI/ECAM questions

2016-10-31 Thread Aaron Williams
Hi all, I am working on several drivers for our Octeon-TX/Thunder chips which talk to devices connected to the ECAM bus through another sub-bus and am having issues regarding the device tree. We have a "PCI" driver to handle the ECAM and I created a simple-bus stub for our MRML bus which

[U-Boot] [PATCH v6 2/2] armv8/fsl-layerscape: fdt: fixup LS1043A rev1 MSI node

2016-10-31 Thread Wenbin song
There are two types of msi node in kernel device tree, one is for LS1043A rev1.1 silicon, the other is for rev1.0. According to revision number, fixup the msi node. Signed-off-by: Wenbin Song Signed-off-by: Mingkai Hu --- Change in v6: None

Re: [U-Boot] OMAP3630 Falcon Mode Questions

2016-10-31 Thread Adam Ford
On Mon, Oct 31, 2016 at 6:57 AM, Tom Rini wrote: > On Sat, Oct 29, 2016 at 12:53:27PM -0500, Adam Ford wrote: >> I am trying to utilize Falcon mode on an OMAP3630 (DM3730), but it >> just hangs, and I was hoping someone might find something obvious that >> I missed. I am able

[U-Boot] [PATCH] net: mvgbe: Fix build error with CONFIG_PHYLIB

2016-10-31 Thread Chris Packham
Commit 5a49f17481bb ("net: mii: Use spatch to update miiphy_register") updated the mvgbe implementation of smi_reg_read/smi_reg_write. Prior to that change mvgbe_phy_read and mvgbe_phy_write where used as wrappers to satisfy the phylib APIs. Because these functions weren't updated in that commit

[U-Boot] [ANN] U-Boot v2016.11-rc3 released

2016-10-31 Thread Tom Rini
Hey all, It's release day and v2016.11-rc3 is out. I've just about cleaned out my queue of stuff I want to take for this release. What's outstanding is perhaps another Kconfig migration or two, and whatever critical fixes people point out. While there's a few important things that've come in

Re: [U-Boot] [PATCH 01/20] rockchip: video: Correct HDMI data source selection

2016-10-31 Thread Andrew F. Davis
On 10/31/2016 03:39 PM, Simon Glass wrote: > This code currently always selects the second source. It only worked > because both sources are set up. > > With the change to only init video devices that are present in the stdout > environment variable, this fails. Fix it. > > Signed-off-by: Simon

Re: [U-Boot] [PATCH v5 1/2] armv8/fsl-layerscape: fdt: fixup LS1043A rev1 GIC node

2016-10-31 Thread york sun
On 10/30/2016 07:10 PM, Wenbin Song wrote: > Hi york: > > > Best Regards > Wenbin Song > >> -Original Message- >> From: york sun >> Sent: Friday, October 28, 2016 11:40 PM >> To: Wenbin Song ; albert.u.b...@aribaud.net; >> Mingkai Hu ;

[U-Boot] [PATCH 20/20] rockchip: Add support for veyron-mickey (Chromebit)

2016-10-31 Thread Simon Glass
This adds support for the Asus Chromebit, and RK3288-based device designed to plug directly into an HDMI monitor. The device tree file comes from Linux v4.8. Signed-off-by: Simon Glass --- arch/arm/dts/Makefile | 1 +

[U-Boot] [PATCH 04/20] dm: core: Handle global_data moving in SPL

2016-10-31 Thread Simon Glass
When CONFIG_SPL_STACK_R is enabled, and spl_init() is called before board_init_r(), spl_relocate_stack_gd() will move global_data to a new place in memory. This affects driver model since it uses a list for the uclasses. Unless this is updated the list will become invalid. When looking for a

[U-Boot] [PATCH 19/20] rockchip: veyron: Adjust ARM clock after relocation

2016-10-31 Thread Simon Glass
Update board_init() to increase the ARM clock to the maximum speed on veyron boards. This makes quite a large difference in performance. With this change, speed goes from about 750 DMIPS to 2720 DMIPs. Signed-off-by: Simon Glass --- arch/arm/mach-rockchip/rk3288-board.c | 44

[U-Boot] [PATCH 03/20] rockchip: Allow jerry to use of-platdata

2016-10-31 Thread Simon Glass
This board always boots from SPI, so update the code to support that with of-platdata. The boot source is not currently available with of-platdata. Signed-off-by: Simon Glass --- arch/arm/mach-rockchip/rk3288-board-spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 02/20] rockchip: video: Correct VOP clock selection

2016-10-31 Thread Simon Glass
This code incorrectly uses the oscillator. It should use the clock selected in the device tree. Signed-off-by: Simon Glass Fixes: 135aa95 (clk: convert API to match reset/mailbox style) --- drivers/video/rockchip/rk_vop.c | 7 +-- 1 file changed, 1 insertion(+), 6

[U-Boot] [PATCH 16/20] rockchip: Rename jerry files to veyron

2016-10-31 Thread Simon Glass
At present we have a single rk3288-based Chromebook: chromebook_jerry. But all such Chromebooks can use the same binary with only device-tree differences. The family name is 'veyron', so rename the files accordingly. Also update the device-tree filename since this currently differs from Linux.

[U-Boot] [PATCH 18/20] rockchip: clk: Support setting ACLK

2016-10-31 Thread Simon Glass
Add basic support for setting the ARM clock, since this allows us to run at maximum speed in U-Boot. Currently only a single speed is supported (1.8GHz). Signed-off-by: Simon Glass --- drivers/clk/rockchip/clk_rk3288.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[U-Boot] [PATCH 17/20] rockchip: Move jerry SDRAM settings into its own .dts file

2016-10-31 Thread Simon Glass
The SDRAM settings are not common across all veyron models. Move the current settings into Jerry's file. Signed-off-by: Simon Glass --- arch/arm/dts/rk3288-veyron-jerry.dts | 11 +++ arch/arm/dts/rk3288-veyron.dtsi | 8 2 files changed, 11

[U-Boot] [PATCH 15/20] rockchip: Move jerry to use of-platdata

2016-10-31 Thread Simon Glass
Adjust jerry to use of-platdata like other rk3288 boards. This reduces the SPL size enough that it boots again. Signed-off-by: Simon Glass --- configs/chromebook_jerry_defconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH 14/20] rockchip: video: Check for device in use

2016-10-31 Thread Simon Glass
Check whether a display device is in use before using it. Add a comment as to why two displays cannot currently be used at the same time. This allows us to remove the device-tree change that disables vopb on jerry. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 13/20] video: Track whether a display is in use

2016-10-31 Thread Simon Glass
Mark a display as in use when display_enable() is called. This can avoid a display being used by multiple video-output devices. Signed-off-by: Simon Glass --- drivers/video/display-uclass.c | 18 +- include/display.h | 10 ++ 2 files

[U-Boot] [PATCH 11/20] spi: Add a debug() on bind failure

2016-10-31 Thread Simon Glass
This is an uncommon error but we may as well have a debug() message when it happens. Signed-off-by: Simon Glass --- drivers/spi/spi-uclass.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index

[U-Boot] [PATCH 10/20] spi: Add error checking for invalid bus widths

2016-10-31 Thread Simon Glass
At present an invalid bus width prints a message but does not return an error. This is the opposite of the correct behaviour. Adjust it to avoid code bloat in the common case, and avoid hard-to-debug failure in the uncommon case. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 12/20] video: Use cache-alignment in video_sync()

2016-10-31 Thread Simon Glass
Sometimes the frame buffer is not a multiple of the cache line size. Adjust the cache-flushing code to avoid cache warnings/errors in this case. Signed-off-by: Simon Glass --- drivers/video/video-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 09/20] rockchip: spi: Honour the deactivation delay

2016-10-31 Thread Simon Glass
This is not currently implemented. Add support for this so that the Chrome OS EC can be used on jerry. Signed-off-by: Simon Glass --- drivers/spi/rk_spi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index

[U-Boot] [PATCH 08/20] rockchip: spi: Add support for of-platdata

2016-10-31 Thread Simon Glass
Allow this driver to be used with of-platdata on rk3288. Signed-off-by: Simon Glass --- drivers/spi/rk_spi.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index

[U-Boot] [PATCH 07/20] spi: Add of-platdata support to SPI and SPI flash

2016-10-31 Thread Simon Glass
Some boards may want to use these subsystems with of-platdata in SPL. Add support for this by avoiding any device tree access in this case. Signed-off-by: Simon Glass --- drivers/mtd/spi/spi_flash.c | 2 +- drivers/spi/spi-uclass.c| 13 - 2 files changed, 13

[U-Boot] [PATCH 05/20] stdio: Correct code style nits

2016-10-31 Thread Simon Glass
Fix a few code style nits in stdio_get_by_name(). Signed-off-by: Simon Glass --- common/stdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/stdio.c b/common/stdio.c index 8e4a9be..a7d016b 100644 --- a/common/stdio.c +++ b/common/stdio.c @@

[U-Boot] [PATCH 06/20] stdio: Correct numbering logic in stdio_probe_device()

2016-10-31 Thread Simon Glass
The current code assumes that the devices are ordered corresponding to their alias value. But (for example) video1 can come before video0 in the device tree. Correct this, by always looking for device 0 first. After that we can fall back to finding the first available device. Signed-off-by:

[U-Boot] [PATCH 01/20] rockchip: video: Correct HDMI data source selection

2016-10-31 Thread Simon Glass
This code currently always selects the second source. It only worked because both sources are set up. With the change to only init video devices that are present in the stdout environment variable, this fails. Fix it. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH] sunxi: Use the available Kconfig option for AHCI

2016-10-31 Thread Jelle van der Waa
Use the already available Kconfig option for AHCI. Tested on the BananaPi. Signed-off-by: Jelle van der Waa --- configs/A10-OLinuXino-Lime_defconfig | 3 ++- configs/A20-OLinuXino-Lime2_defconfig | 3 ++- configs/A20-OLinuXino-Lime_defconfig | 3 ++-

Re: [U-Boot] [PATCH v1] arm: Add support for PDU001

2016-10-31 Thread Simon Glass
Hi Felix, On 31 October 2016 at 08:54, Felix Brack wrote: > > Hello Simon, > > On 26.10.2016 18:30, Simon Glass wrote: > > Hi Felix, > > > > On 19 October 2016 at 04:12, Felix Brack wrote: > >> This patch adds support for the PDU001 board. > >> > >> Signed-off-by:

[U-Boot] [PATCH v2 2/3] arm: am57xx: Enable 8-bit eMMC access

2016-10-31 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- Changes in v2: None include/configs/am57xx_evm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index bcbe3cd..d009900 100644 --- a/include/configs/am57xx_evm.h +++

[U-Boot] [PATCH v2 3/3] arm: dra7xx: Unify Android partition table

2016-10-31 Thread Sam Protsenko
Make Android partition table the same as for AM57x EVM. 1. Make "bootloader" partition start from 0x300 sectors offset, so DRA7 is bootable in Android mode (see CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR option). 2. Increase "bootloader" partition size, because size of u-boot.img is

[U-Boot] [PATCH v2 1/3] arm: am57xx: Define Android partition table

2016-10-31 Thread Sam Protsenko
"fastboot oem format" command reuses "gpt write" command, which in turn requires correct partitions defined in $partitions variable. This patch adds such definition of Android partitions for DRA7XX EVM board. By default $partitions variable contains Linux partition table. In order to prepare

[U-Boot] Please pull u-boot-rockchip

2016-10-31 Thread Simon Glass
Hi Tom, This includes various minor tweaks for rockchip. The following changes since commit 48d2fc47c9feac54fdc0e2e0462f13b1a8689ece: Merge branch 'sun9i-a80-spl' of http://git.denx.de/u-boot-sunxi (2016-10-30 08:12:00 -0400) are available in the git repository at:

[U-Boot] [PATCH v2 2/2] spl: Remove CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS

2016-10-31 Thread Sam Protsenko
This option isn't used for anything, so get rid of it. Signed-off-by: Sam Protsenko --- Changes in v2: None README | 4 include/configs/am3517_crane.h | 1 - include/configs/am3517_evm.h | 1 -

[U-Boot] [PATCH v2 0/2] spl: Convert MMC raw mode sector options to Kconfig

2016-10-31 Thread Sam Protsenko
This series accomplishes next: 1. Convert CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR option to Kconfig 2. Remove CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR from boards that don't build SPL 3. Add CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR bool option, which can be tested with #ifdef

Re: [U-Boot] [PATCH] tools: Makefile: improve cross_tools target usability

2016-10-31 Thread Marek Vasut
On 10/31/2016 02:15 PM, Stefan Müller-Klieser wrote: > When building the cross_tools target, HOSTCFLAGS and HOSTLDFLAGS will > propagate to the target build. This should not happen and is easy to > prevent. > > Signed-off-by: Stefan Müller-Klieser +CC Masahiro

[U-Boot] [PATCH v4 2/2] image: Protect against overflow in unknown_msg()

2016-10-31 Thread Simon Glass
Coverity complains that this can overflow. If we later increase the size of one of the strings in the table, it could happen. Adjust the code to protect against this. Signed-off-by: Simon Glass Reported-by: Coverity (CID: 150964) --- Changes in v4: - Add missing [] (tested)

[U-Boot] [PATCH v4 2/2] image: Protect against overflow in unknown_msg()

2016-10-31 Thread Simon Glass
Coverity complains that this can overflow. If we later increase the size of one of the strings in the table, it could happen. Adjust the code to protect against this. Signed-off-by: Simon Glass Reported-by: Coverity (CID: 150964) --- Changes in v4: - Add missing [] (tested)

Re: [U-Boot] [PATCH v3 2/2] image: Protect against overflow in unknown_msg()

2016-10-31 Thread Simon Glass
Hi Tom, On 28 October 2016 at 14:04, Tom Rini wrote: > On Fri, Oct 28, 2016 at 12:41:05PM -0700, Simon Glass wrote: >> Hi Tom, >> >> On 28 October 2016 at 11:59, Tom Rini wrote: >> > On Thu, Oct 27, 2016 at 08:18:39PM -0600, Simon Glass wrote: >> >>

[U-Boot] [PATCH v4 1/2] mkimage: Fix missing free() in show_valid_options()

2016-10-31 Thread Simon Glass
The allocated memory should be freed. Fix it. Signed-off-by: Simon Glass Reported-by: Coverity (CID: 150963) Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None tools/mkimage.c | 1 + 1 file changed, 1 insertion(+)

Re: [U-Boot] [PATCH V3 2/2] net: add driver for Synopsys Ethernet QoS device

2016-10-31 Thread Stephen Warren
On 10/21/2016 02:46 PM, Stephen Warren wrote: From: Stephen Warren This driver supports the Synopsys Designware Ethernet QoS (Quality of Service) a/k/a eqos IP block, which is a different design than the HW supported by the existing designware.c driver. The IP supports many

Re: [U-Boot] [PATCH RESEND v2 1/2] ARM: dts: dra7xx: Update spi-max-frequency for qspi slave node

2016-10-31 Thread R, Vignesh
On 10/31/2016 5:24 PM, Tom Rini wrote: > On Mon, Oct 31, 2016 at 09:40:34AM +0530, Vignesh R wrote: > >> Update the spi-max-frequency property of m25p80 flash slave to match >> that of TI QSPI controller node, so that QSPI operations happen at >> maximum supported frequency of 76.8MHz. >> >>

Re: [U-Boot] [PATCH v1] arm: Add support for PDU001

2016-10-31 Thread Felix Brack
Hello Simon, On 26.10.2016 18:30, Simon Glass wrote: > Hi Felix, > > On 19 October 2016 at 04:12, Felix Brack wrote: >> This patch adds support for the PDU001 board. >> >> Signed-off-by: Felix Brack >> --- >> >> arch/arm/Kconfig | 1 + >>

Re: [U-Boot] [PATCH v3] arm: imx: add i.MX53 Beckhoff CX9020 Embedded PC

2016-10-31 Thread linux-kernel-dev
Hi Jagan, >From: Jagan Teki [mailto:ja...@openedev.com] >Sent: Donnerstag, 20. Oktober 2016 12:52 >Subject: Re: [U-Boot] [PATCH v3] arm: imx: add i.MX53 Beckhoff CX9020 >Embedded PC > >On Mon, Oct 17, 2016 at 5:57 PM, wrote: >> From: Patrick Bruenn

Re: [U-Boot] [PATCH v4] efi_loader: console: Correctly report modes

2016-10-31 Thread Alexander Graf
On 28/10/2016 17:35, Emmanuel Vadot wrote: Add support for EFI console modes. Mode 0 is always 80x25 and present by EFI specification. Mode 1 is always 80x50 and not mandatory. Mode 2 and above is freely usable. If the terminal can handle mode 1, we mark it as supported. If the terminal size

Re: [U-Boot] OMAP3630 Falcon Mode Questions

2016-10-31 Thread Tom Rini
On Sat, Oct 29, 2016 at 12:53:27PM -0500, Adam Ford wrote: > I am trying to utilize Falcon mode on an OMAP3630 (DM3730), but it > just hangs, and I was hoping someone might find something obvious that > I missed. I am able to boot from NAND through U-boot, so I know my > kernel and device tree

Re: [U-Boot] [PATCH RESEND v2 1/2] ARM: dts: dra7xx: Update spi-max-frequency for qspi slave node

2016-10-31 Thread Tom Rini
On Mon, Oct 31, 2016 at 09:40:34AM +0530, Vignesh R wrote: > Update the spi-max-frequency property of m25p80 flash slave to match > that of TI QSPI controller node, so that QSPI operations happen at > maximum supported frequency of 76.8MHz. > > Signed-off-by: Vignesh R >

Re: [U-Boot] [PATCH v5 01/21] sf: Adopt flash table INFO macro from Linux

2016-10-31 Thread Jagan Teki
On Mon, Oct 31, 2016 at 3:13 PM, Vignesh R wrote: > > > On Monday 31 October 2016 03:05 PM, Jagan Teki wrote: >> On Mon, Oct 31, 2016 at 3:02 PM, Vignesh R wrote: >>> >>> >>> On Monday 31 October 2016 02:50 PM, Jagan Teki wrote: On Mon, Oct 31, 2016 at 2:24

Re: [U-Boot] [PATCH v5 01/21] sf: Adopt flash table INFO macro from Linux

2016-10-31 Thread Vignesh R
On Monday 31 October 2016 03:05 PM, Jagan Teki wrote: > On Mon, Oct 31, 2016 at 3:02 PM, Vignesh R wrote: >> >> >> On Monday 31 October 2016 02:50 PM, Jagan Teki wrote: >>> On Mon, Oct 31, 2016 at 2:24 PM, Jagan Teki wrote: On Mon, Oct 31, 2016 at 8:48

Re: [U-Boot] [PATCH v5 01/21] sf: Adopt flash table INFO macro from Linux

2016-10-31 Thread Jagan Teki
On Mon, Oct 31, 2016 at 3:02 PM, Vignesh R wrote: > > > On Monday 31 October 2016 02:50 PM, Jagan Teki wrote: >> On Mon, Oct 31, 2016 at 2:24 PM, Jagan Teki wrote: >>> On Mon, Oct 31, 2016 at 8:48 AM, Vignesh R wrote: On

Re: [U-Boot] [PATCH v5 01/21] sf: Adopt flash table INFO macro from Linux

2016-10-31 Thread Vignesh R
On Monday 31 October 2016 02:50 PM, Jagan Teki wrote: > On Mon, Oct 31, 2016 at 2:24 PM, Jagan Teki wrote: >> On Mon, Oct 31, 2016 at 8:48 AM, Vignesh R wrote: >>> >>> >>> On Sunday 30 October 2016 11:16 PM, Jagan Teki wrote: >>> [...] +

Re: [U-Boot] [PATCH RESEND v2 2/2] spi: ti_qspi: Fix baudrate divider calculation

2016-10-31 Thread Jagan Teki
On Mon, Oct 31, 2016 at 9:40 AM, Vignesh R wrote: > Fix the divider calculation logic to choose a value so that the > resulting baudrate is either equal to or closest possible baudrate less > than the requested value. While at that, cleanup ti_spi_set_speed(). > > Signed-off-by:

Re: [U-Boot] [PATCH v5 01/21] sf: Adopt flash table INFO macro from Linux

2016-10-31 Thread Jagan Teki
On Mon, Oct 31, 2016 at 2:24 PM, Jagan Teki wrote: > On Mon, Oct 31, 2016 at 8:48 AM, Vignesh R wrote: >> >> >> On Sunday 30 October 2016 11:16 PM, Jagan Teki wrote: >> [...] >>> + {"S25FL128P_64K", INFO(0x012018, 0x0301, 64 * 1024, 256, RD_FULL >>>

Re: [U-Boot] [PATCH v5 01/21] sf: Adopt flash table INFO macro from Linux

2016-10-31 Thread Jagan Teki
On Mon, Oct 31, 2016 at 8:48 AM, Vignesh R wrote: > > > On Sunday 30 October 2016 11:16 PM, Jagan Teki wrote: > [...] >> + {"S25FL128P_64K", INFO(0x012018, 0x0301, 64 * 1024, 256, RD_FULL | >> WR_QPP) }, >> + {"S25FL032P", INFO(0x010215, 0x4d00, 64 * 1024,