Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: Add I2C platform data to sh7722

Add platform data for the SuperH Mobile I2C block to sh7722.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Magnus Damm and committed by
Paul Mundt
ef1b2327 3c803a9a

+21
+21
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
··· 39 39 .resource = usbf_resources, 40 40 }; 41 41 42 + static struct resource iic_resources[] = { 43 + [0] = { 44 + .name = "IIC", 45 + .start = 0x04470000, 46 + .end = 0x04470017, 47 + .flags = IORESOURCE_MEM, 48 + }, 49 + [1] = { 50 + .start = 96, 51 + .end = 99, 52 + .flags = IORESOURCE_IRQ, 53 + }, 54 + }; 55 + 56 + static struct platform_device iic_device = { 57 + .name = "i2c-sh_mobile", 58 + .num_resources = ARRAY_SIZE(iic_resources), 59 + .resource = iic_resources, 60 + }; 61 + 42 62 static struct plat_sci_port sci_platform_data[] = { 43 63 { 44 64 .mapbase = 0xffe00000, ··· 93 73 94 74 static struct platform_device *sh7722_devices[] __initdata = { 95 75 &usbf_device, 76 + &iic_device, 96 77 &sci_device, 97 78 }; 98 79