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

2014-03-26 Thread Ian Campbell
On Mon, 2014-03-24 at 23:42 +0100, Olliver Schinagl wrote: [...] I've got a local cleanup patch set where I fixed this already to clrsetbits_le32 [...] Same here, got that in my local tree too Could you post what you've got please? +#ifdef CONFIG_SPL_BUILD +#define PLL1_CFG(N, K, M, P)

[linux-sunxi] Re: [U-Boot] [PATCH v2 2/9] sunxi: initial sun7i pinmux and gpio support

2014-03-26 Thread Ian Campbell
On Mon, 2014-03-24 at 21:54 +0100, Marek Vasut wrote: + cfg = readl(pio-cfg[0] + index); + cfg = ~(0xf offset); + cfg |= val offset; + + writel(cfg, pio-cfg[0] + index); clrsetbits_le32() here. I looked at this transform in a few different contexts and one concern I

[linux-sunxi] Re: [U-Boot] [PATCH v2 2/9] sunxi: initial sun7i pinmux and gpio support

2014-03-26 Thread Ian Campbell
On Mon, 2014-03-24 at 21:54 +0100, Marek Vasut wrote: +int sunxi_gpio_set_cfgpin(u32 pin, u32 val); +int sunxi_gpio_get_cfgpin(u32 pin); +int sunxi_gpio_set_drv(u32 pin, u32 val); +int sunxi_gpio_set_pull(u32 pin, u32 val); +int name_to_gpio(const char *name); +#define name_to_gpio

[linux-sunxi] Re: A31 pmic (axp221) support

2014-03-26 Thread Hans de Goede
Hi, On 03/24/2014 04:05 PM, Hans de Goede wrote: Hi, p.s. I've taken a quick look at the mmc code we've for the A31 in the sunxi provided kernel sources and it seems 100% identical to the mmc controller in sun5i and sun7i. I've not yet gotten around to actually hooking things up in

[linux-sunxi] Re: [U-Boot] [PATCH v2 2/9] sunxi: initial sun7i pinmux and gpio support

2014-03-26 Thread Wolfgang Denk
Dear Ian Campbell, In message 1395822781.29683.12.ca...@dagon.hellion.org.uk you wrote: On Mon, 2014-03-24 at 21:54 +0100, Marek Vasut wrote: +int sunxi_gpio_set_cfgpin(u32 pin, u32 val); +int sunxi_gpio_get_cfgpin(u32 pin); +int sunxi_gpio_set_drv(u32 pin, u32 val); +int

[linux-sunxi] Re: [U-Boot] [PATCH v2 2/9] sunxi: initial sun7i pinmux and gpio support

2014-03-26 Thread Ian Campbell
On Wed, 2014-03-26 at 10:03 +0100, Wolfgang Denk wrote: Dear Ian Campbell, In message 1395822781.29683.12.ca...@dagon.hellion.org.uk you wrote: On Mon, 2014-03-24 at 21:54 +0100, Marek Vasut wrote: +int sunxi_gpio_set_cfgpin(u32 pin, u32 val); +int sunxi_gpio_get_cfgpin(u32 pin);

[linux-sunxi] Re: [PATCH pre-v3 00/26] mtd: nand: add sunxi NAND controller support

2014-03-26 Thread Puneet B
Hi Boris, I downloaded git repo from you link. https://github.com/bbrezillon/linux-sunxi/ but what will the config file. so i can get uImage and modules to boot in my A20 board. so i can use sunxi_nand module to access my boot0 and boot1 partition. i am using cubieboard2. your help is

[linux-sunxi] Trying out sunxi-next on Mele-A2000

2014-03-26 Thread Stefan Monnier
Since my Mele A2000 keeps locking up when using the 3.4 kernel (as reported here several months ago), I decided I should try the sunxi-next kernel (my machine can be headless, it just needs USB and SATA support, basically). So I got the sunxi-next branch from Github's linux-sunxi. Then did

Re: [linux-sunxi] Trying out sunxi-next on Mele-A2000

2014-03-26 Thread Code Kipper
Hi Stefan, I also have the A2000 and did have problems with it booting until MrNuke fixed the MMC(the latest on sunxi-devel is 3.14.0.rc6). My setup is very similar to yours(running Debian headless although without any external devices). Looking at the size of the kernel then it seems that you

Re: [linux-sunxi] Trying out sunxi-next on Mele-A2000

2014-03-26 Thread Code Kipper
maybe I'm wrong about needing to use Hans' u-boot. According to this thread it's only required for A13, A20 https://groups.google.com/forum/#!msg/linux-sunxi/DC1QtgONxPM/MDfCtlv4fFIJ. CK On 26 March 2014 15:10, Code Kipper codekip...@gmail.com wrote: Hi Stefan, I also have the A2000 and did

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

2014-03-26 Thread Hans de Goede
Hi, On 03/26/2014 11:04 AM, Hans de Goede wrote: Hi, On 03/26/2014 10:39 AM, Maxime Ripard wrote: On Wed, Mar 26, 2014 at 09:39:31AM +0100, Hans de Goede wrote: Hi, On 03/19/2014 08:21 PM, Carlo Caione wrote: This patch adds DTS entries for NMI controller as child of GIC.

Re: [linux-sunxi] Trying out sunxi-next on Mele-A2000

