[linux-sunxi] Re: [PATCH v5 4/4] crypto: Add Allwinner Security System crypto accelerator

2014-11-03 Thread Maxime Ripard
On Fri, Oct 31, 2014 at 06:05:22PM +0800, Herbert Xu wrote: On Fri, Oct 31, 2014 at 10:57:06AM +0100, Maxime Ripard wrote: On a 3.18-rc2 kernel: $ git grep kmap -- crypto/ crypto/ahash.c: walk-data = kmap(walk-pg); crypto/ahash.c:

[linux-sunxi] HDMI drivers for banana pi for 3.14.6

2014-11-03 Thread Prajosh Premdas
Hi I am trying to bring up HDMI support for banana PI on kernel 3.14.6 and i could not find the HDMI driver. I find that the drivers are there at: https://github.com/linux-sunxi/linux-sunxi/blob/lichee-3.0.8-sun4i/drivers/video/sun4i/hdmi/aw/hdmi_core.c

Re: [linux-sunxi] U-boot mainline 2014.10 on a A20 board

2014-11-03 Thread Ezaul Zillmer
Good Morning! I use the following repository git clone https://github.com/jwrdegoede/u-boot-sunxi.git -b sunxi-wip u-boot-sunxi-wip make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- Cubieboard2_config make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- And for the record SD dd

[linux-sunxi] Re: HDMI drivers for banana pi for 3.14.6

2014-11-03 Thread Ezaul Zillmer
Good Morning! To drive the HDMI function depends on various factors you can take a look here http://linux-sunxi.org/Linux_mainlining_effort#Core_Stuff Att: Ezaul Zillmer -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this

[linux-sunxi] Re: [PATCH v5 4/4] crypto: Add Allwinner Security System crypto accelerator

2014-11-03 Thread Herbert Xu
On Mon, Nov 03, 2014 at 10:34:46AM +0100, Maxime Ripard wrote: What I mean is that since you are saying that drivers should do the kmap themselves, then *all* of the drivers are broken if they are not using it. And all of them are missing this kmap. kmap is used by the software implementations

Re: [linux-sunxi] HDMI drivers for banana pi for 3.14.6

2014-11-03 Thread Andreas Baierl
Hi, there is no display support in mainline kernel. The latest kernel, that supports display is the sunxi-3.4 kernel of the linux-sunxi community. Regards Am 03.11.2014 10:55, schrieb Prajosh Premdas: Hi I am trying to bring up HDMI support for banana PI on kernel 3.14.6 and i could not

[linux-sunxi] [PATCH 5/9] sun4i: Rename dram files to dram_sun4i.x

2014-11-03 Thread Hans de Goede
In preparation for adding sun6i dram support. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/Makefile| 6 +- arch/arm/cpu/armv7/sunxi/dram.c | 750 --- arch/arm/cpu/armv7/sunxi/dram_sun4i.c| 750

[linux-sunxi] [PATCH 6/9] sun6i: Add dram initialization code

2014-11-03 Thread Hans de Goede
Add full support for dram initialization, using a fixed clock and autodetection of the memory organization (numbers of channels, bus-width, etc.). This is based on dram_sun6i.c and dram.h from u-boot in the Allwinner A31 SDK, extended with extra initialization sequences and the autodetect

[linux-sunxi] [PATCH 1/9] sun6i: Add new p2wi controller driver

2014-11-03 Thread Hans de Goede
From: Oliver Schinagl oli...@schinagl.nl The A31 uses a new push-pull two wire interface, which features higher transfer speeds (upto 6 MHz) in theory. While the hardware can burst 8 bytes each time, this driver will only see very little use and thus is limited to single byte transmission only.

[linux-sunxi] [PATCH 0/9] sun6i: dram-init SPL support

2014-11-03 Thread Hans de Goede
Hi All, After spending a lot of time on this, I'm happy to present this patch series adding A31 dram init and SPL support, allowing one to boot Allwinner A31 boards using just u-boot for all stages of the boot :) Please review, I will add these to u-boot-sunxi/next and send a pull-req as soon as

[linux-sunxi] [PATCH 3/9] sun6i: Add clock functions needed for SPL / DRAM init

2014-11-03 Thread Hans de Goede
Add clock_init_safe and clockset_pll5 functions, as these are needed for SPL support resp. DRAM init (which is needed for SPL too). Also add some extra clock register constant defines. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/clock_sun6i.c| 77

[linux-sunxi] [PATCH 2/9] sun6i: Add basic axp221 driver

