* [RFC][PATCH 4/4] ARM: shmobile: bockw: add pinctrl support
@ 2013-04-09 5:34 Kuninori Morimoto
2013-04-09 14:21 ` Laurent Pinchart
0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2013-04-09 5:34 UTC (permalink / raw)
To: linux-sh
SCIF0 support as 1st step
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
arch/arm/mach-shmobile/board-bockw.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 38e5e50..dac4365 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <linux/pinctrl/machine.h>
#include <linux/platform_device.h>
#include <linux/smsc911x.h>
#include <mach/common.h>
@@ -37,6 +38,14 @@ static struct resource smsc911x_resources[] = {
DEFINE_RES_IRQ(irq_pin(0)), /* IRQ 0 */
};
+static const struct pinctrl_map bockw_pinctrl_map[] = {
+ /* SCIF0 */
+ PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
+ "scif0_data_a", "scif0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
+ "scif0_ctrl", "scif0"),
+};
+
#define IRQ0MR 0x30
static void __init bockw_init(void)
{
@@ -46,6 +55,10 @@ static void __init bockw_init(void)
r8a7778_init_irq_extpin(1);
r8a7778_add_standard_devices();
+ pinctrl_register_mappings(bockw_pinctrl_map,
+ ARRAY_SIZE(bockw_pinctrl_map));
+ r8a7778_pinmux_init();
+
fpga = ioremap_nocache(0x18200000, SZ_1M);
if (fpga) {
/*
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC][PATCH 4/4] ARM: shmobile: bockw: add pinctrl support
2013-04-09 5:34 [RFC][PATCH 4/4] ARM: shmobile: bockw: add pinctrl support Kuninori Morimoto
@ 2013-04-09 14:21 ` Laurent Pinchart
0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2013-04-09 14:21 UTC (permalink / raw)
To: linux-sh
Hi Morimoto-san,
Thank you for the patch.
On Monday 08 April 2013 22:34:07 Kuninori Morimoto wrote:
> SCIF0 support as 1st step
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> arch/arm/mach-shmobile/board-bockw.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm/mach-shmobile/board-bockw.c
> b/arch/arm/mach-shmobile/board-bockw.c index 38e5e50..dac4365 100644
> --- a/arch/arm/mach-shmobile/board-bockw.c
> +++ b/arch/arm/mach-shmobile/board-bockw.c
> @@ -18,6 +18,7 @@
> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
> USA */
>
> +#include <linux/pinctrl/machine.h>
> #include <linux/platform_device.h>
> #include <linux/smsc911x.h>
> #include <mach/common.h>
> @@ -37,6 +38,14 @@ static struct resource smsc911x_resources[] = {
> DEFINE_RES_IRQ(irq_pin(0)), /* IRQ 0 */
> };
>
> +static const struct pinctrl_map bockw_pinctrl_map[] = {
> + /* SCIF0 */
> + PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
> + "scif0_data_a", "scif0"),
> + PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
> + "scif0_ctrl", "scif0"),
> +};
> +
> #define IRQ0MR 0x30
> static void __init bockw_init(void)
> {
> @@ -46,6 +55,10 @@ static void __init bockw_init(void)
> r8a7778_init_irq_extpin(1);
> r8a7778_add_standard_devices();
>
> + pinctrl_register_mappings(bockw_pinctrl_map,
> + ARRAY_SIZE(bockw_pinctrl_map));
> + r8a7778_pinmux_init();
> +
> fpga = ioremap_nocache(0x18200000, SZ_1M);
> if (fpga) {
> /*
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-09 14:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 5:34 [RFC][PATCH 4/4] ARM: shmobile: bockw: add pinctrl support Kuninori Morimoto
2013-04-09 14:21 ` Laurent Pinchart
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.