[PATCH 1/2 v4] SPI: spi-pxa2xx: Add helpers for regiseters' accessing

2014-11-25 Thread Weike Chen
There are several registers for SPI, and the registers of 'SSCR0' and 'SSCR1' are accessed frequently. This path is to introduce helper functions to simplify the accessing of 'SSCR0' and 'SSCR1'. Reviewed-by: Andy Shevchenko Acked-by: Mika Westerberg Sig

[PATCH 0/2 v4] SPI: spi-pxa2xx: Add support for Intel Quark X1000 SPI controller

2014-11-25 Thread Weike Chen
[PATCH 1/2] * Add helper functions to access registers. * Use 'switch' instead of 'if-else'. [PATCH 2/2] * Use 'switch' instead of 'if-else'. * Add comments for the 'dds'&'clk_div' caculation. * A couple of minor fixes. Weike Chen

[PATCH 2/2 v4] SPI: spi-pxa2xx: SPI support for Intel Quark X1000

2014-11-25 Thread Weike Chen
and 'DDS_RATE'. This patch is to enable the SPI for Intel Quark X1000. This piece of work is derived from Dan O'Donovan's initial work for Intel Quark X1000 SPI enabling. Reviewed-by: Andy Shevchenko Acked-by: Mika Westerberg Signed-off-by: Weike Chen --- drivers/spi/spi

[PATCH 2/2 v3] SPI: spi-pxa2xx: SPI support for Intel Quark X1000

2014-10-08 Thread Weike Chen
and 'DDS_RATE'. This patch is to enable the SPI for Intel Quark X1000. This piece of work is derived from Dan O'Donovan's initial work for Intel Quark X1000 SPI enabling. Reviewed-by: Andy Shevchenko Acked-by: Mika Westerberg Signed-off-by: Weike Chen --- drivers/spi/spi

[PATCH 1/2 v3] SPI: spi-pxa2xx: Add helpers for regiseters' accessing

2014-10-08 Thread Weike Chen
There are several registers for SPI, and the registers of 'SSCR0' and 'SSCR1' are accessed frequently. This path is to introduce helper functions to simplify the accessing of 'SSCR0' and 'SSCR1'. Reviewed-by: Andy Shevchenko Acked-by: Mika Westerberg Sig

[PATCH 0/2 v3] SPI: spi-pxa2xx: Add support for Intel Quark X1000 SPI controller

2014-10-08 Thread Weike Chen
[PATCH 2/2] * Use 'switch' instead of 'if-else'. * Add comments for the 'dds'&'clk_div' caculation. * A couple of minor fixes. Weike Chen (2): SPI: spi-pxa2xx: Add helpers for regiseters' accessing SPI: spi-pxa2xx: SPI sup

[PATCH 2/2 v2] SPI: spi-pxa2xx: SPI support for Intel Quark X1000

2014-09-28 Thread Weike Chen
and 'DDS_RATE'. This patch is to enable the SPI for Intel Quark X1000. This piece of work is derived from Dan O'Donovan's initial work for Intel Quark X1000 SPI enabling. Signed-off-by: Weike Chen --- drivers/spi/spi-pxa2xx-pci.c |8 ++ drivers/spi/spi-pxa2xx.c | 204

[PATCH 1/2 v2] SPI: spi-pxa2xx: Add helpers for regiseters' accessing

2014-09-28 Thread Weike Chen
Introduce helper functions to access the 'SSCR0' and 'SSCR1'. Signed-off-by: Weike Chen --- drivers/spi/spi-pxa2xx.c | 108 -- 1 file changed, 85 insertions(+), 23 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/sp

[PATCH 0/2 v2] SPI: spi-pxa2xx: Add support for Intel Quark X1000 SPI controller

2014-09-28 Thread Weike Chen
H 1/2] * Add helper functions to access registers. * Use 'switch' instead of 'if-else'. [PATCH 2/2] * Use 'switch' instead of 'if-else'. * Add comments for the 'dds'&'clk_div' caculation. * A couple of minor fixes. Weike Chen (2): SPI

[PATCH] SPI: spi-pxa2xx: SPI support for Intel Quark X1000

2014-09-26 Thread Weike Chen
and 'DDS_RATE'. This patch is to enable the SPI for Intel Quark X1000. This piece of work is derived from Dan O'Donovan's initial work for Intel Quark X1000 SPI enabling. Signed-off-by: Weike Chen --- drivers/spi/spi-pxa2xx-pci.c |8 ++ drivers/spi/spi-pxa2xx.c | 251

[PATCH] SPI: spi-pxa2xx: Add support for Intel Quark X1000 SPI controller

2014-09-26 Thread Weike Chen
Hi, Intel Quark X1000 consists of two SPI controllers which can be PCI enumerated. SPI-PXA2XX PCI layer doesn't support it. Thus, we add support for Intel Quark X1000 SPI as well. Weike Chen (1): SPI: spi-pxa2xx: SPI support for Intel Quark X1000 drivers/spi/spi-pxa2xx-pci.c |

[PATCH 0/4 v5] The Designware GPIO Supporting

2014-09-17 Thread Weike Chen
se to save memory. * Improve the interrupt handler. * Move 'irq_set_handler_data' together with 'irq_set_chained_hanlder'. * Remove unncessary comments. [PATCH 2/3] * Change all 'readl'&'writel' to 'dwapb_read'&'dwapb_write'.

[PATCH 4/4 v5] GPIO: gpio-dwapb: Suspend & Resume PM enabling

2014-09-17 Thread Weike Chen
This patch enables suspend and resume mode for the power management, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 115 + 1 file changed, 115 inser

