[linux-sunxi] Re: [PATCH v7 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-19 Thread Maxime Ripard
Hi Hans, On Tue, Feb 18, 2014 at 09:49:21PM +0100, Hans de Goede wrote: Hi, On 02/18/2014 04:37 PM, Maxime Ripard wrote: snip + + for (i = 0; i data-sg_len; i++) { + pdes[i].config = SDXC_IDMAC_DES0_CH | SDXC_IDMAC_DES0_OWN | +

[linux-sunxi] [PATCH v6 00/18] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

2014-02-19 Thread Hans de Goede
Hi all, Here is v6 of my patchset for adding ahci-sunxi support. This has been tested with Allwinner A10, Allwinner A20 and Freeware imx6x SoCs, including suspend / resume. Note that since my last revision the ahci_imx driver has also grown imx53 sata support, it would be good if some-one could

[linux-sunxi] [PATCH v6 03/18] ahci-platform: Pass ahci_host_priv ptr to ahci_platform_data init method

2014-02-19 Thread Hans de Goede
Some ahci_platform_data-init methods need access to the ahci_host_priv data. When calling ahci_platform_data-init the ata_host has not been allocated yet, so access to ahci_host_priv through the dev argument is not possible. Signed-off-by: Hans de Goede hdego...@redhat.com ---

[linux-sunxi] [PATCH v6 02/18] libahci: Move ahci_host_priv declaration to include/linux/ahci.h

2014-02-19 Thread Hans de Goede
With the ahci-platform.c changes later in this patch-set, some arch/arm/mach-foo/*.c sata drivers need access to ahci_host_priv, so move its declaration outside of drivers/ata. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/ata/ahci.h | 20 +---

[linux-sunxi] [PATCH v6 01/18] libahci: Allow drivers to override start_engine

2014-02-19 Thread Hans de Goede
Allwinner A10 and A20 ARM SoCs have an AHCI sata controller which needs a special register to be poked before starting the DMA engine. This register gets reset on an ahci_stop_engine call, so there is no other place then ahci_start_engine where this poking can be done. This commit allows drivers

[linux-sunxi] [PATCH v6 05/18] ahci-platform: Add support for an optional regulator for sata-target power

2014-02-19 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- .../devicetree/bindings/ata/ahci-platform.txt | 1 + drivers/ata/ahci_platform.c| 35 -- include/linux/ahci.h | 2 ++ 3 files changed, 36 insertions(+), 2

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

2014-02-19 Thread Hans de Goede
The allwinner-sun4i AHCI controller needs 2 clocks to be enabled and the imx AHCI controller needs 3 clocks to be enabled. Signed-off-by: Hans de Goede hdego...@redhat.com --- .../devicetree/bindings/ata/ahci-platform.txt | 1 + drivers/ata/ahci_platform.c| 97

[linux-sunxi] [PATCH v6 07/18] ahci-platform: Library-ise ahci_probe functionality

2014-02-19 Thread Hans de Goede
ahci_probe consists of 3 steps: 1) Get resources (get mmio, clks, regulator) 2) Enable resources, handled by ahci_platform_enable_resouces 3) The more or less standard ahci-host controller init sequence This commit refactors step 1 and 3 into separate functions, so the platform drivers for AHCI

[linux-sunxi] [PATCH v6 09/18] ARM: sunxi: Add support for Allwinner SUNXi SoCs sata to ahci_platform

2014-02-19 Thread Hans de Goede
From: Olliver Schinagl oli...@schinagl.nl This patch adds support for the ahci sata controler found on Allwinner A10 and A20 SoCs to the ahci_platform driver. Orignally written by Olliver Schinagl using the approach of having a platform device which probe method creates a new child platform

[linux-sunxi] [PATCH v6 13/18] ata: ahci_platform: Manage SATA PHY

2014-02-19 Thread Hans de Goede
From: Roger Quadros rog...@ti.com Some platforms have a PHY hooked up to the SATA controller. The PHY needs to be initialized and powered up for SATA to work. We do that using the PHY framework. CC: Balaji T K balaj...@ti.com Signed-off-by: Roger Quadros rog...@ti.com Signed-off-by: Hans de

[linux-sunxi] [PATCH v6 11/18] ata: ahci_platform: Add DT compatible for Synopsis DWC AHCI controller

2014-02-19 Thread Hans de Goede
From: Roger Quadros rog...@ti.com Add compatible string snps,dwc-ahci, which should be used for Synopsis Designware SATA cores. e.g. on TI OMAP5 and DRA7 platforms. Signed-off-by: Roger Quadros rog...@ti.com Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Hans de

[linux-sunxi] [PATCH v6 15/18] ata: ahci_platform: runtime resume the device before use

2014-02-19 Thread Hans de Goede
From: Roger Quadros rog...@ti.com On OMAP platforms the device needs to be runtime resumed before it can be accessed. The OMAP HWMOD framework takes care of enabling the module and its resources based on the device's runtime PM state. In this patch we runtime resume during .probe() and runtime

[linux-sunxi] [PATCH v6 14/18] ata: ahci_platform: Add 'struct device' argument to ahci_platform_put_resources()

2014-02-19 Thread Hans de Goede
From: Roger Quadros rog...@ti.com There is no easy way to access 'struct device' from 'struct ahci_host_priv' so add an explicit argument for 'struct device'. We will need it to call Runtime PM APIs. Signed-off-by: Roger Quadros rog...@ti.com Signed-off-by: Hans de Goede hdego...@redhat.com ---

[linux-sunxi] [PATCH v6 10/18] ahci-imx: Port to library-ised ahci_platform

2014-02-19 Thread Hans de Goede
This avoids the ugliness of creating a nested platform device from probe. While moving it around anyways, move the mk6q phy init code from probe to imx_sata_enable, as the phy needs to be re-initialized on resume too, otherwise the drive won't be recognized after resume. Tested on a wandboard

[linux-sunxi] [PATCH v6 12/18] ata: ahci_platform: Update DT compatible list

2014-02-19 Thread Hans de Goede
From: Roger Quadros rog...@ti.com The ahci_platform driver supports snps,dwc-ahci. Add this to the DT binding information. Signed-off-by: Roger Quadros rog...@ti.com Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Hans de Goede hdego...@redhat.com ---

[linux-sunxi] [PATCH v6 17/18] ARM: sun4i: dt: Add ahci / sata support

2014-02-19 Thread Hans de Goede
From: Oliver Schinagl oli...@schinagl.nl This patch adds sunxi sata support to A10 boards that have such a connector. Some boards also feature a regulator via a GPIO and support for this is also added. Signed-off-by: Olliver Schinagl oli...@schinagl.nl Signed-off-by: Hans de Goede

[linux-sunxi] [PATCH v6 16/18] ARM: sun4i: dt: Remove grouping + simple-bus compatible for regulators

2014-02-19 Thread Hans de Goede
According to Documentation/devicetree/bindings/regulator/regulator.txt regulator nodes should not be placed under 'simple-bus'. Mark Rutland also explains about it at: http://www.spinics.net/lists/linux-usb/msg101497.html Signed-off-by: Hans de Goede hdego...@redhat.com ---

Re: [linux-sunxi] Purchasing AllWinner chips

2014-02-19 Thread Luc Verhaegen
On Tue, Feb 18, 2014 at 03:35:13PM -0500, jonsm...@gmail.com wrote: On Tue, Feb 18, 2014 at 3:09 PM, Andre Renaud an...@bluewatersys.com wrote: Hi, Does anyone know of a reliable supplier who sells the AllWinner A20 chips? I was hoping to find them on digikey, mouser or avnet, but it

[linux-sunxi] Re: [PATCH v7 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-19 Thread Hans de Goede
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 02/19/2014 10:46 AM, Maxime Ripard wrote: Hi Hans, On Tue, Feb 18, 2014 at 09:49:21PM +0100, Hans de Goede wrote: Hi, On 02/18/2014 04:37 PM, Maxime Ripard wrote: snip + +for (i = 0; i data-sg_len; i++) { +

Re: [linux-sunxi] New board: Merrii M2 (A20)

2014-02-19 Thread Luc Verhaegen
On Fri, Feb 14, 2014 at 10:00:39AM -0800, Marcos Cruz wrote: Hi, This is a digital signage board based on A20 SoC, here the website: http://www.merrii.com/en/detail.asp?id=157 I managed to modify and install the Cubian distribution to function on it but I'm having problems

Re: [linux-sunxi] Kernel 3.4.79 with initramfs (initrd) doesn't recognize/boot SD card

2014-02-19 Thread Luc Verhaegen
On Sun, Feb 16, 2014 at 04:06:07AM +0200, Siarhei Siamashka wrote: On Fri, 14 Feb 2014 17:05:32 +0200 Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Fri, 14 Feb 2014 01:54:25 -0800 (PST) dudo dgoru...@gmail.com wrote: Hi there. After compiling latest version of 3.4.79

Re: [linux-sunxi] [PATCH v6 07/18] ahci-platform: Library-ise ahci_probe functionality

2014-02-19 Thread Priit Laes
Ühel kenal päeval, K, 19.02.2014 kell 13:01, kirjutas Hans de Goede: ahci_probe consists of 3 steps: 1) Get resources (get mmio, clks, regulator) 2) Enable resources, handled by ahci_platform_enable_resouces 3) The more or less standard ahci-host controller init sequence ... diff --git

Re: [linux-sunxi] [PATCH v6 09/18] ARM: sunxi: Add support for Allwinner SUNXi SoCs sata to ahci_platform

2014-02-19 Thread Priit Laes
Ühel kenal päeval, K, 19.02.2014 kell 13:01, kirjutas Hans de Goede: From: Olliver Schinagl oli...@schinagl.nl This patch adds support for the ahci sata controler found on Allwinner A10 and A20 SoCs to the ahci_platform driver. Orignally written by Olliver Schinagl using the approach of

Re: [linux-sunxi] i2s audio codec support for sun7i

2014-02-19 Thread Code Kipper
Hi Puneet, Can you see if there are any objects/kernel modules in your sound/soc/sunxi/i2s directory?, it looks like that is a description that needs updating as there doesn't seem to be any platform checks in the KConfig. There is also no mention of i2s any of the sunxi def configs. So if you've

[linux-sunxi] Re: [PATCH v6 01/18] libahci: Allow drivers to override start_engine

2014-02-19 Thread Tejun Heo
Hello, On Wed, Feb 19, 2014 at 01:01:43PM +0100, Hans de Goede wrote: diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 2289efd..2c04211 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -323,6 +323,8 @@ struct ahci_host_priv { u32 em_msg_type;

[linux-sunxi] Re: [PATCH v6 05/18] ahci-platform: Add support for an optional regulator for sata-target power

2014-02-19 Thread Tejun Heo
On Wed, Feb 19, 2014 at 01:01:47PM +0100, Hans de Goede wrote: @@ -268,6 +281,9 @@ pdata_exit: pdata-exit(dev); disable_unprepare_clk: ahci_disable_clks(hpriv); +disable_regulator: + if (hpriv-target_pwr) + regulator_disable(hpriv-target_pwr); The same

[linux-sunxi] Re: [PATCH v6 06/18] ahci-platform: Add enable_ / disable_resources helper functions

2014-02-19 Thread Tejun Heo
On Wed, Feb 19, 2014 at 01:01:48PM +0100, Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/ata/ahci_platform.c | 83 --- include/linux/ahci_platform.h | 2 ++ 2 files changed, 48 insertions(+), 37 deletions(-)

[linux-sunxi] Re: [PATCH v6 07/18] ahci-platform: Library-ise ahci_probe functionality

2014-02-19 Thread Tejun Heo
On Wed, Feb 19, 2014 at 01:01:49PM +0100, Hans de Goede wrote: ahci_probe consists of 3 steps: 1) Get resources (get mmio, clks, regulator) 2) Enable resources, handled by ahci_platform_enable_resouces 3) The more or less standard ahci-host controller init sequence This commit refactors

[linux-sunxi] Re: [PATCH v6 00/18] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

2014-02-19 Thread Tejun Heo
Hello, On Wed, Feb 19, 2014 at 01:01:42PM +0100, Hans de Goede wrote: Here is v6 of my patchset for adding ahci-sunxi support. This has been tested with Allwinner A10, Allwinner A20 and Freeware imx6x SoCs, including suspend / resume. Note that since my last revision the ahci_imx driver has

Re: [linux-sunxi] Purchasing AllWinner chips

2014-02-19 Thread Luc Verhaegen
On Wed, Feb 19, 2014 at 09:11:52AM -0500, jonsm...@gmail.com wrote: On Wed, Feb 19, 2014 at 7:13 AM, Luc Verhaegen l...@skynet.be wrote: On Tue, Feb 18, 2014 at 03:35:13PM -0500, jonsm...@gmail.com wrote: On Tue, Feb 18, 2014 at 3:09 PM, Andre Renaud an...@bluewatersys.com wrote: Hi,

Re: [linux-sunxi] Purchasing AllWinner chips

2014-02-19 Thread jonsm...@gmail.com
On Wed, Feb 19, 2014 at 10:10 AM, Luc Verhaegen l...@skynet.be wrote: On Wed, Feb 19, 2014 at 09:11:52AM -0500, jonsm...@gmail.com wrote: On Wed, Feb 19, 2014 at 7:13 AM, Luc Verhaegen l...@skynet.be wrote: On Tue, Feb 18, 2014 at 03:35:13PM -0500, jonsm...@gmail.com wrote: On Tue, Feb 18,

[linux-sunxi] Re: [PATCH v6 00/18] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

2014-02-19 Thread Hans de Goede
Hi, On 02/19/2014 04:02 PM, Tejun Heo wrote: Hello, On Wed, Feb 19, 2014 at 01:01:42PM +0100, Hans de Goede wrote: Here is v6 of my patchset for adding ahci-sunxi support. This has been tested with Allwinner A10, Allwinner A20 and Freeware imx6x SoCs, including suspend / resume. Note that

[linux-sunxi] Re: [PATCH v6 00/18] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

2014-02-19 Thread Tejun Heo
Hello, Hans. On Wed, Feb 19, 2014 at 04:26:43PM +0100, Hans de Goede wrote: The devres usage are really 2 different issues: 1) There is the issue that we're getting clocks by index (this is by design as clk-names are not generic), but there is no devm_get_clk_by_index (or some such), this

[linux-sunxi] Re: [PATCH v6 00/18] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

2014-02-19 Thread Hans de Goede
Hi, On 02/19/2014 05:25 PM, Tejun Heo wrote: Hello, Hans. On Wed, Feb 19, 2014 at 04:26:43PM +0100, Hans de Goede wrote: The devres usage are really 2 different issues: 1) There is the issue that we're getting clocks by index (this is by design as clk-names are not generic), but there

[linux-sunxi] Re: [PATCH v6 00/18] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

2014-02-19 Thread Robert Nelson
driver has also grown imx53 sata support, it would be good if some-one could test that with this series. basic file system tests on an imx53-qsb look fine with sata changes.. Using v3.14-rc3 + 20140219 (next) + shawn.guo's imx for-next branch which wasn't in today next tree.. debian@arm

[linux-sunxi] Re: [PATCH v6 00/18] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

2014-02-19 Thread Tejun Heo
On Wed, Feb 19, 2014 at 06:18:09PM +0100, Hans de Goede wrote: Most of the resources are already devres managed (I use devm functions to get them), the problem is not in freeing our reference to the resources, the problem is that we've sequences like this: devm_get_foo enable_foo

[linux-sunxi] [PATCH 3.4] sunxi: prevent mali drivers from building every time

2014-02-19 Thread Patrick Wood
This patch was suggested to prevent the mali drivers from rebuild every time the modules are built. It simply creates symlinks to sources used by both ump.ko and mali.ko so that their objects are built in separate directories; otherwise, there is a ping-pong effect between the ump.ko objects and

Re: [linux-sunxi] i2s audio codec support for sun7i

2014-02-19 Thread Puneet B
Hi CodeKipper, ls sound/soc/sunxi/i2s built-in.o Makefile modules.order sndi2s.h sunxi-i2sdma.c sunxi-i2s.h sunxi-sndi2s.h Kconfig modules.builtin sndi2s.c sunxi-i2s.c sunxi-i2sdma.h sunxi-sndi2s.c in menuconfig if i select ARCH_SUN7i then there is no option

[linux-sunxi] how to flash android in NAND without phonixsuite ..

2014-02-19 Thread Puneet B
Hi all, I am using A20 humming bird board. i want to boot android from NAND. i booted android from sd card successfully. i want to know boot0 and boot1 , is it common for all A20 board. and to which sector i need to flash this. Regards Punith -- You received this message because you are

Re: [linux-sunxi] i2s audio codec support for sun7i

2014-02-19 Thread Code Kipper
Hi Puneet, I'm not sure if I2S is currently supported on the sun7i. Looking at sound/soc/Kconfig I see this: if SOUND_SUNXI source sound/soc/sunxi/Kconfig source sound/soc/sunxi/hdmiaudio/Kconfig source sound/soc/sunxi/spdif/Kconfig # i2s needs various adjustments for sun7i if ARCH_SUN4I ||

Re: [linux-sunxi] i2s audio codec support for sun7i

2014-02-19 Thread Code Kipper
Hi Puneet, ignore what I said it was my spdif changes on my branch that broke the build. I've now switched to the stage/sunxi branch, added this change diff --git a/sound/soc/Kconfig b/sound/soc/Kconfig index adafead..2334cab 100644 --- a/sound/soc/Kconfig +++ b/sound/soc/Kconfig @@ -60,7 +60,7 @@