20 #include <linux/kernel.h>
26 #include <asm/sizes.h>
29 #define IOP13XX_TPMI_MMR(dev) IOP13XX_REG_ADDR32_PHYS(0x48000 + (dev << 12))
30 #define IOP13XX_TPMI_MEM(dev) IOP13XX_REG_ADDR32_PHYS(0x60000 + (dev << 13))
31 #define IOP13XX_TPMI_CTRL(dev) IOP13XX_REG_ADDR32_PHYS(0x50000 + (dev << 10))
32 #define IOP13XX_TPMI_IOP_CTRL(dev) (IOP13XX_TPMI_CTRL(dev) + 0x2000)
33 #define IOP13XX_TPMI_MMR_SIZE (SZ_4K - 1)
34 #define IOP13XX_TPMI_MEM_SIZE (255)
35 #define IOP13XX_TPMI_MEM_CTRL (SZ_1K - 1)
36 #define IOP13XX_TPMI_RESOURCE_MMR 0
37 #define IOP13XX_TPMI_RESOURCE_MEM 1
38 #define IOP13XX_TPMI_RESOURCE_CTRL 2
39 #define IOP13XX_TPMI_RESOURCE_IOP_CTRL 3
40 #define IOP13XX_TPMI_RESOURCE_IRQ 4
42 static struct resource iop13xx_tpmi_0_resources[] = {
70 static struct resource iop13xx_tpmi_1_resources[] = {
98 static struct resource iop13xx_tpmi_2_resources[] = {
126 static struct resource iop13xx_tpmi_3_resources[] = {
158 .num_resources =
ARRAY_SIZE(iop13xx_tpmi_0_resources),
159 .resource = iop13xx_tpmi_0_resources,
169 .num_resources =
ARRAY_SIZE(iop13xx_tpmi_1_resources),
170 .resource = iop13xx_tpmi_1_resources,
180 .num_resources =
ARRAY_SIZE(iop13xx_tpmi_2_resources),
181 .resource = iop13xx_tpmi_2_resources,
191 .num_resources =
ARRAY_SIZE(iop13xx_tpmi_3_resources),
192 .resource = iop13xx_tpmi_3_resources,