Re: [U-Boot] [RFC] RFC: convert MPC8536DS to use generic board

2014-04-26 Thread Wolfgang Denk
Dear York Sun, In message <1398474623-4709-1-git-send-email-york...@freescale.com> you wrote: > > Add #ifdef CONFIG_OF_CONTROL for reserve_fdt(), setup_fdt(), reloc_fdt(). This looks wrong to me. This is a global file, and you are affecting a ton of unrelated boards. > Set initial value for gd.

[U-Boot] [PATCH v4 04/10] ARM: add missing HYP mode constant

2014-04-26 Thread Marc Zyngier
In order to be able to use the various mode constants (far more readable than random hex values), add the missing HYP and A values. Also update arm/lib/interrupts.c to display HYP instead of an unknown value. Signed-off-by: Marc Zyngier --- arch/arm/include/asm/proc-armv/ptrace.h | 2 ++ arch/a

[U-Boot] [PATCH v4 02/10] ARM: HYP/non-sec: add a barrier after setting SCR.NS==1

2014-04-26 Thread Marc Zyngier
A CP15 instruction execution can be reordered, requiring an isb to be sure it is executed in program order. Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/nonsec_virt.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/arm/cpu/armv7/nonsec_virt.S ind

[U-Boot] [PATCH v4 09/10] ARM: convert arch_fixup_memory_node to a generic FDT fixup function

2014-04-26 Thread Marc Zyngier
From: Ma Haijun Some architecture needs extra device tree setup. Instead of adding yet another hook, convert arch_fixup_memory_node to be a generic FDT fixup function. [maz: collapsed 3 patches into one, rewrote commit message] Signed-off-by: Ma Haijun Signed-off-by: Marc Zyngier --- arch/ar

[U-Boot] [PATCH v4 07/10] ARM: HYP/non-sec: add generic ARMv7 PSCI code

2014-04-26 Thread Marc Zyngier
Implement core support for PSCI. As this is generic code, it doesn't implement anything really useful (all the functions are returning Not Implemented). Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/Makefile | 4 ++ arch/arm/cpu/armv7/psci.S | 102 +++

[U-Boot] [PATCH v4 08/10] ARM: HYP/non-sec: add the option for a second-stage monitor

2014-04-26 Thread Marc Zyngier
Allow the switch to a second stage secure monitor just before switching to non-secure. This allows a resident piece of firmware to be active once the kernel has been entered (the u-boot monitor is dead anyway, its pages being reused). Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/nonsec_vi

[U-Boot] [PATCH v4 05/10] ARM: HYP/non-sec: add separate section for secure code

2014-04-26 Thread Marc Zyngier
In anticipation of refactoring the HYP/non-secure code to run from secure RAM, add a new linker section that will contain that code. Nothing is using it just yet. Signed-off-by: Marc Zyngier --- arch/arm/config.mk | 2 +- arch/arm/cpu/u-boot.lds | 30 ++ arch/a

[U-Boot] [PATCH v4 03/10] ARM: non-sec: reset CNTVOFF to zero

2014-04-26 Thread Marc Zyngier
Before switching to non-secure, make sure that CNTVOFF is set to zero on all CPUs. Otherwise, kernel running in non-secure without HYP enabled (hence using virtual timers) may observe timers that are not synchronized, effectively seeing time going backward... Signed-off-by: Marc Zyngier --- arch

[U-Boot] [PATCH v4 01/10] ARM: HYP/non-sec: move switch to non-sec to the last boot phase

2014-04-26 Thread Marc Zyngier
Having the switch to non-secure in the "prep" phase is causing all kind of troubles, as that stage can be called multiple times. Instead, move the switch to non-secure to the last possible phase, when there is no turning back anymore. Signed-off-by: Marc Zyngier --- arch/arm/lib/bootm.c | 5 +++

[U-Boot] [PATCH v4 06/10] ARM: HYP/non-sec: allow relocation to secure RAM

2014-04-26 Thread Marc Zyngier
The current non-sec switching code suffers from one major issue: it cannot run in secure RAM, as a large part of u-boot still needs to be run while we're switched to non-secure. This patch reworks the whole HYP/non-secure strategy by: - making sure the secure code is the *last* thing u-boot execut

[U-Boot] [PATCH v4 00/10] ARMv7: add PSCI support to U-Boot

2014-04-26 Thread Marc Zyngier
PSCI is an ARM standard that provides a generic interface that supervisory software can use to manage power in the following situations: - Core idle management - CPU hotplug - big.LITTLE migration models - System shutdown and reset It basically allows the kernel to offload these tasks to the firmw

[U-Boot] [PATCH v4 10/10] ARM: HYP/non-sec/PSCI: emit DT nodes

