pinctrl: sirf: enable the driver support new SiRFmarco SoC
PATCH 6/6 pinctrl: sirf: enable the driver support new SiRFmarco SoC
From: Barry Song <[email protected]>
The driver supports old up SiRFprimaII SoCs, this patch makes it support the new SiRFmarco as well.
SiRFmarco, as a SMP SoC, adds new SIRFSOC_GPIO_PAD_EN_CLR registers, to disable GPIO pad, we should write 1 to the corresponding bit in the new CLEAR register instead of writing 0 to SIRFSOC_GPIO_PAD_EN.
--- drivers/pinctrl/Kconfig | 4 +- drivers/pinctrl/pinctrl-sirf.c | 48 ++++++++++++++++++++++++++++++--------- 2 files changed, 39 insertions(+), 13 deletions(-)
drivers/pinctrl/Kconfig +2 -2
@@ -111,8 +111,8 @@ config PINCTRL_SINGLE This selects the device tree based generic pinctrl driver. config PINCTRL_SIRF - bool "CSR SiRFprimaII pin controller driver" - depends on ARCH_PRIMA2 + bool "CSR SiRFprimaII/SiRFmarco pin controller driver" + depends on ARCH_SIRF select PINMUX config PINCTRL_TEGRA
drivers/pinctrl/pinctrl-sirf.c +37 -11
116 lines not on this page · raw message
Signature · 6 lines
1.7.0.4 Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
PATCH 6/6 pinctrl: sirf: enable the driver support new SiRFmarco SoC
Quoted 9 lines · Barry Song
From: Barry Song <[email protected]>
The driver supports old up SiRFprimaII SoCs, this patch makes it support the new SiRFmarco as well.
SiRFmarco, as a SMP SoC, adds newSIRFSOC_GPIO_PAD_EN_CLRregisters, to disable GPIO pad, we should write 1 to the corresponding bit in the new CLEAR register instead of writing 0 toSIRFSOC_GPIO_PAD_EN.Signed-off-by Barry Song <[email protected]>
This doesn't apply to my tree, you must have some other changes that are not included in the patch set...
Can you pls try to generate and test the patch against the pinctrl tree?
I might apply it as per the "new driver" rule if I can convince myself that it doesn't destabilize the current driver.
Yours,
Linus Walleij
PATCH 6/6 pinctrl: sirf: enable the driver support new SiRFmarco SoC
Hi linus,
thanks very much!
2012/9/28 Linus Walleij <[email protected]>:
Quoted 12 lines · Barry Song
Quoted 10 lines
From: Barry Song <[email protected]>
The driver supports old up SiRFprimaII SoCs, this patch makes it support the new SiRFmarco as well.
SiRFmarco, as a SMP SoC, adds newSIRFSOC_GPIO_PAD_EN_CLRregisters, to disable GPIO pad, we should write 1 to the corresponding bit in the new CLEAR register instead of writing 0 toSIRFSOC_GPIO_PAD_EN.Signed-off-by Barry Song <[email protected]>
Quoted 7 lines
This doesn't apply to my tree, you must have some other changes that are not included in the patch set...
Can you pls try to generate and test the patch against the pinctrl tree?
I might apply it as per the "new driver" rule if I can convince myself that it doesn't destabilize the current driver.
this one actually depends on:
http://git.kernel.org/?p=linux/kernel/git/arm/arm-soc.git;a=commitdiff;h=056876f6c73406c06d530d16d020177f5ec4a0bd
which was applied to arm soc tree.
the only conflict comes from:
static const struct of_device_id pinmux_ids[] __devinitconst = {
{ .compatible = "sirf,prima2-pinctrl" },
+ { .compatible = "sirf,marco-pinctrl" },
{}};
as commit 056876f6c73406c0 renamed the old
static const struct of_device_id pinmux_ids[] __devinitconst = {
{ .compatible = "sirf,prima2-gpio-pinmux" }, {}
};
to
static const struct of_device_id pinmux_ids[] __devinitconst = {
{ .compatible = "sirf,sirf,prima2-pinctrl" }, {}
};
so i think the best way is we hold on this patch for the moment, and wait for 3.7-rc1.
all other 5 are critical fixes and have no merge conflict with arm-soc tree as i have tried.
Quoted 2 lines
Yours,
Linus Walleij
Thanks
barry
PATCH 6/6 pinctrl: sirf: enable the driver support new SiRFmarco SoC
2012/9/28 Barry Song <[email protected]>:
Quoted 47 lines
Hi linus,
thanks very much!2012/9/28 Linus Walleij <[email protected]>:
Quoted 12 lines · Barry Song
Quoted 10 lines
From: Barry Song <[email protected]>
The driver supports old up SiRFprimaII SoCs, this patch makes it support the new SiRFmarco as well.
SiRFmarco, as a SMP SoC, adds newSIRFSOC_GPIO_PAD_EN_CLRregisters, to disable GPIO pad, we should write 1 to the corresponding bit in the new CLEAR register instead of writing 0 toSIRFSOC_GPIO_PAD_EN.Signed-off-by Barry Song <[email protected]>Quoted 7 lines
This doesn't apply to my tree, you must have some other changes that are not included in the patch set...
Can you pls try to generate and test the patch against the pinctrl tree?
I might apply it as per the "new driver" rule if I can convince myself that it doesn't destabilize the current driver.
this one actually depends on:
http://git.kernel.org/?p=linux/kernel/git/arm/arm-soc.git;a=commitdiff;h=056876f6c73406c06d530d16d020177f5ec4a0bd
which was applied to arm soc tree.the only conflict comes from:
static const structof_device_idpinmux_ids[]__devinitconst= {
{ .compatible = "sirf,prima2-pinctrl" },
+ { .compatible = "sirf,marco-pinctrl" },{}};
as commit
056876f6c73406c0renamed the old
static const structof_device_idpinmux_ids[]__devinitconst= {
{ .compatible = "sirf,prima2-gpio-pinmux" }, {}
};
to
static const structof_device_idpinmux_ids[]__devinitconst= {
{ .compatible = "sirf,sirf,prima2-pinctrl" }, {}
};
Quoted 4 lines
so i think the best way is we hold on this patch for the moment, and wait for 3.7-rc1.
all other 5 are critical fixes and have no merge conflict with arm-soc tree as i have tried.
Hi Linus,
this one can be applied now. would you apply? as i have tried, now it can be applied directly againest 3.7-rc3:
barry at barry-VirtualBox:~/development/linux-2.6$ git log commit 5e0ca7b04ab1a5e4ca778045fdc6b97c1bd2ea3f
Author: Barry Song <[email protected]> Date: Thu Sep 27 17:56:30 2012 +0800
pinctrl: sirf: enable the driver support new SiRFmarco SoC
The driver supports old up SiRFprimaII SoCs, this patch makes it support the new SiRFmarco as well.
SiRFmarco, as a SMP SoC, adds new SIRFSOC_GPIO_PAD_EN_CLR registers, to disable GPIO pad, we should write 1 to the corresponding bit in the new CLEAR register instead of writing 0 to SIRFSOC_GPIO_PAD_EN.
commit 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64
Author: Linus Torvalds <[email protected]> Date: Sun Oct 28 12:24:48 2012 -0700
Linux 3.7-rc3
commit 5a5210c6adaddbed823162eb76dfdbac72bdb802
Merge: 8e99165 8bc5e4e
Author: Linus Torvalds <[email protected]>
Date: Sun Oct 28 11:14:52 2012 -0700
Quoted 3 lines
Quoted 3 lines
Yours,
Linus Walleij
-barry
PATCH 6/6 pinctrl: sirf: enable the driver support new SiRFmarco SoC
Quoted 3 lines · Barry Song
Hi Linus,
this one can be applied now. would you apply? as i have tried, now it can be applied directly againest 3.7-rc3:
Yes works like a charm, patch applied!
Thanks Barry,
Linus Walleij