[U-Boot] [RFC PATCH v1 0/2] Make most DDR non-secure in MMU while keep a small block secure

2015-11-11 Thread York Sun
This set is to change MMU tables so DDR is in non-secure mode that non-secure master such as SDHC DMA can access the data. To mix secure and non-secure MMU entries, the MMU tables themselves have to be in secure memory. A small portion memory is reserved at the end of DDR (before debug server and

Re: [U-Boot] [PATCH] arm: novena: Switch novena to config_distro_bootcmd

2015-11-11 Thread Vagrant Cascadian
On 2015-11-10, Marek Vasut wrote: > Switch Novena to distro bootcmd, so it can be used with debian easily. ... > diff --git a/include/configs/novena.h b/include/configs/novena.h > index 718989f..b0f4c02 100644 > --- a/include/configs/novena.h > +++ b/include/configs/novena.h > @@ -199,6 +201,11 @@

[U-Boot] [Patch V4 6/7] armv8/ls1043ardb: add DSPI support

2015-11-11 Thread Gong Qianyu
Use the U-Boot Driver Model. Just enable Freescale DSPI driver and set DSPI related parameters in dts file. Signed-off-by: Gong Qianyu --- V4: - No change. V3: - New Patch. - Tested on LS1043ARDB board. arch/arm/dts/fsl-ls1043a-rdb.dts| 19 +++

Re: [U-Boot] [PATCH v2] Fix board init code to use a valid C runtime environment

2015-11-11 Thread Albert ARIBAUD
On Tue, 10 Nov 2015 19:30:47 +0100, Albert ARIBAUD wrote: > board_init_f_mem() alters the C runtime environment's > stack it ls actually already using. This is not a valid > C runtime environment. > > Split board_init_f_mem into C functions which do not > alter their

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

2015-11-11 Thread Fabio Estevam
On Wed, Nov 11, 2015 at 12:56 AM, Simon Glass wrote: > It crashes reading the environment: > > U-Boot 2015.10-00544-gcad0499 (Nov 10 2015 - 17:06:00 -0700) > > CPU: Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz > DRAM: 2.7 GiB > SF: Detected W25Q64CV with page size 256 Bytes,

[U-Boot] [Patch V4 5/7] armv8/ls1043aqds: dts: add dtb support

2015-11-11 Thread Gong Qianyu
Reuse the dts files from ls1043a linux kernel. Signed-off-by: Gong Qianyu --- V4: - No change. V3: - No change. V2: - New Patch. arch/arm/dts/Makefile| 3 +- arch/arm/dts/fsl-ls1043a-qds.dts | 124 +++

[U-Boot] [Patch V4 1/7] pci/layerscape: add support for LS1043A PCIe LUT register access

2015-11-11 Thread Gong Qianyu
From: Mingkai Hu The endian and base address of PEX LUT register region is different between Chassis 2 and Chassis 3, so move the base address definition to chassis specific header file and add pex_lut_* functions to access LUT register. Signed-off-by: Mingkai Hu

[U-Boot] [Patch V4 0/7] add LS1043AQDS platform support

2015-11-11 Thread Gong Qianyu
Hi all, Here are the main changes for V4 patchset. LS1043ARDB MAINTAINERS has already been updated in U-Boot. So remove that patch in V4 patchset. - Update the code base. - Use #ifndef CONFIG_LS102XA instead of #ifdef CONFIG_FSL_LAYERSCAPE for PCIe patch. - Fix vid support for LS1043AQDS.

[U-Boot] [Patch V4 2/7] armv8/fsl-layerscape: Remove reference to gdata

2015-11-11 Thread Gong Qianyu
The global_data pointer (gd) has been set earlier in crt0_64.S. So there's no need to assign it again. Remove gdata since it is going away in U-Boot. Signed-off-by: Gong Qianyu --- V4: - No change. V3: - New Patch. - Fix dead code.

Re: [U-Boot] QSPI XIP boot on am437x

2015-11-11 Thread Albert ARIBAUD
Hello Albert, On Wed, 11 Nov 2015 08:15:31 +0100, Albert ARIBAUD wrote: > Hello Vignesh, > > On Wed, 11 Nov 2015 11:42:55 +0530, R, Vignesh wrote: > > Hi Albert, > > > > Thanks for the response! > > > > On 11/10/2015 5:44 PM, Albert ARIBAUD wrote:

[U-Boot] [PATCH] buildman: README: add links for toolchains not available on kernel.org

2015-11-11 Thread Thomas Chou
Add links for toolchains not available on kernel.org. The sh4 toolchains from kernel.org dose not work for some boards, so use the sh from Sourcery. Signed-off-by: Thomas Chou --- tools/buildman/README | 18 +- 1 file changed, 17 insertions(+), 1

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

2015-11-11 Thread Fabio Estevam
On Wed, Nov 11, 2015 at 12:56 AM, Simon Glass wrote: > Hi Fabio, > > On 10 November 2015 at 16:51, Fabio Estevam wrote: >> >> Hi Simon, >> >> On Tue, Nov 10, 2015 at 10:09 PM, Simon Glass wrote: >> >> > This patch breaks chromebook_link

[U-Boot] [PATCH v3 05/12] input: i8042: Convert to use the input library

2015-11-11 Thread Simon Glass
At present the i8042 driver has its own logic and keymaps. In an effort to unify the code, move it over to use the input library. This changes most of the keycode-processing logic since it is now in that library. The main responsibilities of the driver are now to handle the LEDs, deal with the

[U-Boot] [PATCH v3 07/12] x86: Add an i8042 device for boards that have it

2015-11-11 Thread Simon Glass
Some boards have an i8042 device. Enable the driver for all x86 boards, and add a device tree node for those which may have this keyboard. Also adjust the configuration so that i8042 is always separate from the VGA, and rename the stdin driver accordingly. With this commit the keyboard will not

[U-Boot] [PATCH v3 10/12] i8042: Handle a duplicate power-on-reset response

2015-11-11 Thread Simon Glass
Sometimes we seem to get 0xaa twice which causes the config read to fail. This causes chromebook_link to fail to set up the keyboard. Add a check for this and read the config again when detected. Signed-off-by: Simon Glass Reviewed-by: Bin Meng ---

[U-Boot] [PATCH v3 02/12] input: Adjust structure of code in process_modifier()

2015-11-11 Thread Simon Glass
Move all the '!release' code into one block so that it is clear that it only applies on key release. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/input/input.c | 27 ++- 1 file changed, 14 insertions(+), 13

[U-Boot] [PATCH] fastboot: mmc: Fix use of 64 bit division

2015-11-11 Thread Hans de Goede
Directly doing a 64 bit division (when CONFIG_SYS_64BIT_LBA is set) causes linking to fail when building u-boot for ARMv7 with a hard-float tool-chain. This commit fixes this by properly using div_u64 for the division. Note that an alternative fix would be to stop using lbaint_t for blkcnt /

Re: [U-Boot] [PATCH V4 1/3] arm: discard relocation entries for secure text

2015-11-11 Thread Stefano Babic
On 11/11/2015 02:14, Peng Fan wrote: > Hi Stefano, > > On Tue, Nov 10, 2015 at 02:14:10PM +0100, Albert ARIBAUD wrote: >> Hello Peng, >> >> On Fri, 23 Oct 2015 10:13:03 +0800, Peng Fan >> wrote: >>> The code such as PSCI in section named secure is bundled with >>> u-boot

[U-Boot] [PATCH v3 03/12] input: Handle caps lock

2015-11-11 Thread Simon Glass
When caps lock is enabled we should convert lower case to upper case. Add this to the input key processing so that caps lock works correctly. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/input/input.c | 13 - 1 file changed, 8

[U-Boot] [PATCH v3 04/12] input: Allow updating of keyboard LEDs

2015-11-11 Thread Simon Glass
Add a function which returns a new keyboard LED value when the LEDs need updating. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/input/input.c | 9 + include/input.h | 14 +- 2 files changed, 22 insertions(+), 1

[U-Boot] [PATCH v3 00/12] dm: input: Move keyboard drivers to driver model

2015-11-11 Thread Simon Glass
This series adds a new uclass for keyboards and converts some drivers over to use it. This series includes some work to remove code duplication in the keyboard drivers by updating them to use the input library (input.c). This unifies the keycode decoding logic in one place. In order to do this

[U-Boot] [PATCH v3 01/12] input: Support the German keymap

2015-11-11 Thread Simon Glass
Add support for the German keymap, taken from i8042.c. This can be selected when the input library it initialised. Signed-off-by: Simon Glass --- Changes in v3: - Refactor the German keyboard code to use data rather than code Changes in v2: - Update input_add_tables() to add

[U-Boot] [PATCH v3 06/12] input: Add a Kconfig option for the i8042 keyboard

2015-11-11 Thread Simon Glass
Add a new option CONFIG_I8042_KEYB which will replace the current CONFIG_I8042_KBD. This new name fits better with existing drivers. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None drivers/input/Kconfig | 10

[U-Boot] [PATCH v3 09/12] input: Convert i8042 to driver model

2015-11-11 Thread Simon Glass
Adjust this driver to support driver model. The only users are x86 boards so this should be safe. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/input/Makefile | 2 +- drivers/input/i8042.c | 109

[U-Boot] [PATCH v3 12/12] input: Convert 'keyboard' driver to use input library

2015-11-11 Thread Simon Glass
This has duplicated scan code tables and logic. We can use the input library to implement most of the features here. This needs testing. The only supported board appears to be TQM5200. Unfortunately no maintainer is listed for this board. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v3 11/12] video: input: Clean up after i8042 conversion

