Re: [linux-sunxi] No "spl/sunxi-spl.bin" for A31?

2014-03-20 Thread Emilio López
Hi Igor, El 18/03/14 23:36, Igor Cardoso escribió: Hello, I was trying to make a bootable SD CARD for A31 from scratch but I have a problem. A lot of places that helps build SD CARD for Allwinner processors talk about a file called spl/sunxi-spl.bin, but that doesn't exist on A31 folders...

[linux-sunxi] Re: No "spl/sunxi-spl.bin" for A31?

2014-03-20 Thread Igor Cardoso
No one? =( Em terça-feira, 18 de março de 2014 23h36min54s UTC-3, Igor Cardoso escreveu: > > > > Hello, > > I was trying to make a bootable SD CARD for A31 from scratch but I have a > problem. A lot of places that helps build SD CARD for Allwinner processors > talk about a file called spl/sun

[linux-sunxi] [PATCH u-boot-sunxi.git 9/9] sunxi: mmc: checkpatch whitespace fixes

2014-03-20 Thread Ian Campbell
Signed-off-by: Ian Campbell --- Normally I object to this sort of churn but this is so that the patches submitted upstream can be checkpatch clean. --- drivers/mmc/sunxi_mmc.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sun

[linux-sunxi] [PATCH u-boot-sunxi.git 5/9] sunxi: mmc: refactor enabling/disable DMA accesses

2014-03-20 Thread Ian Campbell
And remove a magic number in the process. Signed-off-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/mmc.h | 1 + drivers/mmc/sunxi_mmc.c | 18 ++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/mmc.h b/arch/arm

[linux-sunxi] [PATCH u-boot-sunxi.git 8/9] sunxi: mmc: refactor similar wait loops

2014-03-20 Thread Ian Campbell
Signed-off-by: Ian Campbell --- drivers/mmc/sunxi_mmc.c | 55 ++--- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 34c4996..a09e021 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drive

[linux-sunxi] [PATCH u-boot-sunxi.git 7/9] sunxi: mmc: defines for status register

2014-03-20 Thread Ian Campbell
Objdump confirms no change to the resulting binary. Signed-off-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/mmc.h | 8 drivers/mmc/sunxi_mmc.c | 8 +--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/mmc.h b/arc

[linux-sunxi] [PATCH u-boot-sunxi.git 4/9] sunxi: mmc: defines for mmc ctrl and cmd registers

2014-03-20 Thread Ian Campbell
Inferred from Linux driver. Objdump confirms no change to the resulting binary. Signed-off-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/mmc.h | 11 ++ drivers/mmc/sunxi_mmc.c | 39 --- 2 files changed, 24 insertions(+), 26 deletions(

[linux-sunxi] [PATCH u-boot-sunxi.git 6/9] sunxi: mmc: defines for rint register bits

2014-03-20 Thread Ian Campbell
Names from Linux driver Signed-off-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/mmc.h | 35 +++ drivers/mmc/sunxi_mmc.c | 19 +++ 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/

[linux-sunxi] [PATCH u-boot-sunxi.git 2/9] sunxi: mmc: defines for various mmc control bits

2014-03-20 Thread Ian Campbell
Mostly derived from existing comments. There are plenty of undefined bits still though. Objdump confirms that the resulting binary is identical. Signed-off-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/mmc.h | 19 ++ drivers/mmc/sunxi_mmc.c | 49

[linux-sunxi] [PATCH u-boot-sunxi.git 3/9] sunxi: mmc: defines for clock bits

2014-03-20 Thread Ian Campbell
Objdump confirms no difference in the resulting binary. Signed-off-by: Ian Campbell --- arch/arm/include/asm/arch-sunxi/clock.h | 7 +++ drivers/mmc/sunxi_mmc.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/clock.h

[linux-sunxi] [PATCH u-boot-sunxi.git 1/9] sunxi: mmc: add braces to remove ambiguity

2014-03-20 Thread Ian Campbell
Signed-off-by: Ian Campbell --- Cleanup due to upstream review. --- drivers/mmc/sunxi_mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 80e4369..b6f2f96 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_m

[linux-sunxi] [PATCH u-boot-sunxi.git 0/9] sunxi: mmc: removal of magic numbers

2014-03-20 Thread Ian Campbell
The following patches remove the majority of the magic numbers from the mmc driver, as part of the preparation for upstreaming. The names/meanings of the various bits are partially inferred from existing comments and partially from the Linux driver. Also a little refactoring and checkpatch cleanup

[linux-sunxi] Re: [PATCH u-boot-sunxi.git] sunxi: setup environment so initrd and fdt are relocated to safe addresses

2014-03-20 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/20/2014 04:24 PM, Ian Campbell wrote: > Instead of setting CONFIG_SYS_BOOTMAPSZ instead set bootm_size to 512M in the > default environment. This causes boot_start_lmb to use addresses which are > covered by the kernels lowmem mapping, which is r

[linux-sunxi] [PATCH u-boot-sunxi.git] sunxi: dram: checkpatch.pl cleanups

2014-03-20 Thread Ian Campbell
Mainly whitespace. The main construct which it complains about is: while(POKE THE HARDWARE); which obscures the potentially infinite loop, I've rewritten as: while(POKE THE HARDWARE) ; Signed-off-by: Ian Campbell --- Normally I object to this sort of churn but this

[linux-sunxi] [PATCH u-boot-sunxi.git] sunxi: setup environment so initrd and fdt are relocated to safe addresses

2014-03-20 Thread Ian Campbell
Instead of setting CONFIG_SYS_BOOTMAPSZ instead set bootm_size to 512M in the default environment. This causes boot_start_lmb to use addresses which are covered by the kernels lowmem mapping, which is required by the boot protocol. This should mean that workarounds such as fdt_high= and in

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

2014-03-20 Thread Ian Campbell
On Mon, 2014-03-17 at 15:33 -0400, Tom Rini wrote: > > So, I'm confused about what to do here ;-) > > And I've not made things clearer with a mis-recollection of things. I > don't know why I keep saying "bootm_low" when I mean "bootm_size" like > I've done in later patches (and thankfully, when p

[linux-sunxi] Re: [PATCH v7 3/3] ARM: sun7i/sun6i: irqchip: Update the documentation

2014-03-20 Thread Maxime Ripard
On Wed, Mar 19, 2014 at 08:21:19PM +0100, Carlo Caione wrote: > Added documentation for NMI irqchip. > > Signed-off-by: Carlo Caione Acked-by: Maxime Ripard -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: D

[linux-sunxi] Re: [PATCH v7 2/3] ARM: sun7i/sun6i: dts: Add NMI irqchip support

2014-03-20 Thread Maxime Ripard
On Wed, Mar 19, 2014 at 08:21:18PM +0100, Carlo Caione wrote: > This patch adds DTS entries for NMI controller as child of GIC. > > Signed-off-by: Carlo Caione Acked-by: Maxime Ripard Thanks! -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electron

[linux-sunxi] Re: [PATCH 2/2] v1 ARM: sun4i: spi: Allow Tx transfers larger than FIFO size

2014-03-20 Thread Maxime Ripard
On Wed, Mar 19, 2014 at 01:23:34PM -0500, mrnuke wrote: > > > /* Enable the interrupts */ > > > > > > - sun4i_spi_write(sspi, SUN4I_INT_CTL_REG, SUN4I_INT_CTL_TC | > > > - SUN4I_INT_CTL_RF_F34); > > > + reg = SUN4I_INT_CTL_TC | SUN4I_INT_CTL_RF_F34; > > >

[linux-sunxi] Re: [PATCH 1/2] v1 ARM: sun4i: spi: Allow Rx transfers larger than FIFO size

2014-03-20 Thread Maxime Ripard
On Wed, Mar 19, 2014 at 01:03:45PM -0500, mrnuke wrote: > > > - /* We don't support transfer larger than the FIFO */ > > > - if (tfr->len > SUN4I_FIFO_DEPTH) > > > + if (tfr->len > SUN4I_MAX_XFER_SIZE) > > > + return -EINVAL; > > > > Why do you still need this test? > > > SUN4I_MAX_XFER_S

Re: [linux-sunxi] CSI driver problems in 16bit mode + some successful debug

2014-03-20 Thread Ivan Kozic
Got it - instead of V4L2_PIX_FMT_YUV422P, CSI format needs to be set to V4L2_PIX_FMT_NV16. Also display needs to set as: format: DISP_FORMAT_YUV422 mode: DISP_MOD_NON_MB_UV_COMBINED seq: DISP_SEQ_UVUV works like a charm :) On Thursday, March 20, 2014 10:08:15 AM UTC+1, Ivan Kozic wrote: > > Thi

[linux-sunxi] [PATCH] i2c-sunxi: use standard mode I2C speed of 100 kbit/s for I2C[1-4]

2014-03-20 Thread Jonathan Liu
Standard mode I2C speed is 100 kbit/s and should be used instead of 200 kbit/s which is non-standard. Signed-off-by: Jonathan Liu --- arch/arm/plat-sunxi/include/plat/i2c.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-sunxi/include/plat/i2c.h b/arch/

[linux-sunxi] Re: [PATCH v6 04/18] ahci-platform: Add support for devices with more then 1 clock

2014-03-20 Thread Ben Dooks
On 19/02/14 15:52, Tejun Heo wrote: On Wed, Feb 19, 2014 at 01:01:46PM +0100, Hans de Goede wrote: diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 434ab89..aaa0c08 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -87,6 +87,44 @@ static st

Re: [linux-sunxi] Re: Auxtek-004 booting problems

2014-03-20 Thread Daniel Mosquera
Hi Emilio, I tested the settings you advised and it worked like a charm! Also I have updated the "Manual build specifics" with this information. Thanks to you all for your help! El miércoles, 19 de marzo de 2014 19:39:53 UTC+1, Emilio López escribió: > > Hi there, > > El 19/03/14 14:14, Daniel

Re: [linux-sunxi] CSI driver problems in 16bit mode + some successful debug

2014-03-20 Thread Ivan Kozic
This sunxi HW/SW/Docu combo is a complete mess. There's one more thing specific to YUV422 16bit capture - memory alignment is a bit different than when using 8bit capture. In fact, up to now, I've been using planar capture, which in turn means that Y, U and V components are stored into separate

Re: [linux-sunxi] Possible G2D kernel bug

2014-03-20 Thread Andreas Baierl
For testing purposes, setting timeout=500 has the effect, that OSD stops flickering, but instead of the correct image, only a black area with OSD dimensions is displayed. "wait g2d irq pending flag timeout" still is there. I also applied https://github.com/amery/linux-sunxi/commit/7015bbb75ac57