12 #include <linux/kernel.h>
15 #include <linux/string.h>
16 #include <asm/addrspace.h>
19 #define PHYS_EMI_CBLOCK P4SEGADDR(0x1ec00000)
20 #define PHYS_EMI_DBLOCK P4SEGADDR(0x08000000)
21 #define PHYS_FEMI_CBLOCK P4SEGADDR(0x1f800000)
22 #define PHYS_FEMI_DBLOCK P4SEGADDR(0x00000000)
24 #define PHYS_EPBR_BLOCK P4SEGADDR(0x1de00000)
25 #define PHYS_DMAC_BLOCK P4SEGADDR(0x1fa00000)
26 #define PHYS_PBR_BLOCK P4SEGADDR(0x1fc00000)
28 static struct resource emi_resources[] = {
44 .resource = emi_resources,
47 static struct resource femi_resources[] = {
63 .resource = femi_resources,
66 static struct resource epbr_resources[] = {
68 .start = P4SEGADDR(0x1e7ffff8),
69 .end = P4SEGADDR(0x1e7ffff8 + (
sizeof(
u32) * 2) - 1),
82 .resource = epbr_resources,
85 static struct resource dmac_resource = {
94 .resource = &dmac_resource,
97 static struct resource pbr_resources[] = {
99 .start = P4SEGADDR(0x1ffffff8),
100 .end = P4SEGADDR(0x1ffffff8 + (
sizeof(
u32) * 2) - 1),
113 .resource = pbr_resources,
117 &emi_device, &femi_device, &epbr_device, &dmac_device, &pbr_device,
140 tmp = ((
u64)vcrh << 32) | vcrl;
157 .read_vcr = sh4202_read_vcr,
158 .write_vcr = sh4202_write_vcr,
162 { &sh4202_superhyway_ops, },