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

2014-04-13 Thread Shixin Zeng
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 kernel on my computer over network by tftp, however it failed when I ran "dhcp" or "tftp" command in uboot with a tons of: ERROR: v7_dcache_

[linux-sunxi] Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-04-13 Thread Marek Vasut
On Sunday, April 13, 2014 at 09:55:57 PM, Ian Campbell wrote: > On Mon, 2014-03-24 at 23:42 +0100, Olliver Schinagl wrote: > > On 03/24/2014 09:52 PM, Marek Vasut wrote: > > >> +/* Switch to 24MHz clock while changing PLL1 */ > > >> +writel(AXI_DIV_1 << AXI_DIV_SHIFT | > > >> +

[linux-sunxi] [PATCH] sunxi: avoid sr32 for APB1 clock setup.

2014-04-13 Thread Ian Campbell
In some cases we are setting all of the defined bits of the configuration register, so there is no need for a read/modify/write via either sr32 or clrsetbits, just write the value we need. Tested on Cubietruck (sun7i) and compile tested only for Colombus (sun6i). Having made these changes sr32 is

[linux-sunxi] Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-04-13 Thread Ian Campbell
On Mon, 2014-03-24 at 23:42 +0100, Olliver Schinagl wrote: > On 03/24/2014 09:52 PM, Marek Vasut wrote: > >> + /* Switch to 24MHz clock while changing PLL1 */ > >> + writel(AXI_DIV_1 << AXI_DIV_SHIFT | > >> + AHB_DIV_2 << AHB_DIV_SHIFT | > >> + APB0_DIV_1 << APB0_DIV_SHIFT | > >>

[linux-sunxi] Re: usb bluetooth cubieboard2 problem

2014-04-13 Thread mahdi taheri
No Idea,help or suggestion? It is really important for me. no body can help? -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.

[linux-sunxi] [PATCH] sunxi: correct pinmux setup

2014-04-13 Thread Ian Campbell
Bo Shen reported that MMC no longer worked after commit ff42704 "sunxi: use clrsetbit in gpio/pinmux code". Re-examining those changes shows a couple of bogus changes (forgetting to shift the value in one, and using the offset instead of the value in another). Presumably Bo Shen's platform uses a

[linux-sunxi] sunxi-3.4 EMAC driver issue

2014-04-13 Thread Sertac Tüllük
Dear All; I feel that sunxi-3.4 kernel (3.4.79+) has some EMAC driver problem about TX. I think RX is perfect, but TX is getting some interrupts during big file transfers or streaming. Here is my tests: RX Test: http://i.imgur.com/8KUgZ2h.png TX test: http://i.imgur.com/jkMvUfg.png I tested th

Re: [linux-sunxi] [PATCH] sunxi: remove READ_TIMER macro

2014-04-13 Thread Hans de Goede
Hi, On 04/12/2014 09:15 PM, Ian Campbell wrote: > Marek Vasut requested that this be removed during upstream review. > > Since the inverting behaviour is a bit subtle I have decided to make this a > function rather than simply inlining the readl() at each of the users. > > Signed-off-by: Ian Cam

Re: [linux-sunxi] Current u-boot crashes my cubietruck!

2014-04-13 Thread Hans de Goede
Hi, On 04/07/2014 10:54 PM, Olliver Schinagl wrote: > On 04/02/2014 10:31 AM, Hans de Goede wrote: >> Hi, >> >> On 04/01/2014 10:45 PM, Olliver Schinagl wrote: >>> Top Posting! >>> >>> I found the culprit. FAST_MBUS breaks it. After 48 hours of runs, enabling >>> fast_mbus immediately breaks it e

[linux-sunxi] Re: [U-Boot] mmc changes in v2014.04-rc3 cause problems when using mmc in SPL

2014-04-13 Thread Hans de Goede
Hi, On 04/09/2014 01:07 AM, Tom Rini wrote: > On Wed, Apr 09, 2014 at 12:05:04AM +0200, Hans de Goede wrote: > >> Hi, >> >> While merging v2014.04-rc3 into our sunxi u-boot branch, I hit a problem >> where mmc would no longer work in the SPL. >> >> The problem is that the new mmc_create call forc

[linux-sunxi] [PATCH u-boot-sunxi] sunxi: Change default bootm_szie to 0x10000000

2014-04-13 Thread Hans de Goede
We've boards which only have 256M of RAM, so using a default bootm_size of 512M does not seem like a good idea. Signed-off-by: Hans de Goede --- include/configs/sunxi-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/sunxi-common.h b/include/configs/sun

[linux-sunxi] Re: [PATCH] reset: Add of_reset_control_get to reset.h

2014-04-13 Thread Josh Triplett
On Sun, Apr 13, 2014 at 02:09:15PM +0200, Hans de Goede wrote: > of_reset_control_get is not declared static in drivers/reset/core.c, which > is correct as we want to use it elsewhere too. But it does not have a > protype declared anywhere under include/linux. Add a prototype / stub for it > to lin

[linux-sunxi] [PATCH] reset: Add of_reset_control_get to reset.h

2014-04-13 Thread Hans de Goede
of_reset_control_get is not declared static in drivers/reset/core.c, which is correct as we want to use it elsewhere too. But it does not have a protype declared anywhere under include/linux. Add a prototype / stub for it to linux/reset.h to fix this. Signed-off-by: Hans de Goede --- include/lin

[linux-sunxi] [PATCH 4/4] ARM: sun7i: dt: Add address- and size-cells info to i2c controller nodes

2014-04-13 Thread Hans de Goede
Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 88d44135..f4b00a5 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i

[linux-sunxi] [PATCH 3/4] ARM: sun5i: dt: Add address- and size-cells info to i2c controller nodes

2014-04-13 Thread Hans de Goede
Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a13.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index ea9fd4b..b76b28e 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi +++ b/arch/arm/boot/dts/sun5i-a13.dt

[linux-sunxi] [PATCH 1/4] ARM: sun6i: dt: Fixup prcm node name

2014-04-13 Thread Hans de Goede
The prcm lives at address 0x01f01400 as the reg entry in its node already correctly indicates, rename the node to match this. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun6i-a31.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a

[linux-sunxi] [PATCH 2/4] ARM: sun4i: dt: Add address- and size-cells info to i2c controller nodes

2014-04-13 Thread Hans de Goede
Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 7900ca6..04c457a 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi +++ b/arch/arm/boot/dts/sun4i-a10.dt

[linux-sunxi] [PATCH 0/4] ARM: sunxi: dt: Misc. fixes

2014-04-13 Thread Hans de Goede
Hi Maxime, Here is are 4 misc. dts fixes for sunxi. Regards, Hans -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For

Re: [linux-sunxi] [PATCH u-boot-sunxi 3/3] sunxi; Move spl HEAP to DRAM

2014-04-13 Thread Hans de Goede
Hi, On 04/13/2014 12:29 PM, Ian Campbell wrote: > On Sun, 2014-04-13 at 12:08 +0200, Hans de Goede wrote: >> Hi, >> >> On 04/12/2014 09:38 PM, Ian Campbell wrote: >>> On Sat, 2014-04-12 at 14:57 +0200, Hans de Goede wrote: u-boot does not call mem_malloc_init() until after dram has been setup

Re: [linux-sunxi] [PATCH u-boot-sunxi 3/3] sunxi; Move spl HEAP to DRAM

2014-04-13 Thread Ian Campbell
On Sun, 2014-04-13 at 12:08 +0200, Hans de Goede wrote: > Hi, > > On 04/12/2014 09:38 PM, Ian Campbell wrote: > > On Sat, 2014-04-12 at 14:57 +0200, Hans de Goede wrote: > >> u-boot does not call mem_malloc_init() until after dram has been setup, so > >> instead of wasting precious SRAM, simply bu

Re: [linux-sunxi] [PATCH u-boot-sunxi 3/3] sunxi; Move spl HEAP to DRAM

2014-04-13 Thread Hans de Goede
Hi, On 04/12/2014 09:38 PM, Ian Campbell wrote: > On Sat, 2014-04-12 at 14:57 +0200, Hans de Goede wrote: >> u-boot does not call mem_malloc_init() until after dram has been setup, so >> instead of wasting precious SRAM, simply but the HEAP in DRAM (just below >> the BSS segment). > > You also ma

[linux-sunxi] Re: [PATCH v4 4/9] input: misc: Add driver for AXP20x Power Enable Key

2014-04-13 Thread Dmitry Torokhov
On Fri, Apr 11, 2014 at 11:38:08AM +0200, Carlo Caione wrote: > This patch add support for the Power Enable Key found on MFD AXP202 and > AXP209. Besides the basic support for the button, the driver adds two > entries in sysfs to configure the time delay for power on/off. > > Signed-off-by: Carlo