2014-11-03 Thread Hans de Goede
From: Oliver Schinagl oli...@schinagl.nl The A31 uses the AXP221 pmic for various voltages. Signed-off-by: Oliver Schinagl oli...@schinagl.nl Signed-off-by: Hans de Goede hdego...@redhat.com --- board/sunxi/board.c| 14 ++ configs/Colombus_defconfig | 1 + drivers/power/Makefile

[linux-sunxi] [PATCH 7/9] sun6i: Poke magic sram controller register to avoid cache issues

2014-11-03 Thread Hans de Goede
Without this the cache will only work in write-through mode, and as soon as it is put in write-back mode things break. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/board.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7/sunxi/board.c

[linux-sunxi] [PATCH 4/9] sun6i: Add cpucfg register definitions

2014-11-03 Thread Hans de Goede
Not used atm, for future use (e.g. PSCI). Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/include/asm/arch-sunxi/cpu.h| 5 +++ arch/arm/include/asm/arch-sunxi/cpucfg.h | 67 2 files changed, 72 insertions(+) create mode 100644

[linux-sunxi] [PATCH 8/9] sun6i: Enable SPL

2014-11-03 Thread Hans de Goede
Enable the SPL now that we've all the necessary bits in place. Signed-off-by: Hans de Goede hdego...@redhat.com --- board/sunxi/Kconfig| 1 + configs/Colombus_defconfig | 9 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig

[linux-sunxi] [PATCH 3/6] phy: Add driver to support individual USB PHYs on sun9i

2014-11-03 Thread Chen-Yu Tsai
Unlike previous Allwinner SoCs, there is no central PHY control block on the A80. Also, OTG support is completely split off into a different controller. This adds a new driver to support the regular USB PHYs. Signed-off-by: Chen-Yu Tsai w...@csie.org ---

[linux-sunxi] [PATCH 1/6] clk: sunxi: Add support for sun9i a80 usb clocks and resets

2014-11-03 Thread Chen-Yu Tsai
The USB controller/phy clocks and reset controls are in a separate address block, unlike previous SoCs where they were in the clock controller. This patch copies the original gates clk functions used for usb clocks into a separate file, and renames them to *_usb_*. Also add a per-gate parent

[linux-sunxi] [PATCH 2/6] ARM: dts: sun9i: Add usb clock nodes to a80 dtsi

2014-11-03 Thread Chen-Yu Tsai
The USB controller and phy clocks and resets have a separate address block and driver. Add the nodes to represent them. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun9i-a80.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git

[linux-sunxi] [PATCH 5/6] ARM: dts: sun9i: Add USB host controller nodes to a80 dtsi

2014-11-03 Thread Chen-Yu Tsai
The A80 has 3 EHCI/OHCI USB controllers. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun9i-a80.dtsi | 70 1 file changed, 70 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index

[linux-sunxi] [PATCH 4/6] ARM: dts: sun9i: Add usb phy nodes to a80 dtsi

2014-11-03 Thread Chen-Yu Tsai
On sun9i, there are 3 independent usb phys. Add device nodes for them. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun9i-a80.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi

Re: [linux-sunxi] [PATCH 5/9] sun4i: Rename dram files to dram_sun4i.x

2014-11-03 Thread Julian Calaby
Hi Hans, On Tue, Nov 4, 2014 at 2:34 AM, Hans de Goede hdego...@redhat.com wrote: In preparation for adding sun6i dram support. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/Makefile| 6 +- arch/arm/cpu/armv7/sunxi/dram.c | 750

Re: [linux-sunxi] [PATCH 3/6] phy: Add driver to support individual USB PHYs on sun9i

2014-11-03 Thread Priit Laes
On Tue, 2014-11-04 at 12:07 +0800, Chen-Yu Tsai wrote: Unlike previous Allwinner SoCs, there is no central PHY control block on the A80. Also, OTG support is completely split off into a different controller. This adds a new driver to support the regular USB PHYs. Signed-off-by: Chen-Yu

Re: [linux-sunxi] [PATCH 1/9] sun6i: Add new p2wi controller driver

2014-11-03 Thread Chen-Yu Tsai
Hi, On Tue, Nov 4, 2014 at 2:10 PM, Olliver Schinagl oli...@schinagl.nl wrote: Hy Wens, This is some really old work, and I'm assuming hans picked it up, as I never tested the code (didn't have hardware at the time) I believe Hans did pick it up for u-boot-sunxi, and now we're just