Thread (13 messages) 13 messages, 4 authors, 2013-08-14
STALE4687d
Revisions (3)
  1. v1 [diff vs current]
  2. v1 current
  3. v1 [diff vs current]

[PATCH 4/5] ARM: shmobile: ape6evm: add MMCIF support

From: Sergei Shtylyov <hidden>
Date: 2013-07-30 12:59:28
Also in: linux-sh

Hello.

On 30-07-2013 13:00, Simon Horman wrote:
From: Guennadi Liakhovetski <redacted>
Add MMCIF support to the APE6EVM board in PIO mode only. Power supply is
fixed for now, eventually support for the tps80032 regulator, also
supplying both VDD and VccQ to the MMCIF slot should be added to APE6EVM.
Signed-off-by: Guennadi Liakhovetski <redacted>
Acked-by: Magnus Damm <redacted>
Signed-off-by: Simon Horman <redacted>
---
  arch/arm/mach-shmobile/board-ape6evm.c | 31 +++++++++++++++++++++++++++++++
  1 file changed, 31 insertions(+)
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c
index af6dd39..8c7529c 100644
--- a/arch/arm/mach-shmobile/board-ape6evm.c
+++ b/arch/arm/mach-shmobile/board-ape6evm.c
[...]
quoted hunk ↗ jump to hunk
@@ -54,6 +56,25 @@ static const struct smsc911x_platform_config lan9220_data = {
[...]
+/* MMCIF */
+static struct sh_mmcif_plat_data mmcif0_pdata = {
+	.caps		= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
+};
+
+static struct resource mmcif0_resources[] = {
+	DEFINE_RES_MEM_NAMED(0xee200000, 0x100, "MMCIF0"),
+	DEFINE_RES_IRQ(gic_spi(169)),
+};
+
    The above needed '__initdata' too. And I have only noticed...
  static const struct pinctrl_map ape6evm_pinctrl_map[] = {
  	/* SCIFA0 console */
  	PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a73a4",
[...]
quoted hunk ↗ jump to hunk
@@ -93,6 +119,11 @@ static void __init ape6evm_add_standard_devices(void)
  	platform_device_register_resndata(&platform_bus, "smsc911x", -1,
  					  lan9220_res, ARRAY_SIZE(lan9220_res),
  					  &lan9220_data, sizeof(lan9220_data));
+	regulator_register_always_on(1, "fixed-3.3V", fixed3v3_power_consumers,
+				     ARRAY_SIZE(fixed3v3_power_consumers), 3300000);
+	platform_device_register_resndata(&platform_bus, "sh_mmcif", 0,
+					  mmcif0_resources, ARRAY_SIZE(mmcif0_resources),
+					  &mmcif0_pdata, sizeof(mmcif0_pdata));
  }
WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help