2015-11-11 Thread Simon Glass
Now that i8042 uses driver model, adjust other mentions of it and remove old code that is no-longer used. Update the README and unify the keyboard text into one place. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: - Fix missing 'use'

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

2015-11-11 Thread Simon Glass
Hi Hans, On 11 November 2015 at 10:02, Hans de Goede wrote: > > Hi, > > > On 11-11-15 00:30, Simon Glass wrote: >> >> Hi Hans, >> >> On 9 November 2015 at 12:25, Simon Glass wrote: >>> >>> Hi Hans, >>> >>> On 9 November 2015 at 00:22, Hans de Goede

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

2015-11-11 Thread Hans de Goede
Hi, On 11-11-15 00:30, Simon Glass wrote: Hi Hans, On 9 November 2015 at 12:25, Simon Glass wrote: Hi Hans, On 9 November 2015 at 00:22, Hans de Goede wrote: Hi, On 09-11-15 07:48, Simon Glass wrote: Each scan of the USB bus may return different

Re: [U-Boot] [RFC PATCH] lib/tiny-printf.c: Add tiny printf function for space limited environments

2015-11-11 Thread Albert ARIBAUD
Hello Stefan, On Wed, 11 Nov 2015 15:25:09 +0100, Stefan Roese wrote: > This patch adds a small printf() version that supports all basic formats. > Its intented to be used in U-Boot SPL versions on platforms with very > limited internal RAM sizes. It would be very useful to

