[PATCH v2 1/3] r8a7779: Add Display Unit clock support

2013-03-15 Thread Laurent Pinchart
From: Phil Edworthy phil.edwor...@renesas.com

Signed-off-by: Phil Edworthy phil.edwor...@renesas.com
[Rename device from to rcarfb to rcar-du]
Signed-off-by: Laurent Pinchart laurent.pinchart+rene...@ideasonboard.com
---
 arch/arm/mach-shmobile/clock-r8a7779.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-shmobile/clock-r8a7779.c 
b/arch/arm/mach-shmobile/clock-r8a7779.c
index 1db3653..9ea6087 100644
--- a/arch/arm/mach-shmobile/clock-r8a7779.c
+++ b/arch/arm/mach-shmobile/clock-r8a7779.c
@@ -87,7 +87,7 @@ static struct clk div4_clks[DIV4_NR] = {
 };
 
 enum { MSTP323, MSTP322, MSTP321, MSTP320,
-   MSTP101, MSTP100,
+   MSTP103, MSTP101, MSTP100,
MSTP030,
MSTP029, MSTP028, MSTP027, MSTP026, MSTP025, MSTP024, MSTP023, MSTP022, 
MSTP021,
MSTP016, MSTP015, MSTP014,
@@ -99,6 +99,7 @@ static struct clk mstp_clks[MSTP_NR] = {
[MSTP322] = SH_CLK_MSTP32(div4_clks[DIV4_P], MSTPCR3, 22, 0), /* SDHI1 
*/
[MSTP321] = SH_CLK_MSTP32(div4_clks[DIV4_P], MSTPCR3, 21, 0), /* SDHI2 
*/
[MSTP320] = SH_CLK_MSTP32(div4_clks[DIV4_P], MSTPCR3, 20, 0), /* SDHI3 
*/
+   [MSTP103] = SH_CLK_MSTP32(div4_clks[DIV4_S], MSTPCR1,  3, 0), /* DU */
[MSTP101] = SH_CLK_MSTP32(div4_clks[DIV4_P], MSTPCR1,  1, 0), /* USB2 
*/
[MSTP100] = SH_CLK_MSTP32(div4_clks[DIV4_P], MSTPCR1,  0, 0), /* 
USB0/1 */
[MSTP030] = SH_CLK_MSTP32(div4_clks[DIV4_P], MSTPCR0, 30, 0), /* I2C0 
*/
@@ -180,6 +181,7 @@ static struct clk_lookup lookups[] = {
CLKDEV_DEV_ID(sh_mobile_sdhi.1, mstp_clks[MSTP322]), /* SDHI1 */
CLKDEV_DEV_ID(sh_mobile_sdhi.2, mstp_clks[MSTP321]), /* SDHI2 */
CLKDEV_DEV_ID(sh_mobile_sdhi.3, mstp_clks[MSTP320]), /* SDHI3 */
+   CLKDEV_DEV_ID(rcar-du.0, mstp_clks[MSTP103]), /* DU */
 };
 
 void __init r8a7779_clock_init(void)
-- 
1.8.1.5

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH v2 1/3] r8a7779: Add Display Unit clock support

2013-03-14 Thread Laurent Pinchart
From: Phil Edworthy 

Signed-off-by: Phil Edworthy 
[Rename device from to rcarfb to rcar-du]
Signed-off-by: Laurent Pinchart 
---
 arch/arm/mach-shmobile/clock-r8a7779.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-shmobile/clock-r8a7779.c 
b/arch/arm/mach-shmobile/clock-r8a7779.c
index 1db3653..9ea6087 100644
--- a/arch/arm/mach-shmobile/clock-r8a7779.c
+++ b/arch/arm/mach-shmobile/clock-r8a7779.c
@@ -87,7 +87,7 @@ static struct clk div4_clks[DIV4_NR] = {
 };

 enum { MSTP323, MSTP322, MSTP321, MSTP320,
-   MSTP101, MSTP100,
+   MSTP103, MSTP101, MSTP100,
MSTP030,
MSTP029, MSTP028, MSTP027, MSTP026, MSTP025, MSTP024, MSTP023, MSTP022, 
MSTP021,
MSTP016, MSTP015, MSTP014,
@@ -99,6 +99,7 @@ static struct clk mstp_clks[MSTP_NR] = {
[MSTP322] = SH_CLK_MSTP32(_clks[DIV4_P], MSTPCR3, 22, 0), /* SDHI1 
*/
[MSTP321] = SH_CLK_MSTP32(_clks[DIV4_P], MSTPCR3, 21, 0), /* SDHI2 
*/
[MSTP320] = SH_CLK_MSTP32(_clks[DIV4_P], MSTPCR3, 20, 0), /* SDHI3 
*/
+   [MSTP103] = SH_CLK_MSTP32(_clks[DIV4_S], MSTPCR1,  3, 0), /* DU */
[MSTP101] = SH_CLK_MSTP32(_clks[DIV4_P], MSTPCR1,  1, 0), /* USB2 
*/
[MSTP100] = SH_CLK_MSTP32(_clks[DIV4_P], MSTPCR1,  0, 0), /* 
USB0/1 */
[MSTP030] = SH_CLK_MSTP32(_clks[DIV4_P], MSTPCR0, 30, 0), /* I2C0 
*/
@@ -180,6 +181,7 @@ static struct clk_lookup lookups[] = {
CLKDEV_DEV_ID("sh_mobile_sdhi.1", _clks[MSTP322]), /* SDHI1 */
CLKDEV_DEV_ID("sh_mobile_sdhi.2", _clks[MSTP321]), /* SDHI2 */
CLKDEV_DEV_ID("sh_mobile_sdhi.3", _clks[MSTP320]), /* SDHI3 */
+   CLKDEV_DEV_ID("rcar-du.0", _clks[MSTP103]), /* DU */
 };

 void __init r8a7779_clock_init(void)
-- 
1.8.1.5