|
@@ -224,3 +224,103 @@ static struct led_renesas_tpu_config led_renesas_tpu41_pdata = {
|
|
static struct resource tpu41_resources[] = {
|
|
static struct resource tpu41_resources[] = {
|
|
[0] = {
|
|
[0] = {
|
|
.name = "TPU41",
|
|
.name = "TPU41",
|
|
|
|
+ .start = 0xe6640050,
|
|
|
|
+ .end = 0xe6640075,
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device leds_tpu41_device = {
|
|
|
|
+ .name = "leds-renesas-tpu",
|
|
|
|
+ .id = 41,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &led_renesas_tpu41_pdata,
|
|
|
|
+ },
|
|
|
|
+ .num_resources = ARRAY_SIZE(tpu41_resources),
|
|
|
|
+ .resource = tpu41_resources,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct led_renesas_tpu_config led_renesas_tpu21_pdata = {
|
|
|
|
+ .name = "V2515",
|
|
|
|
+ .pin_gpio_fn = GPIO_FN_TPU2TO1,
|
|
|
|
+ .pin_gpio = GPIO_PORT197,
|
|
|
|
+ .channel_offset = 0x50,
|
|
|
|
+ .timer_bit = 1,
|
|
|
|
+ .max_brightness = 1000,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct resource tpu21_resources[] = {
|
|
|
|
+ [0] = {
|
|
|
|
+ .name = "TPU21",
|
|
|
|
+ .start = 0xe6620050,
|
|
|
|
+ .end = 0xe6620075,
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device leds_tpu21_device = {
|
|
|
|
+ .name = "leds-renesas-tpu",
|
|
|
|
+ .id = 21,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &led_renesas_tpu21_pdata,
|
|
|
|
+ },
|
|
|
|
+ .num_resources = ARRAY_SIZE(tpu21_resources),
|
|
|
|
+ .resource = tpu21_resources,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct led_renesas_tpu_config led_renesas_tpu30_pdata = {
|
|
|
|
+ .name = "KEYLED",
|
|
|
|
+ .pin_gpio_fn = GPIO_FN_TPU3TO0,
|
|
|
|
+ .pin_gpio = GPIO_PORT163,
|
|
|
|
+ .channel_offset = 0x10,
|
|
|
|
+ .timer_bit = 0,
|
|
|
|
+ .max_brightness = 1000,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct resource tpu30_resources[] = {
|
|
|
|
+ [0] = {
|
|
|
|
+ .name = "TPU30",
|
|
|
|
+ .start = 0xe6630010,
|
|
|
|
+ .end = 0xe6630035,
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device leds_tpu30_device = {
|
|
|
|
+ .name = "leds-renesas-tpu",
|
|
|
|
+ .id = 30,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &led_renesas_tpu30_pdata,
|
|
|
|
+ },
|
|
|
|
+ .num_resources = ARRAY_SIZE(tpu30_resources),
|
|
|
|
+ .resource = tpu30_resources,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* Fixed 1.8V regulator to be used by MMCIF */
|
|
|
|
+static struct regulator_consumer_supply fixed1v8_power_consumers[] =
|
|
|
|
+{
|
|
|
|
+ REGULATOR_SUPPLY("vmmc", "sh_mmcif.0"),
|
|
|
|
+ REGULATOR_SUPPLY("vqmmc", "sh_mmcif.0"),
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* MMCIF */
|
|
|
|
+static struct resource mmcif_resources[] = {
|
|
|
|
+ [0] = {
|
|
|
|
+ .name = "MMCIF",
|
|
|
|
+ .start = 0xe6bd0000,
|
|
|
|
+ .end = 0xe6bd00ff,
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
+ },
|
|
|
|
+ [1] = {
|
|
|
|
+ .start = gic_spi(140),
|
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
|
+ },
|
|
|
|
+ [2] = {
|
|
|
|
+ .start = gic_spi(141),
|
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct sh_mmcif_plat_data mmcif_info = {
|
|
|
|
+ .ocr = MMC_VDD_165_195,
|
|
|
|
+ .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
|