2014-03-26 Thread Hans de Goede
Hi, On 03/26/2014 03:26 PM, Maxime Ripard wrote: On Wed, Mar 26, 2014 at 09:48:18AM -0400, Stefan Monnier wrote: Since my Mele A2000 keeps locking up when using the 3.4 kernel (as reported here several months ago), I decided I should try the sunxi-next kernel (my machine can be headless, it

[linux-sunxi] Re: [U-Boot] [PATCH v2 2/9] sunxi: initial sun7i pinmux and gpio support

2014-03-26 Thread Wolfgang Denk
Dear Ian Campbell, In message 1395826756.22808.13.ca...@kazak.uk.xensource.com you wrote: Please add a comment to explain that. Unless you object I think I'll do as Marek suggested name the function sunxi_name_to_gpio and make the #define to that, it seems more consistent that way.

[linux-sunxi] New u-boot has been merged and pushed

2014-03-26 Thread Olliver Schinagl
Hey all, Just letting you know, that a new upstream u-boot version has been merged and pushed. If you are in dire need of some new u-boot version, git pull, compile and flash! Though I don't recall there being a new feature ;) It has been tested on the: Olimexino-Lime Cubieboard1

Re: [linux-sunxi] New u-boot has been merged and pushed

2014-03-26 Thread Hans de Goede
Hi, On 03/26/2014 04:37 PM, Olliver Schinagl wrote: P.S. one small issue is that the _config name has to match whatever is in boards.cfg (obvious) including capitalization. I think we had a patch that fixed this a while ago, so I will track this down and see if i can find it again. This

[linux-sunxi] [PATCH] Add MK808C

2014-03-26 Thread codekipper
From: Marcus Cooper codekip...@gmail.com Signed-off-by: Marcus Cooper codekip...@gmail.com --- sys_config/a20/mk808c.fex | 1013 + 1 file changed, 1013 insertions(+) create mode 100644 sys_config/a20/mk808c.fex diff --git a/sys_config/a20/mk808c.fex

[linux-sunxi] [RFC PATCH u-boot 1/2] sunxi: dram: Adjust cubietruck dram chip width and density

2014-03-26 Thread Jens Kuske
Cubietruck has four 4Gb x8 DDR3 chips, not two 8Gb x16. This doesn't change anything for users, but reports correct values for timing parameters depending on density. Signed-off-by: Jens Kuske jensku...@gmail.com --- board/sunxi/dram_cubietruck.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[linux-sunxi] [RFC PATCH u-boot 2/2] sunxi: dram: Fix autorefresh timing setup

2014-03-26 Thread Jens Kuske
This patch unifies sun4i and sun[5,7]i autorefresh setup functions and adds proper tRFC calculation. tRFC (REF command to ACT time) depends on DDR type and chip density. On sun4i there were two steps, 127.5ns for =1Gb density and 327.5ns for the rest. This fits DDR2 specification for 1Gb and 4Gb

[linux-sunxi] [RFC PATCH u-boot 0/2] Try to improve sunxi DRAM setup code

2014-03-26 Thread Jens Kuske
I tried to start cleaning up the u-boot DRAM setup code for sunxi and found a bug(?) that *could* be responsible for the low possible memory frequencies on some boards like cubietruck. The patches don't raise any memory frequencies, but they could make it possible to raise them. My cubietruck

Re: [linux-sunxi] New u-boot has been merged and pushed

2014-03-26 Thread Olliver Schinagl
On 03/26/2014 04:47 PM, Hans de Goede wrote: Hi, On 03/26/2014 04:37 PM, Olliver Schinagl wrote: P.S. one small issue is that the _config name has to match whatever is in boards.cfg (obvious) including capitalization. I think we had a patch that fixed this a while ago, so I will track this

[linux-sunxi] [RFC 4/5] ARM: sun6i: dt: Add new sun6i-a31-m9 dts file for Mele M9

2014-03-26 Thread Hans de Goede
Add a new sun6i-a31-m9 dts file for the Mele M9 / Mele A1000G Quad. These HTPCs use the same board in a different case, for more details see: http://linux-sunxi.org/Mele_M9 Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/Makefile | 1 +

[linux-sunxi] [RFC 5/5] ARM: sun6i: dt: Add mmc support for the m9

2014-03-26 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31-m9.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts index c95ee77..22837bc 100644 ---

[linux-sunxi] [RFC 1/5] sunxi-mmc: Add support for an optional reset controller

2014-03-26 Thread Hans de Goede
This is necessary to support the sun6i-a31. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/mmc/host/sunxi-mmc.c | 19 +++ drivers/mmc/host/sunxi-mmc.h | 1 + 2 files changed, 20 insertions(+) diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c

[linux-sunxi] [RFC 2/5] ARM: sun6i: dt: Add mmc clocks

2014-03-26 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index cd0d4b0..45b5775 100644 ---

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

2014-03-26 Thread Carlo Caione
On Wed, Mar 26, 2014 at 03:38:05PM +0100, Hans de Goede wrote: Hi, Hi Hans, On 03/26/2014 11:04 AM, Hans de Goede wrote: Hi, On 03/26/2014 10:39 AM, Maxime Ripard wrote: On Wed, Mar 26, 2014 at 09:39:31AM +0100, Hans de Goede wrote: Hi, On 03/19/2014 08:21 PM, Carlo Caione wrote:

[linux-sunxi] [PATCH v8 1/3] ARM: sun7i/sun6i: irqchip: Add irqchip driver for NMI controller

2014-03-26 Thread Carlo Caione
Allwinner A20/A31 SoCs have special registers to control / (un)mask / acknowledge NMI. This NMI controller is separated and independent from GIC. This patch adds a new irqchip to manage NMI. Signed-off-by: Carlo Caione ca...@caione.org Acked-by: Maxime Ripard maxime.rip...@free-electrons.com ---

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

2014-03-26 Thread Carlo Caione
This patch adds DTS entries for NMI controller as child of GIC. Signed-off-by: Carlo Caione ca...@caione.org Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 8 arch/arm/boot/dts/sun7i-a20.dtsi | 8 2 files changed, 16