2014-04-26 Thread Marc Zyngier
Generate the PSCI node in the device tree. Also add a reserve section for the "secure" code that lives in in normal RAM, so that the kernel knows it'd better not trip on it. Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/Makefile | 1 + arch/arm/cpu/armv7/virt-dt.c | 100

Re: [U-Boot] [PATCH v4 00/10] ARMv7: add PSCI support to U-Boot

2014-04-26 Thread Dennis Gilmore
On Sat, 26 Apr 2014 13:17:01 +0100 Marc Zyngier wrote: > PSCI is an ARM standard that provides a generic interface that > supervisory software can use to manage power in the following > situations: > - Core idle management > - CPU hotplug > - big.LITTLE migration models > - System shutdown and re

Re: [U-Boot] [PATCH v4 00/10] ARMv7: add PSCI support to U-Boot

2014-04-26 Thread Marc Zyngier
On 2014-04-26 15:24, Dennis Gilmore wrote: On Sat, 26 Apr 2014 13:17:01 +0100 Marc Zyngier wrote: PSCI is an ARM standard that provides a generic interface that supervisory software can use to manage power in the following situations: - Core idle management [...] this series fails to comp

Re: [U-Boot] [RFC] RFC: convert MPC8536DS to use generic board

2014-04-26 Thread York Sun
On 04/26/2014 02:22 AM, Wolfgang Denk wrote: > Dear York Sun, > > In message <1398474623-4709-1-git-send-email-york...@freescale.com> you wrote: >> >> Add #ifdef CONFIG_OF_CONTROL for reserve_fdt(), setup_fdt(), reloc_fdt(). > > This looks wrong to me. This is a global file, and you are affectin

Re: [U-Boot] [linux-sunxi] Uboot error: address not aligned in v7_dcache_inval_range

2014-04-26 Thread Marek Vasut
On Saturday, April 19, 2014 at 03:30:14 PM, Ian Campbell wrote: > On Sun, 2014-04-13 at 23:45 -0400, Shixin Zeng wrote: > > Hi, > > > > I compiled the current u-boot from > > https://github.com/jwrdegoede/u-boot-sunxi.git for cubieboard2, and > > wrote it to the SD card. I was trying to boot the k

Re: [U-Boot] [PATCH v3 2/9] sunxi: add sun7i pinmux and gpio support

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:43 PM, Ian Campbell wrote: > This patch adds the basic pinmux and gpio support for the Allwinner A20 > (sun7i) processor. This code will not been compiled until the build is > hooked up in a later patch. It has been split out to keep the patches > manageable. > >

Re: [U-Boot] [PATCH v3 6/9] sunxi: add gmac Ethernet support

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:47 PM, Ian Campbell wrote: > Add support for the GMAC Ethernet controller on Allwinner A20 (sun7i) > processors. Enable for the Cubietruck. > > Signed-off-by: Chen-Yu Tsai > Signed-off-by: Jens Kuske > Signed-off-by: Ian Campbell > --- > v3: Based on c89867dca

Re: [U-Boot] [PATCH v3 9/9] net/designware: Reduce DMA burst length

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:50 PM, Ian Campbell wrote: > From: Jens Kuske > > The GMAC module in Allwinner sunxi SoCs seems to have problems with > burst lengths > 8. Is there any explanation for the problems please ? Best regards, Marek Vasut