Re: [U-Boot] [PATCH] fastboot: mmc: Fix use of 64 bit division

2015-11-11 Thread Tom Rini
On Wed, Nov 11, 2015 at 05:36:09PM +0100, Hans de Goede wrote: > Directly doing a 64 bit division (when CONFIG_SYS_64BIT_LBA is set) > causes linking to fail when building u-boot for ARMv7 with a hard-float > tool-chain. > > This commit fixes this by properly using div_u64 for the division. > >

[U-Boot] [PATCH v3 08/12] Drop CONFIG_ISA_KEYBOARD

2015-11-11 Thread Simon Glass
This option is mentioned but does not do anything. Drop it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: - Drop unrelated cros_keyb change Changes in v2: None README | 5 - board/mpl/pip405/README | 4

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

2015-11-11 Thread Masahiro Yamada
2015-11-04 21:56 GMT+09:00 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 >

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

2015-11-11 Thread Jagan Teki
On 11 November 2015 at 15:13, Fabio Estevam wrote: > On Wed, Nov 11, 2015 at 12:56 AM, Simon Glass wrote: > >> It crashes reading the environment: >> >> U-Boot 2015.10-00544-gcad0499 (Nov 10 2015 - 17:06:00 -0700) >> >> CPU: Intel(R) Core(TM) i5-3427U CPU

[U-Boot] pull request: u-boot-uniphier/master

2015-11-11 Thread Masahiro Yamada
Hi Tom, Here is my small pull request for v2016.01-rc1. The following changes since commit cad04990715f7eaecd45196e84cf10e9e3248dae: Merge branch 'master' of git://git.denx.de/u-boot-arm (2015-11-10 13:38:08 -0500) are available in the git repository at:

Re: [U-Boot] pull request: u-boot-uniphier/master

2015-11-11 Thread Tom Rini
On Wed, Nov 11, 2015 at 11:44:50PM +0900, Masahiro Yamada wrote: > Hi Tom, > > Here is my small pull request for v2016.01-rc1. > > > The following changes since commit cad04990715f7eaecd45196e84cf10e9e3248dae: > > Merge branch 'master' of git://git.denx.de/u-boot-arm (2015-11-10 > 13:38:08

[U-Boot] [PATCH] board/ti/am335x: add support for BeagleBone Green

