Kuninori Morimoto | 1 Jun 2010 04:40
Gravatar

[PATCH] ARM: mach-shmobile: ap4evb: evt2irq() update for MMCIF

This patch updates the irq numbers for MMCIF
to make use of evt2irq().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/arm/mach-shmobile/board-ap4evb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index bdc4c6b..67da737 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
 <at>  <at>  -267,12 +267,12  <at>  <at>  static struct resource sh_mmcif_resources[] = {
 	},
 	[1] = {
 		/* MMC ERR */
-		.start	= 198,
+		.start	= evt2irq(0x1ac0),
 		.flags	= IORESOURCE_IRQ,
 	},
 	[2] = {
 		/* MMC NOR */
-		.start	= 199,
+		.start	= evt2irq(0x1ae0),
 		.flags	= IORESOURCE_IRQ,
 	},
 };
--

-- 
1.7.0.4

(Continue reading)

Kuninori Morimoto | 1 Jun 2010 04:40
Gravatar

[PATCH] ARM: mach-shmobile: clock-sh7372: Add MMCIF clock

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/arm/mach-shmobile/clock-sh7372.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-shmobile/clock-sh7372.c b/arch/arm/mach-shmobile/clock-sh7372.c
index 1364072..241caea 100644
--- a/arch/arm/mach-shmobile/clock-sh7372.c
+++ b/arch/arm/mach-shmobile/clock-sh7372.c
 <at>  <at>  -246,7 +246,7  <at>  <at>  enum { MSTP001,
        MSTP106, MSTP101, MSTP100,
        MSTP223,
        MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200,
-       MSTP329, MSTP328, MSTP323, MSTP322, MSTP314, MSTP313,
+       MSTP329, MSTP328, MSTP323, MSTP322, MSTP314, MSTP313, MSTP312,
        MSTP415, MSTP410, MSTP411, MSTP406, MSTP403,
        MSTP_NR };

 <at>  <at>  -279,6 +279,7  <at>  <at>  static struct clk mstp_clks[MSTP_NR] = {
 	[MSTP322] = MSTP(&div6_clks[DIV6_SUB], SMSTPCR3, 22, 0), /* USB0 */
 	[MSTP314] = MSTP(&div4_clks[DIV4_HP], SMSTPCR3, 14, 0), /* SDHI0 */
 	[MSTP313] = MSTP(&div4_clks[DIV4_HP], SMSTPCR3, 13, 0), /* SDHI1 */
+	[MSTP312] = MSTP(&div4_clks[DIV4_HP], SMSTPCR3, 12, 0), /* MMC */
 	[MSTP415] = MSTP(&div4_clks[DIV4_HP], SMSTPCR4, 15, 0), /* SDHI2 */
 	[MSTP411] = MSTP(&div6_clks[DIV6_SUB], SMSTPCR4, 11, 0), /* IIC3 */
 	[MSTP410] = MSTP(&div6_clks[DIV6_SUB], SMSTPCR4, 10, 0), /* IIC4 */
 <at>  <at>  -363,6 +364,7  <at>  <at>  static struct clk_lookup lookups[] = {
 	CLKDEV_DEV_ID("r8a66597_udc.0", &mstp_clks[MSTP323]), /* USB0 */
 	CLKDEV_DEV_ID("sh_mobile_sdhi.0", &mstp_clks[MSTP314]), /* SDHI0 */
 	CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[MSTP313]), /* SDHI1 */
(Continue reading)

Kuninori Morimoto | 1 Jun 2010 06:31
Gravatar

[PATCH] ARM: mach-shmobile: ap4evb: update MMC/SHDI tiny document

MMC0/SDHI1 (CN7) can be selected by dip switch.
And card voltage can be selected by jumper pin.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/arm/mach-shmobile/board-ap4evb.c |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 67da737..2963a11 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
 <at>  <at>  -128,15 +128,21  <at>  <at> 
  */

 /*
- * MMC (CN7)
+ * MMC0/SDHI1 (CN7)
  *
- * J22 : 1-2: 1.8v for MMC
- *       2-3: 3.3v for MMC
- * SW1 : OFF
- * SW33: bit1: OFF
- *       bit2: ON
- *       bit3: ON
- *       bit4: X
+ * J22 : select card voltage
+ *       1-2 pin : 1.8v
+ *       2-3 pin : 3.3v
+ *
(Continue reading)

Kuninori Morimoto | 2 Jun 2010 02:24
Gravatar

[PATCH 0/3] ARM: mach-shmobile: make sure static declaration


Dear Paul

These patches make sure "static" declaration on SH_ARM each board

Kuninori Morimoto:
      ARM: mach-shmobile: make sure static declaration on ap4evb
      ARM: mach-shmobile: make sure static declaration on g4evm
      ARM: mach-shmobile: make sure static declaration on g3evm

Best regards
--
Kuninori Morimoto

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kuninori Morimoto | 2 Jun 2010 02:25
Gravatar

[PATCH 1/3] ARM: mach-shmobile: make sure static declaration on ap4evb

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/arm/mach-shmobile/board-ap4evb.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index bdc4c6b..8f42dbe 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
 <at>  <at>  -277,7 +277,7  <at>  <at>  static struct resource sh_mmcif_resources[] = {
 	},
 };

-struct sh_mmcif_plat_data sh_mmcif_plat = {
+static struct sh_mmcif_plat_data sh_mmcif_plat = {
 	.sup_pclk	= 0,
 	.ocr		= MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34,
 	.caps		= MMC_CAP_4_BIT_DATA |
 <at>  <at>  -357,7 +357,7  <at>  <at>  static struct platform_device sdhi1_device = {
 };

 /* USB1 */
-void usb1_host_port_power(int port, int power)
+static void usb1_host_port_power(int port, int power)
 {
 	if (!power) /* only power-on supported for now */
 		return;
 <at>  <at>  -492,7 +492,7  <at>  <at>  static struct clk fsiackcr_clk = {
 	.rate		= 0, /* unknown */
 };
(Continue reading)

Kuninori Morimoto | 2 Jun 2010 02:25
Gravatar

[PATCH 2/3] ARM: mach-shmobile: make sure static declaration on g4evm

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/arm/mach-shmobile/board-g4evm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-g4evm.c b/arch/arm/mach-shmobile/board-g4evm.c
index e256b7c..2c3ff6f 100644
--- a/arch/arm/mach-shmobile/board-g4evm.c
+++ b/arch/arm/mach-shmobile/board-g4evm.c
 <at>  <at>  -117,7 +117,7  <at>  <at>  static struct platform_device nor_flash_device = {
 };

 /* USBHS */
-void usb_host_port_power(int port, int power)
+static void usb_host_port_power(int port, int power)
 {
 	if (!power) /* only power-on supported for now */
 		return;
--

-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kuninori Morimoto | 2 Jun 2010 02:25
Gravatar

[PATCH 3/3] ARM: mach-shmobile: make sure static declaration on g3evm

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/arm/mach-shmobile/board-g3evm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-g3evm.c b/arch/arm/mach-shmobile/board-g3evm.c
index a8f20cb..95ccb94 100644
--- a/arch/arm/mach-shmobile/board-g3evm.c
+++ b/arch/arm/mach-shmobile/board-g3evm.c
 <at>  <at>  -100,7 +100,7  <at>  <at>  static struct platform_device nor_flash_device = {
 };

 /* USBHS */
-void usb_host_port_power(int port, int power)
+static void usb_host_port_power(int port, int power)
 {
 	if (!power) /* only power-on supported for now */
 		return;
--

-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kuninori Morimoto | 2 Jun 2010 02:27
Gravatar

[PATCH 0/4] sh: make sure static declaration


Dear Paul

These patches make sure "static" declaration on SH each board

Kuninori Morimoto:
      sh: make sure static declaration on mach-ap325rxa
      sh: make sure static declaration on mach-ecovec24
      sh: make sure static declaration on mach-migor
      sh: make sure static declaration on ms7724se

Best regards
--
Kuninori Morimoto

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kuninori Morimoto | 2 Jun 2010 02:27
Gravatar

[PATCH 1/4] sh: make sure static declaration on mach-ap325rxa

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/sh/boards/mach-ap325rxa/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c
index 57e37e2..3a170bd 100644
--- a/arch/sh/boards/mach-ap325rxa/setup.c
+++ b/arch/sh/boards/mach-ap325rxa/setup.c
 <at>  <at>  -328,7 +328,7  <at>  <at>  static struct soc_camera_platform_info camera_info = {
 	.set_capture = camera_set_capture,
 };

-struct soc_camera_link camera_link = {
+static struct soc_camera_link camera_link = {
 	.bus_id		= 0,
 	.add_device	= ap325rxa_camera_add,
 	.del_device	= ap325rxa_camera_del,
--

-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kuninori Morimoto | 2 Jun 2010 02:27
Gravatar

[PATCH 2/4] sh: make sure static declaration on mach-ecovec24

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx <at> renesas.com>
---
 arch/sh/boards/mach-ecovec24/setup.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 778eb7c..be1d114 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
 <at>  <at>  -140,7 +140,7  <at>  <at>  static struct resource sh_eth_resources[] = {
 	},
 };

-struct sh_eth_plat_data sh_eth_plat = {
+static struct sh_eth_plat_data sh_eth_plat = {
 	.phy = 0x1f, /* SMSC LAN8700 */
 	.edmac_endian = EDMAC_LITTLE_ENDIAN,
 	.ether_link_active_low = 1
 <at>  <at>  -160,7 +160,7  <at>  <at>  static struct platform_device sh_eth_device = {
 };

 /* USB0 host */
-void usb0_port_power(int port, int power)
+static void usb0_port_power(int port, int power)
 {
 	gpio_set_value(GPIO_PTB4, power);
 }
 <at>  <at>  -196,7 +196,7  <at>  <at>  static struct platform_device usb0_host_device = {
 };

(Continue reading)


Gmane