Re: [U-Boot] [PATCH v3 1/9] sunxi: add sun7i clocks and timer support.

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:42 PM, Ian Campbell wrote: [...] > +static ulong read_timer(void) > +{ > + struct sunxi_timer_reg *timers = > + (struct sunxi_timer_reg *)SUNXI_TIMER_BASE; > + struct sunxi_timer *timer = &timers->timer[TIMER_NUM]; > + /* The hardware time

Re: [U-Boot] [PATCH 1/3] net/designware: ensure device private data is DMA aligned.

2014-04-26 Thread Marek Vasut
On Saturday, April 19, 2014 at 03:52:20 PM, Ian Campbell wrote: > struct dw_eth_dev contains fields which are accessed via DMA, so make sure > it is aligned to a dma boundary. Without this I see: > ERROR: v7_dcache_inval_range - start address is not aligned - > 0x7fb677e0 > > Signed-off-by: Ia

Re: [U-Boot] [PATCH v3 5/9] sunxi: add support for Cubietruck booting in FEL mode

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:46 PM, Ian Campbell wrote: > Signed-off-by: Oliver Schinagl > Signed-off-by: Jens Kuske > Signed-off-by: Ian Campbell > Reviewed-by: Tom Rini Reviewed-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing l

Re: [U-Boot] [PATCH v3 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:49 PM, Ian Campbell wrote: > Add support for booting from an MMC card. > > Signed-off-by: Stefan Roese > Signed-off-by: Henrik Nordström > Signed-off-by: Ian Campbell > Cc: Tom Cubie [...] > +typedef unsigned char u8; > +typedef unsigned int u32; Uh, really

Re: [U-Boot] [PATCH v3 3/9] sunxi: add sun7i dram setup support

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:44 PM, Ian Campbell wrote: > This patch adds DRAM initialisation support for the Allwinner A20 (sun7i) > processor. This code will not been compiled until the build is hooked up in > a later patch. It has been split out to keep the patches manageable. > > Signed-

Re: [U-Boot] [PATCH v3 7/9] sunxi: mmc support

2014-04-26 Thread Marek Vasut
On Friday, April 18, 2014 at 08:05:48 PM, Ian Campbell wrote: > This adds support for the MMC controller on the Allwinner A20 (sun7i) > processor. > > Signed-off-by: Henrik Nordstrom > Signed-off-by: Luke Leighton > Signed-off-by: Oliver Schinagl > Signed-off-by: Wills Wang > Signed-off-by: Ia

[U-Boot] DA850EVM with USE_NAND config does not pad the AIS file

2014-04-26 Thread Tom Taylor
I'm a U-Boot newbie so please feel free to correct how I'm reporting this issue.. I recently downloaded the 2014.04-rc3 snapshot to build U-Boot for my custom DA850-based board. The only change was to add a new target "dav850evm_nand" in boards.cfg with the added parameter "USE_NAND". The r

Re: [U-Boot] [RFC] RFC: convert MPC8536DS to use generic board

2014-04-26 Thread Wolfgang Denk
Dear York Sun, In message <535be09f.80...@freescale.com> you wrote: > > >> Add #ifdef CONFIG_OF_CONTROL for reserve_fdt(), setup_fdt(), reloc_fdt(). > > > > This looks wrong to me. This is a global file, and you are affecting > > a ton of unrelated boards. > > Understood it is a global file. Th

Re: [U-Boot] [RFC] RFC: convert MPC8536DS to use generic board

2014-04-26 Thread Simon Glass
Hi York, On 26 April 2014 10:36, York Sun wrote: > On 04/26/2014 02:22 AM, Wolfgang Denk wrote: >> Dear York Sun, >> >> In message <1398474623-4709-1-git-send-email-york...@freescale.com> you >> wrote: >>> >>> Add #ifdef CONFIG_OF_CONTROL for reserve_fdt(), setup_fdt(), reloc_fdt(). >> >> This l

Re: [U-Boot] [PATCH] Start the deprecation process for generic board

2014-04-26 Thread Simon Glass
Hi York, On 25 April 2014 16:29, York Sun wrote: > On 03/22/2014 04:14 PM, Simon Glass wrote: >> We should move forward to remove the old board init code. Add a >> prominent message to encourage maintainers to get started on this >> work. >> >> Signed-off-by: Simon Glass >> --- >> > Simon, > > H

Re: [U-Boot] [PATCH v4 00/10] ARMv7: add PSCI support to U-Boot

2014-04-26 Thread Dennis Gilmore
On Sat, 26 Apr 2014 17:31:03 +0100 Marc Zyngier wrote: > On 2014-04-26 15:24, Dennis Gilmore wrote: > > On Sat, 26 Apr 2014 13:17:01 +0100 > > Marc Zyngier wrote: > > > >> PSCI is an ARM standard that provides a generic interface that > >> supervisory software can use to manage power in the foll

Re: [U-Boot] [PATCH 01/11] kconfig: import Kconfig files from Linux v3.14 tag

2014-04-26 Thread Simon Glass
On 23 April 2014 23:04, Masahiro Yamada wrote: > Import > - All files under scripts/kconfig/ > - include/linux/kconfig.h > from Linux Kernel v3.14. > > I know they include lots of trailing spaces > but I keep intentionally them untouched. > > Signed-off-by: Masahiro Yamada Reviewed-by: Simon

[U-Boot] usbtty using i.MX6

2014-04-26 Thread Otavio Salvador
Hello, I'd like to know if someone has succeed in using usbtty with i.MX6. I am interested in using it for one board but been not succed, it seems: /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:553: undefined reference to `udc_init' drivers/serial/built-in.o: In function `usbtty_init_instan

Re: [U-Boot] [PATCH 02/11] Do not apply: tools: add genkconfig

2014-04-26 Thread Simon Glass
Hi Masahiro, On 23 April 2014 23:04, Masahiro Yamada wrote: > > Do not apply this patch to the main line > > > What is this tool? > -- > > This tool converts boards.cfg to defconfig and Kconfig