2015-11-11 Thread Robert Nelson
SeeedStudio BeagleBone Green (BBG) is clone of the BeagleBone Black (BBB) minus the HDMI port and addition of two Grove connectors (i2c2 and usart2). This board can be identified by the 1A value after A335BNLT (BBB) in the at24 eeprom: 1A: [aa 55 33 ee 41 33 33 35 42 4e 4c 54 1a 00 00 00

[U-Boot] [RFC PATCH] lib/tiny-printf.c: Add tiny printf function for space limited environments

2015-11-11 Thread Stefan Roese
This patch adds a small printf() version that supports all basic formats. Its intented to be used in U-Boot SPL versions on platforms with very limited internal RAM sizes. To enable it, just define CONFIG_USE_TINY_PRINTF in your defconfig. This will result in the SPL using this tiny function and

[U-Boot] [PATCH 2/2] sf_probe: Add lock ops for SST SPI NOR flash

2015-11-11 Thread Fabio Estevam
From: Fabio Estevam SST SPI NOR flash has the same locking programming bits as ST Micro. Add support for it. Signed-off-by: Fabio Estevam --- drivers/mtd/spi/sf_internal.h | 1 + drivers/mtd/spi/sf_probe.c| 3 ++- 2 files changed,

[U-Boot] [PATCH 1/2] spi_flash: Add error message when lock operations are not supported

2015-11-11 Thread Fabio Estevam
From: Fabio Estevam In the case of lock operations not being supported, we should better let the user know instead of failing silently. Signed-off-by: Fabio Estevam --- include/spi_flash.h | 4 +++- 1 file changed, 3 insertions(+), 1

Re: [U-Boot] how to load u-boot environment from nand while spl is loading

2015-11-11 Thread Marek Vasut
On Wednesday, November 11, 2015 at 04:29:34 PM, Francesco Lucconi wrote: Hi, > I'm working with imx28evk reference board with u-boot 2011.12 and for my > specific purposes I have to load u-boot nand environment during spl > binary is loading. I'm working with a static environment but this is not

Re: [U-Boot] [PATCH] buildman: README: add links for toolchains not available on kernel.org

2015-11-11 Thread Marek Vasut
On Wednesday, November 11, 2015 at 02:37:08 PM, Thomas Chou wrote: > Add links for toolchains not available on kernel.org. > > The sh4 toolchains from kernel.org dose not work for some boards, > so use the sh from Sourcery. > > Signed-off-by: Thomas Chou Wouldn't it

Re: [U-Boot] [PATCH v2] vexpress64: use 2nd DRAM bank only on juno

2015-11-11 Thread Ryan Harkin
Hi, This is just a ping in case this patch has been forgotten. It was Acked and Reviewed. Thanks, Ryan. On 27 October 2015 at 12:10, Linus Walleij wrote: > On Mon, Oct 26, 2015 at 12:00 PM, Ryan Harkin wrote: > >> This patch makes the 2nd

Re: [U-Boot] [PATCH 2/3] vexpress64: remove #error

2015-11-11 Thread Ryan Harkin
Hi, This is a ping to revive this patch and the next one in the series: "[PATCH 3/3] vexpress64: store env in flash" Patch 1/3 was resent separately and has been merged. This patch (and the subsequent one in the series) hasn't been Reviewed-by or Acked-by anyone, but in a thread for patch 3/3

[U-Boot] [Patch V4 4/7] armv8/ls1043aqds: add LS1043AQDS board support

2015-11-11 Thread Gong Qianyu
From: Shaohui Xie LS1043AQDS Specification: - Memory subsystem: * 2GByte DDR4 DIMM * 128 Mbyte NOR flash single-chip memory * 512 Mbyte NAND flash * 16 Mbyte high-speed SPI flash * SD connector to interface with the SD memory card

[U-Boot] [Patch V4 7/7] armv8/ls1043ardb: add USB support

2015-11-11 Thread Gong Qianyu
Add support for the third USB controller for LS1043A. Signed-off-by: Gong Qianyu --- V4: - No change. V3: - New Patch. Tested on LS1043ARDB board. arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 6 +++--- board/freescale/ls1043ardb/ls1043ardb.c

[U-Boot] [Patch V4 3/7] armv8/ls1043ardb: dts: add dtb support

2015-11-11 Thread Gong Qianyu
Reuse dts files from ls1043a linux kernel. Some parts in dts files may not be needed by U-Boot. Signed-off-by: Gong Qianyu --- V4: - No change. V3: - Modified the dts file according to ls1043a upstreaming linux kernel. V2: - New Patch. arch/arm/dts/Makefile

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

2015-11-11 Thread Masahiro Yamada
2015-11-05 0:32 GMT+09:00 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,

Re: [U-Boot] [PATCH 1/2] tools: zynqimage: Add Xilinx Zynq boot header generation to mkimage

2015-11-11 Thread Nathan Rossi
On Wed, Nov 11, 2015 at 9:46 PM, Nathan Rossi wrote: > As with other platforms vendors love to create their own boot header > formats. Xilinx is no different and for the Zynq platform/SoC there > exists the "boot.bin" which is read by the platforms bootrom. This > format

[U-Boot] [PATCH 1/2] tools: zynqimage: Add Xilinx Zynq boot header generation to mkimage

2015-11-11 Thread Nathan Rossi
As with other platforms vendors love to create their own boot header formats. Xilinx is no different and for the Zynq platform/SoC there exists the "boot.bin" which is read by the platforms bootrom. This format is described to a useful extent within the Xilinx Zynq TRM. This implementation adds

[U-Boot] [PATCH 2/2] ARM: zynq: Add target for building bootable SPL image for Zynq

2015-11-11 Thread Nathan Rossi
Add a build target to generate 'boot.bin' which includes SPL. This is used by the platforms BootROM to load SPL directly. This change also conditionally changes what the 'boot.bin' target generates depending on the SoC. Leaving the behaviour unchanged for the AT91 targets. Signed-off-by: Nathan

[U-Boot] [PATCH 0/2] Add Xilinx Zynq boot.bin support

2015-11-11 Thread Nathan Rossi
This patch series adds support for the 'zynqimage' type to mkimage for the Xilinx Zynq platform. As well as adding make targets to generate the boot.bin image file containing SPL by default. Nathan Rossi (2): tools: zynqimage: Add Xilinx Zynq boot header generation to mkimage ARM: zynq: Add

Re: [U-Boot] [PATCH] ARM: uniphier: drop UniPhier specific SMP code

2015-11-11 Thread Masahiro Yamada
2015-11-08 21:43 GMT+09:00 Tom Rini : > On Sat, Nov 07, 2015 at 01:12:14AM +0900, Masahiro Yamada wrote: >> 2015-11-06 22:46 GMT+09:00 Tom Rini : >> > On Fri, Nov 06, 2015 at 10:16:30PM +0900, Masahiro Yamada wrote: >> > >> >> The latest Linux can directly

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-11-11 Thread Chin Liang See
Hi Marek, On Mon, 2015-11-09 at 17:02 +0100, Marek Vasut wrote: > On Monday, November 09, 2015 at 04:46:54 PM, Stefan Roese wrote: > > Hi Marek, > > Hi! > > > On 09.11.2015 14:49, Marek Vasut wrote: > > > > > > > > --- a/include/configs/socfpga_common.h > > +++

Re: [U-Boot] [PULL] Please pull u-boot-nios/master

2015-11-11 Thread Tom Rini
On Thu, Nov 12, 2015 at 08:36:57AM +0800, Thomas Chou wrote: > Hi Tom, > > Please pull, > > The following changes since commit b375219e732f044e7f48b676fa4e36e7c29d81e1: > > ARM: uniphier: drop UniPhier specific SMP code (2015-11-11 23:35:35 +0900) > > are available in the git repository at:

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-11-11 Thread Marek Vasut
On Thursday, November 12, 2015 at 01:49:09 AM, Chin Liang See wrote: > Hi Marek, > > On Mon, 2015-11-09 at 17:02 +0100, Marek Vasut wrote: > > On Monday, November 09, 2015 at 04:46:54 PM, Stefan Roese wrote: > > > Hi Marek, > > > > Hi! > > > > > On 09.11.2015 14:49, Marek Vasut wrote: > > > >

Re: [U-Boot] Enabling semantic parsers for host tools

2015-11-11 Thread Masahiro Yamada
Hi Michal, 2015-11-11 17:22 GMT+09:00 Michal Simek : > Hi Masahiro, > > I just find out that u-boot doesn't call sparse for tools. > Do you have any plan to support it? Sorry, I have not cared about this area, and I am busier for Linux these days. Can you find some time to

[U-Boot] [RFC PATCH v2 0/2] Make most DDR non-secure in MMU while keep a small block secure

2015-11-11 Thread York Sun
This set is to change MMU tables so DDR is in non-secure mode that non-secure master such as SDHC DMA can access the data. To mix secure and non-secure MMU entries, the MMU tables themselves have to be in secure memory. A small portion memory is reserved at the end of DDR (before debug server and

Re: [U-Boot] [PATCH v5 01/21] rockchip: add timer driver

2015-11-11 Thread Ben Chan
On Tue, Nov 10, 2015 at 2:24 AM, Lin Huang wrote: > > some rockchip soc will not include lib/timer.c in SPL stage, > so implement timer driver for some soc can use us delay function in SPL. > > Signed-off-by: Lin Huang > Acked-by: Simon Glass

Re: [U-Boot] [PATCH] buildman: README: add links for toolchains not available on kernel.org

2015-11-11 Thread Bin Meng
On Thu, Nov 12, 2015 at 10:19 AM, Marek Vasut wrote: > On Thursday, November 12, 2015 at 02:16:05 AM, Thomas Chou wrote: >> Hi Marek, > > Hi! > >> On 2015年11月11日 23:54, Marek Vasut wrote: >> > On Wednesday, November 11, 2015 at 02:37:08 PM, Thomas Chou wrote: >> >> Add links for

Re: [U-Boot] [PATCH v2] buildman: README: add links for toolchains not available on kernel.org

2015-11-11 Thread Bin Meng
On Thu, Nov 12, 2015 at 9:29 AM, Thomas Chou wrote: > Add links for toolchains not available on kernel.org. > > The sh4 toolchains from kernel.org dose not work for some boards, > so use the sh from Sourcery. > > Signed-off-by: Thomas Chou > ---

[U-Boot] [PATCH v5] colibri_vf: Add board_usb_phy_mode function

2015-11-11 Thread Sanchayan Maity
Add board_usb_phy_mode function for detecting whether a port is being used as host or client using a GPIO. On Colibri Vybrid we provide GPIO 102 for this very same purpose. Signed-off-by: Sanchayan Maity --- Changes since v4: No need to break after return. Changes

Re: [U-Boot] [RFC PATCH] lib/tiny-printf.c: Add tiny printf function for space limited environments

2015-11-11 Thread Stefan Roese
Hi Albert, On 11.11.2015 18:04, Albert ARIBAUD wrote: On Wed, 11 Nov 2015 15:25:09 +0100, Stefan Roese wrote: This patch adds a small printf() version that supports all basic formats. Its intented to be used in U-Boot SPL versions on platforms with very limited internal RAM

Re: [U-Boot] [PATCH v3 00/12] dm: input: Move keyboard drivers to driver model

2015-11-11 Thread Bin Meng
Hi Simon, On Thu, Nov 12, 2015 at 5:56 AM, Simon Glass wrote: > Hi Bin, > > On 11 November 2015 at 10:05, Simon Glass wrote: >> This series adds a new uclass for keyboards and converts some drivers >> over to use it. >> >> This series includes some work to

[U-Boot] aarch64-linux-gnu-objdump gives all zeros in init_sequence_f[]

2015-11-11 Thread Shawn Guo
Hi, I need some help to understand aarch64-linux-gnu-objdump output in .data section as below. It's part of the dump of u-boot image with command 'aarch64-linux-gnu-objdump -D -z u-boot'. Disassembly of section .data: 35039898 : 35039948 : 35039948:

Re: [U-Boot] [PATCH] buildman: README: add links for toolchains not available on kernel.org

2015-11-11 Thread Marek Vasut
On Thursday, November 12, 2015 at 02:16:05 AM, Thomas Chou wrote: > Hi Marek, Hi! > On 2015年11月11日 23:54, Marek Vasut wrote: > > On Wednesday, November 11, 2015 at 02:37:08 PM, Thomas Chou wrote: > >> Add links for toolchains not available on kernel.org. > >> > >> The sh4 toolchains from

Re: [U-Boot] [RFC PATCH v2 1/2] Reserve secure memory

2015-11-11 Thread Thomas Chou
Hi York, On 2015年11月12日 06:50, York Sun wrote: diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index d0383f3..336f3a0 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -58,6 +58,7 @@ typedef struct global_data {

Re: [U-Boot] [PATCH v5 09/21] rockchip: rk3036: Add header files for GRF

2015-11-11 Thread Ben Chan
On Tue, Nov 10, 2015 at 2:24 AM, Lin Huang wrote: > GRF is the gereral register file. Add header files with register definitions. > > Signed-off-by: Lin Huang > Acked-by: Simon Glass > --- > Changes in v1: > - clean copyright

Re: [U-Boot] [PATCH v3 01/12] input: Support the German keymap

2015-11-11 Thread Bin Meng
Hi Simon, On Thu, Nov 12, 2015 at 1:05 AM, Simon Glass wrote: > Add support for the German keymap, taken from i8042.c. This can be selected > when the input library it initialised. > > Signed-off-by: Simon Glass > --- > Reviewed-by: Bin Meng

[U-Boot] [RFC PATCH v3 2/2] armv8: fsl-layerscape: Make DDR non secure in MMU tables

2015-11-11 Thread York Sun
DDR has been set as secure in MMU tables. Non-secure master such as SDHC DMA cannot access data correctly. Mixing secure and non- secure MMU entries requirs the MMU tables themselves in secure memory. This patch moves MMU tables into a secure DDR area. Early MMU tables are changed to set DDR as

[U-Boot] [RFC PATCH v3 1/2] Reserve secure memory

2015-11-11 Thread York Sun
Secure memory is at the end of memory, separated and reserved from OS, tracked by gd->secure_ram. Secure memory can host MMU tables, security monitor, etc. Signed-off-by: York Sun --- Changes in v3: Put ifdef around secure_ram Move defining

[U-Boot] [RFC PATCH v3 0/2] Make most DDR non-secure in MMU while keep a small block secure

2015-11-11 Thread York Sun
This set is to change MMU tables so DDR is in non-secure mode that non-secure master such as SDHC DMA can access the data. To mix secure and non-secure MMU entries, the MMU tables themselves have to be in secure memory. A small portion memory is reserved at the end of DDR (before debug server and

Re: [U-Boot] [RFC PATCH v2 1/2] Reserve secure memory

2015-11-11 Thread York Sun
On 11/11/2015 06:17 PM, Thomas Chou wrote: > Hi York, > > On 2015年11月12日 06:50, York Sun wrote: >> diff --git a/include/asm-generic/global_data.h >> b/include/asm-generic/global_data.h >> index d0383f3..336f3a0 100644 >> --- a/include/asm-generic/global_data.h >> +++

Re: [U-Boot] [PATCH v2] Fix board init code to use a valid C runtime environment

2015-11-11 Thread Thomas Chou
Hi Albert, On 2015年11月11日 02:30, Albert ARIBAUD wrote: board_init_f_mem() alters the C runtime environment's stack it ls actually already using. This is not a valid C runtime environment. Split board_init_f_mem into C functions which do not alter their own stack and therefore run in a valid C

Re: [U-Boot] [PATCH] buildman: README: add links for toolchains not available on kernel.org

2015-11-11 Thread Thomas Chou
Hi Marek, On 2015年11月11日 23:54, Marek Vasut wrote: On Wednesday, November 11, 2015 at 02:37:08 PM, Thomas Chou wrote: Add links for toolchains not available on kernel.org. The sh4 toolchains from kernel.org dose not work for some boards, so use the sh from Sourcery. Signed-off-by: Thomas

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-11-11 Thread Chin Liang See
On Thu, 2015-11-12 at 01:53 +0100, Marek Vasut wrote: > On Thursday, November 12, 2015 at 01:49:09 AM, Chin Liang See wrote: > > Hi Marek, > > > > On Mon, 2015-11-09 at 17:02 +0100, Marek Vasut wrote: > > > On Monday, November 09, 2015 at 04:46:54 PM, Stefan Roese wrote: > > > > Hi Marek, > > >

Re: [U-Boot] [RFC PATCH v2 1/2] Reserve secure memory

2015-11-11 Thread Scott Wood
On Wed, 2015-11-11 at 19:34 -0800, York Sun wrote: > > On 11/11/2015 06:17 PM, Thomas Chou wrote: > > Hi York, > > > > On 2015年11月12日 06:50, York Sun wrote: > > > diff --git a/include/asm-generic/global_data.h b/include/asm > > > -generic/global_data.h > > > index d0383f3..336f3a0 100644 > > >

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Albert ARIBAUD
Hello Simon, On Wed, 11 Nov 2015 14:49:05 -0700, Simon Glass wrote: > Hi Fabio, > > On 11 November 2015 at 14:24, Fabio Estevam > wrote: > > Hi Simon, > > > > On Wed, Nov 11, 2015 at 7:08 PM, Simon Glass > > wrote: > > > >> That test

Re: [U-Boot] [PATCH v1 0/7] Enable high speed and heavy load for DDR4 for LSCH3

2015-11-11 Thread Joakim Tjernlund
On Thu, 2015-11-05 at 12:47 -0800, York Sun wrote: > > On 11/05/2015 11:53 AM, Joakim Tjernlund wrote: > > On Thu, 2015-11-05 at 10:29 -0800, York Sun wrote: > > > > > > On 11/05/2015 10:19 AM, Joakim Tjernlund wrote: > > > > On Thu, 2015-11-05 at 09:42 -0800, York Sun wrote: > > > > > > > > >

Re: [U-Boot] aarch64-linux-gnu-objdump gives all zeros in init_sequence_f[]

2015-11-11 Thread Albert ARIBAUD
Hello Shawn, On Thu, 12 Nov 2015 13:43:18 +0800, Shawn Guo wrote: > Hi, > > I need some help to understand aarch64-linux-gnu-objdump output in .data > section as below. It's part of the dump of u-boot image with command > 'aarch64-linux-gnu-objdump -D -z u-boot'. > >

Re: [U-Boot] [RFC PATCH] lib/tiny-printf.c: Add tiny printf function for space limited environments

2015-11-11 Thread Albert ARIBAUD
Hello Stefan, On Thu, 12 Nov 2015 04:56:32 +0100, Stefan Roese wrote: > Hi Albert, > > On 11.11.2015 18:04, Albert ARIBAUD wrote: > > On Wed, 11 Nov 2015 15:25:09 +0100, Stefan Roese wrote: > >> This patch adds a small printf() version that supports all basic

Re: [U-Boot] [PATCH v2] Fix board init code to use a valid C runtime environment

2015-11-11 Thread Albert ARIBAUD
Hello Thomas, On Thu, 12 Nov 2015 13:59:28 +0800, Thomas Chou wrote: > Hi Albert, > > On 2015年11月11日 02:30, Albert ARIBAUD wrote: > > board_init_f_mem() alters the C runtime environment's > > stack it ls actually already using. This is not a valid > > C runtime

Re: [U-Boot] [PATCH] board/ti/am335x: add support for BeagleBone Green

2015-11-11 Thread Tom Rini
On Wed, Nov 11, 2015 at 09:10:52AM -0600, Robert Nelson wrote: > SeeedStudio BeagleBone Green (BBG) is clone of the BeagleBone Black (BBB) > minus > the HDMI port and addition of two Grove connectors (i2c2 and usart2). > > This board can be identified by the 1A value after A335BNLT (BBB) in the

Re: [U-Boot] [PATCH] Revert "arm: Switch 32-bit ARM to using generic global_data setup"

2015-11-11 Thread Fabio Estevam
On Tue, Nov 10, 2015 at 7:52 PM, Simon Glass wrote: > That suggests that gd->malloc_base is not being set up, or is being > overwritten later. Presumably it should not be NULL? Yes, gd->malloc_base is NULL. I just prepared a patch to fix this issue and will submit it soon.

[U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Fabio Estevam
From: Fabio Estevam Commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic global_data setup") causes malloc() to fail in SPL. The reason is that the GD_MALLOC_BASE is not passed anymore. Restore the code that passes malloc base so that we can have malloc

[U-Boot] [PULL] Please pull u-boot-nios/master

2015-11-11 Thread Thomas Chou
Hi Tom, Please pull, The following changes since commit b375219e732f044e7f48b676fa4e36e7c29d81e1: ARM: uniphier: drop UniPhier specific SMP code (2015-11-11 23:35:35 +0900) are available in the git repository at: git://git.denx.de/u-boot-nios.git master for you to fetch changes up to

[U-Boot] [PATCH v2] buildman: README: add links for toolchains not available on kernel.org

2015-11-11 Thread Thomas Chou
Add links for toolchains not available on kernel.org. The sh4 toolchains from kernel.org dose not work for some boards, so use the sh from Sourcery. Signed-off-by: Thomas Chou --- v2 add toolchain file links. add sudo to write /toolchains. tools/buildman/README | 23

Re: [U-Boot] [PATCH v5 01/21] rockchip: add timer driver

2015-11-11 Thread hl
Hi Ben, On 12/11/15 10:04, Ben Chan wrote: On Tue, Nov 10, 2015 at 2:24 AM, Lin Huang wrote: 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

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-11-11 Thread Marek Vasut
On Thursday, November 12, 2015 at 03:33:42 AM, Chin Liang See wrote: [...] > > > > > I just noticed, that here the L2 cache gets disabled and is not > > > > > enabled again in function v7_outer_cache_enable(). This looks a > > > > > bit suspicious. > > > > > > > > > > Dinh, did you perhaps miss

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Simon Glass
Hi Fabio, On 11 November 2015 at 13:23, Fabio Estevam wrote: > From: Fabio Estevam > > Commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic global_data > setup") causes malloc() to fail in SPL. > > The reason is that the GD_MALLOC_BASE

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Albert ARIBAUD
Hello Fabio, On Wed, 11 Nov 2015 18:23:17 -0200, Fabio Estevam wrote: > From: Fabio Estevam > > Commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic global_data > setup") causes malloc() to fail in SPL. > > The reason is that the

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Fabio Estevam
Hi Simon, On Wed, Nov 11, 2015 at 6:26 PM, Simon Glass wrote: > Thanks for digging into this. But this should be set up in board_init_f_mem(): > > #if defined(CONFIG_SYS_MALLOC_F) && \ >(!defined(CONFIG_SPL_BUILD) || !defined(CONFIG_SYS_SPL_MALLOC_START)) >top -=

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Fabio Estevam
Hi Albert, On Wed, Nov 11, 2015 at 6:33 PM, Albert ARIBAUD wrote: >> +#if defined(CONFIG_SYS_MALLOC_F_LEN) >> + sub sp, sp, #CONFIG_SYS_MALLOC_F_LEN >> + str sp, [r9, #GD_MALLOC_BASE] >> +#endif > > NAK, as this only papers over the actual issue.

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Simon Glass
Hi Fabio, On 11 November 2015 at 14:00, Fabio Estevam wrote: > Hi Simon and Albert, > > On Wed, Nov 11, 2015 at 6:41 PM, Fabio Estevam wrote: >> Hi Simon, >> >> On Wed, Nov 11, 2015 at 6:26 PM, Simon Glass wrote: >> >>> Thanks for

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Fabio Estevam
Hi Simon and Albert, On Wed, Nov 11, 2015 at 6:41 PM, Fabio Estevam wrote: > Hi Simon, > > On Wed, Nov 11, 2015 at 6:26 PM, Simon Glass wrote: > >> Thanks for digging into this. But this should be set up in >> board_init_f_mem(): >> >> #if

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Fabio Estevam
Hi Simon, On Wed, Nov 11, 2015 at 7:08 PM, Simon Glass wrote: > That test is intended to avoid setting up simple malloc() if we plan > to use full malloc() in SPL. Of course, full malloc() is set up a > little later (in spl_init()). But we should not need both - either we >

Re: [U-Boot] [PATCH] ARM: crt0: Pass malloc base address

2015-11-11 Thread Simon Glass
Hi Fabio, On 11 November 2015 at 14:24, Fabio Estevam wrote: > Hi Simon, > > On Wed, Nov 11, 2015 at 7:08 PM, Simon Glass wrote: > >> That test is intended to avoid setting up simple malloc() if we plan >> to use full malloc() in SPL. Of course, full

[U-Boot] [PATCH 1/2] board_init: Fix the logic to setup malloc_base

2015-11-11 Thread Fabio Estevam
From: Fabio Estevam Prior to commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic global_data setup") we used to have assembly code that configured the malloc_base address. After this commit we use the board_init_f_mem() function in C to setup malloc_base

[U-Boot] [PATCH 2/2] README: Add more clarification about CONFIG_SYS_SPL_MALLOC_START

2015-11-11 Thread Fabio Estevam
From: Fabio Estevam Make clear that when the user selects CONFIG_SYS_SPL_MALLOC_START the full malloc will be used in SPL and also that this malloc pool can be used prior to configuring SPL. Signed-off-by: Fabio Estevam --- README | 2

Re: [U-Boot] [PATCH v3 00/12] dm: input: Move keyboard drivers to driver model

2015-11-11 Thread Simon Glass
Hi Bin, On 11 November 2015 at 10:05, Simon Glass wrote: > This series adds a new uclass for keyboards and converts some drivers > over to use it. > > This series includes some work to remove code duplication in the keyboard > drivers by updating them to use the input library

Re: [U-Boot] [PATCH 1/2] board_init: Fix the logic to setup malloc_base

2015-11-11 Thread Simon Glass
Hi Fabio, On 11 November 2015 at 15:15, Fabio Estevam wrote: > From: Fabio Estevam > > Prior to commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic > global_data setup") we used to have assembly code that configured the > malloc_base

  1   2   >