[PATCH 3/4 v5] GPIO: gpio-dwapb: Support Debounce

2014-09-17 Thread Weike Chen
This patch enables 'debounce' for the designware GPIO, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Reviewed-by: Andy Shevchenko Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 36 ++-- 1 file changed

linux-kernel@vger.kernel.org

2014-09-17 Thread Weike Chen
This patch replaces 'readl&writel' with 'dwapb_read&dwapb_write'. Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 37 +++-- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a

[PATCH 1/4 v5] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-17 Thread Weike Chen
Multifunction device which exports the designware GPIO controller. Reviewed-by: Hock Leong Kweh Signed-off-by: Weike Chen --- drivers/gpio/Kconfig |1 - drivers/gpio/gpio-dwapb.c| 224 ++ include/linux/platform_data/gpio

linux-kernel@vger.kernel.org

2014-09-15 Thread Weike Chen
This patch replaces 'readl&writel' with 'dwapb_read&dwapb_write'. Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 37 +++-- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a

[PATCH 4/4 v4] GPIO: gpio-dwapb: Suspend & Resume PM enabling

2014-09-15 Thread Weike Chen
This patch enables suspend and resume mode for the power management, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 109 + 1 file changed, 109 inser

[PATCH 3/4 v4] GPIO: gpio-dwapb: Support Debounce

2014-09-15 Thread Weike Chen
This patch enables 'debounce' for the designware GPIO, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 28 1 file changed

[PATCH 1/4 v4] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-15 Thread Weike Chen
Multifunction device which exports the designware GPIO controller. Reviewed-by: Hock Leong Kweh Signed-off-by: Weike Chen --- drivers/gpio/Kconfig |1 - drivers/gpio/gpio-dwapb.c| 226 ++ include/linux/platform_data/gpio

[PATCH 0/4 v4] The Designware GPIO Supporting

2014-09-15 Thread Weike Chen
er_data' together with 'irq_set_chained_hanlder'. * Remove unncessary comments. [PATCH 2/3] * Change all 'readl'&'writel' to 'dwapb_read'&'dwapb_write'. [PATCH 3/3] * Change the name for 'struct gpio_saved_regs' to '

[PATCH 3/4 v3] GPIO: gpio-dwapb: Support Debounce

2014-09-09 Thread Weike Chen
This patch enables 'debounce' for the designware GPIO, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 28 1 file changed

[PATCH 4/4 v3] GPIO: gpio-dwapb: Suspend & Resume PM enabling

2014-09-09 Thread Weike Chen
This patch enables suspend and resume mode for the power management, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 109 + 1 file changed, 109 inser

[PATCH 0/4 v3] The Designware GPIO Supporting

2014-09-09 Thread Weike Chen
'probe' if it is OF case to save memory. * Improve the interrupt handler. * Move 'irq_set_handler_data' together with 'irq_set_chained_hanlder'. * Remove unncessary comments. [PATCH 2/3] * Change all 'readl'&'writel' to 'dwapb_read'

linux-kernel@vger.kernel.org

2014-09-09 Thread Weike Chen
This patch replaces 'readl&writel' with 'dwapb_read&dwapb_write'. Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 37 +++-- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a

[PATCH 1/4 v3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-09 Thread Weike Chen
Multifunction device which exports the designware GPIO controller. Reviewed-by: Hock Leong Kweh Signed-off-by: Weike Chen --- drivers/gpio/Kconfig |1 - drivers/gpio/gpio-dwapb.c| 226 ++ include/linux/platform_data/gpio

[PATCH 1/3 v2] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-05 Thread Weike Chen
Multifunction device which exports the designware GPIO controller. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/Kconfig |1 - drivers/gpio/gpio-dwapb.c| 233

[PATCH 2/3 v2] GPIO: gpio-dwapb: Support Debounce

2014-09-05 Thread Weike Chen
This patch enables 'debounce' for the designware GPIO, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 62 + 1 f

[PATCH 3/3 v2] GPIO: gpio-dwapb: Suspend & Resume PM enabling

2014-09-05 Thread Weike Chen
This patch enables suspend and resume mode for the power management, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 102 +++

[PATCH 0/3 v2] The Designware GPIO Supporting

2014-09-05 Thread Weike Chen
the interrupt handler. * Move 'irq_set_handler_data' together with 'irq_set_chained_hanlder'. * Remove unncessary comments. [PATCH 2/3] * Change all 'readl'&'writel' to 'dwapb_read'&'dwapb_write'. [PATCH 3/3] * Change the name

[PATCH 3/3] GPIO: gpio-dwapb: Suspend & Resume PM enabling

2014-08-27 Thread Weike Chen
This patch enables suspend and resume mode for the power management, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 67 +++

[PATCH 2/3] GPIO: gpio-dwapb: Support Debounce

2014-08-27 Thread Weike Chen
This patch enables 'debounce' for the designware GPIO, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/gpio-dwapb.c | 42 ++ 1 f

[PATCH 1/3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-08-27 Thread Weike Chen
Multifunction device which exports the designware GPIO controller. Reviewed-by: Hock Leong Kweh Reviewed-by: Shevchenko, Andriy Signed-off-by: Weike Chen --- drivers/gpio/Kconfig |1 - drivers/gpio/gpio-dwapb.c| 187

[PATCH 0/3] The Designware GPIO Supporting

2014-08-27 Thread Weike Chen
functions. It is about reviewing the GPIO changes in gpio-dwapb, and in near future, the Quark I2C driver and the MFD driver that binds these GPIO & I2C functions will be sent subsequently. The second patch enables the gpio 'debounce' feature. And the third patch enables the power mana