Laurent Pinchart
ea770ad2ec
sh-pfc: sh73a0: Add VCCQ MC0 regulator
...
The sh73a0 has an internal power gate on the VCCQ power supply for the
SDHI0 device that is controlled (for some strange reason) by a bit in a
PFC register. This feature should be exposed as a regulator.
As the same register is also used for pin control purposes there is no
way to achieve atomic read/write sequences with a separate regulator
driver. We thus need to implement the regulator here.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:14 +09:00
Laurent Pinchart
0c151062f3
sh-pfc: Add support for SoC-specific initialization
...
Add two optional init and exit SoC operations and call them from the
core at probe and remove time.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:13 +09:00
Magnus Damm
0ccaf5bb3f
ARM: shmobile: r8a7779 pinmux platform device cleanup
...
Use DEFINE_RES_MEM() to save a couple of lines of code.
Signed-off-by: Magnus Damm <damm@opensource.se >
[lp: Don't declare r8a7779_pfc_resources as const]
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:13 +09:00
Laurent Pinchart
3654520cfe
ARM: shmobile: r8a7790: Remove all GPIOs
...
Function GPIOs are not used anymore, and all code use the GPIO numbers
directly. Remove the GPIOs enumeration.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:12 +09:00
Laurent Pinchart
43ca9cbb29
ARM: shmobile: r8a7790: Register GPIO devices
...
Move GPIOs handling from the PFC device to separate GPIO devices.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:12 +09:00
Kuninori Morimoto
39ca228335
ARM: shmobile: r8a7778: add GPIO support
...
This patch was tested on Bock-W board
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:12 +09:00
Kuninori Morimoto
0290df2d24
sh-pfc: r8a7778: tidyup SDHI naming suffixes and sort it alphabetically
...
SDHI 1/2 are the target
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:11 +09:00
Laurent Pinchart
0eef12d732
sh-pfc: r8a7778: Fix outdated GPIO_FN comments
...
Function GPIOs have been removed, remove comments that refer to them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:11 +09:00
Laurent Pinchart
80da8e02d2
sh-pfc: r8a7740: Add bias (pull-up/down) pinconf support
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:10 +09:00
Laurent Pinchart
f92e1360b4
ARM: shmobile: r8a7740: Remove all GPIOs
...
Function GPIOs are not used anymore, and all code use the GPIO numbers
directly. Remove the GPIOs enumeration.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:10 +09:00
Laurent Pinchart
7d5684575c
sh-pfc: r8a7740: Replace GPIO_PORTx enum with GPIO port numbers
...
The PFC GPIO API implementation moved to using port numbers. Replace all
GPIO_PORTx enum usage with the corresponding port number. The GPIO_PORTx
enum values are identical to the port number on this platform.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:09 +09:00
Laurent Pinchart
d65c5ee14e
sh-pfc: r8a7740: Remove function GPIOs
...
No r8a7740 platform use the function GPIOs API. Remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:09 +09:00
Laurent Pinchart
7e454d1f26
ARM: shmobile: r8a7740: Remove HDMI function GPIOs
...
Those GPIOs have been deprecated by the pinctrl API. They are unused and
unneeded, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:08 +09:00
Laurent Pinchart
eb86857362
ARM: shmobile: r8a7740: Remove FSI function GPIOs
...
Those GPIOs have been deprecated by the pinctrl API. They are unused and
unneeded, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:08 +09:00
Laurent Pinchart
102b61e80b
ARM: shmobile: r8a7740: Remove CEU function GPIOs
...
Those GPIOs have been deprecated by the pinctrl API. They are unused and
unneeded, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:07 +09:00
Laurent Pinchart
3dad31ad2e
ARM: shmobile: r8a7740: Remove GETHER function GPIOs
...
Those GPIOs have been deprecated by the pinctrl API. They are unused and
unneeded, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:07 +09:00
Laurent Pinchart
45bfd2adab
ARM: shmobile: r8a7740: Remove BSC function GPIOs
...
Those GPIOs have been deprecated by the pinctrl API. They are unused and
unneeded, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:06 +09:00
Laurent Pinchart
1343000c34
ARM: shmobile: r8a7740: Remove INTC function GPIOs
...
Those GPIOs have been deprecated by the pinctrl API. They are unused and
unneeded, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:06 +09:00
Laurent Pinchart
ac32d7cbf0
ARM: shmobile: r8a7740: Remove SCIF function GPIOs
...
Those GPIOs have been deprecated by the pinctrl API. They are unused and
unneeded, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:17:05 +09:00
Bastian Hecht
7cdfb46ea9
ARM: shmobile: armadillo800eva: Convert SCIFA1 to pinctrl
...
We use the new pinctrl framework now.
Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com >
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-05 17:16:44 +09:00
Laurent Pinchart
0f7f51d82c
sh-pfc: r8a7740: Remove HDMI function GPIOS
...
All r8a7740 platforms now use the pinctrl API to control the HDMI pins,
the corresponding function GPIOS are unused. Remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:34 +09:00
Laurent Pinchart
592e0c3029
sh-pfc: r8a7740: Remove FSI function GPIOS
...
All r8a7740 platforms now use the pinctrl API to control the FSI pins,
the corresponding function GPIOS are unused. Remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:34 +09:00
Laurent Pinchart
75c57d2c90
sh-pfc: r8a7740: Remove CEU function GPIOS
...
All r8a7740 platforms now use the pinctrl API to control the CEU pins,
the corresponding function GPIOS are unused. Remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:33 +09:00
Laurent Pinchart
3456e2543e
sh-pfc: r8a7740: Remove GETHER function GPIOS
...
All r8a7740 platforms now use the pinctrl API to control the GETHER
pins, the corresponding function GPIOS are unused. Remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:33 +09:00
Laurent Pinchart
0be4e53913
sh-pfc: r8a7740: Remove BSC function GPIOS
...
All r8a7740 platforms now use the pinctrl API to control the BSC pins,
the corresponding function GPIOS are unused. Remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:32 +09:00
Laurent Pinchart
78c3e9b2a1
sh-pfc: r8a7740: Remove INTC function GPIOS
...
All r8a7740 platforms now use the pinctrl API to control the INTC pins,
the corresponding function GPIOS are unused. Remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:32 +09:00
Laurent Pinchart
aae36d71a3
sh-pfc: r8a7740: Remove SCIF function GPIOS
...
All r8a7740 platforms now use the pinctrl API to control the SCIF pins,
the corresponding function GPIOS are unused. Remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:31 +09:00
Laurent Pinchart
8be14c78e7
ARM: shmobile: bonito: Don't configure LCDC routing manually
...
LCDC routing is configured automatically in the PFC driver, don't
configure it manually in board code.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:31 +09:00
Laurent Pinchart
055b246946
ARM: shmobile: bonito: Register pinctrl mapping for BSC
...
Replace the GPIO-based BSC pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:30 +09:00
Laurent Pinchart
f569b10f66
ARM: shmobile: bonito: Register pinctrl mapping for INTC
...
Replace the GPIO-based INTC pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:30 +09:00
Laurent Pinchart
7cded0c90b
ARM: shmobile: bonito: Register pinctrl mapping for SCIF
...
Replace the GPIO-based SCIF pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:29 +09:00
Laurent Pinchart
6c887d2c09
ARM: shmobile: bonito: Remove empty core devices array
...
The core devices array is empty, passing it to platform_add_devices() is
a no-op. Remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:29 +09:00
Laurent Pinchart
f5c02edc51
ARM: shmobile: armadillo800eva: Replace GPIO_PORTx with GPIO port numbers
...
The PFC GPIO API implementation moved to using port numbers. Replace all
GPIO_PORTx enum usage with the corresponding port number. The GPIO_PORTx
enum values are identical to the port number on this platform.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:29 +09:00
Laurent Pinchart
1b5961c31d
ARM: shmobile: armadillo800eva: Don't configure LCDC routing manually
...
LCDC routing is configured automatically in the PFC driver, don't
configure it manually in board code.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:28 +09:00
Laurent Pinchart
f1bb4ab084
ARM: shmobile: armadillo800eva: Register pinctrl mapping for HDMI
...
Replace the GPIO-based HDMI pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:28 +09:00
Laurent Pinchart
fed8976e39
ARM: shmobile: armadillo800eva: Register pinctrl mapping for FSI
...
Replace the GPIO-based FSI pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:27 +09:00
Laurent Pinchart
babde827f2
ARM: shmobile: armadillo800eva: Register pinctrl mapping for CEU0
...
Replace the GPIO-based CEU0 pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:27 +09:00
Laurent Pinchart
613285ce72
ARM: shmobile: armadillo800eva: Register pinctrl mapping for GETHER
...
Replace the GPIO-based GETHER pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:26 +09:00
Laurent Pinchart
89ae7b5bbd
ARM: shmobile: armadillo800eva: Register pinctrl mapping for INTC
...
Replace the GPIO-based INTC pinmux configuration by a pinctrl mapping.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:26 +09:00
Laurent Pinchart
b79839024f
sh-pfc: r8a7740: Hardcode the LCDC0 output
...
The r8a7740 has two LCDC units and two sets of LCDC output signals. By
default LCDC0 is routed to the LCD0 signals, and LCDC1 to the LCD1
signals. However, LCDC1 can be routed to the LCD0 signals by setting bit
MSEL6 in MSEL3CR (the LCD0 signals are further pinmuxed the usual way).
This could be configured by duplicating the LCD0 pin groups for LCDC1.
However, this would unnecessarily complicate the LCD pin groups, as no
r8a7740 board supported in mainline use such a configuration. Hardcode
the MSEL3CR MSEL6 bit to 0 for now.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:25 +09:00
Laurent Pinchart
a37d60659f
sh-pfc: r8a7740: Add HDMI pin groups and functions
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:25 +09:00
Laurent Pinchart
909dd95f13
sh-pfc: r8a7740: Add FSI pin groups and functions
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:24 +09:00
Laurent Pinchart
0ec939bd75
sh-pfc: r8a7740: Add CEU pin groups and functions
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:24 +09:00
Laurent Pinchart
bae11d30d0
sh-pfc: r8a7740: Add GETHER pin groups and functions
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:23 +09:00
Laurent Pinchart
b7099c498b
sh-pfc: r8a7740: Add BSC pin groups and functions
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:23 +09:00
Laurent Pinchart
d031696e02
sh-pfc: r8a7740: Declare missing INTC function
...
When adding the INTC pin groups the INTC function hasn't been added to
the functions list. Fix it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:22 +09:00
Laurent Pinchart
cdd2c76935
sh-pfc: r8a7740: Add SCIF pin groups and functions
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:22 +09:00
Laurent Pinchart
7cacd75559
sh-pfc: sh7372: Add bias (pull-up/down) pinconf support
...
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:21 +09:00
Laurent Pinchart
0d0c8e3669
ARM: shmobile: sh7372: Remove all GPIOs
...
Function GPIOs are not used anymore, and all code use the GPIO numbers
directly. Remove the GPIOs enumeration.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:21 +09:00
Laurent Pinchart
15dba8a454
sh-pfc: sh7372: Remove function GPIOs
...
No sh7372 platform use the function GPIOs API. Remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2013-06-04 21:04:21 +09:00