16 #include <linux/kernel.h>
26 #define irq2port(x) (M32R_ICU_CR1_PORTL + ((x - 1) * sizeof(unsigned long)))
30 static void disable_opsput_irq(
unsigned int irq)
39 static void enable_opsput_irq(
unsigned int irq)
50 disable_opsput_irq(data->
irq);
55 enable_opsput_irq(data->
irq);
66 static struct irq_chip opsput_irq_type =
69 .irq_shutdown = shutdown_opsput,
70 .irq_mask = mask_opsput,
71 .irq_unmask = unmask_opsput,
77 #define irq2pldirq(x) ((x) - OPSPUT_PLD_IRQ_BASE)
78 #define pldirq2port(x) (unsigned long)((int)PLD_ICUCR1 + \
79 (((x) - 1) * sizeof(unsigned short)))
87 static void disable_opsput_pld_irq(
unsigned int irq)
98 static void enable_opsput_pld_irq(
unsigned int irq)
111 disable_opsput_pld_irq(data->
irq);
116 enable_opsput_pld_irq(data->
irq);
130 static struct irq_chip opsput_pld_irq_type =
132 .name =
"OPSPUT-PLD-IRQ",
133 .irq_shutdown = shutdown_opsput_pld,
134 .irq_mask = mask_opsput_pld,
135 .irq_unmask = unmask_opsput_pld,
141 #define irq2lanpldirq(x) ((x) - OPSPUT_LAN_PLD_IRQ_BASE)
142 #define lanpldirq2port(x) (unsigned long)((int)OPSPUT_LAN_ICUCR1 + \
143 (((x) - 1) * sizeof(unsigned short)))
147 static void disable_opsput_lanpld_irq(
unsigned int irq)
158 static void enable_opsput_lanpld_irq(
unsigned int irq)
171 disable_opsput_lanpld_irq(data->
irq);
176 enable_opsput_lanpld_irq(data->
irq);
180 static void shutdown_opsput_lanpld(
struct irq_data *
data)
190 static struct irq_chip opsput_lanpld_irq_type =
192 .name =
"OPSPUT-PLD-LAN-IRQ",
193 .irq_shutdown = shutdown_opsput_lanpld,
194 .irq_mask = mask_opsput_lanpld,
195 .irq_unmask = unmask_opsput_lanpld,
201 #define irq2lcdpldirq(x) ((x) - OPSPUT_LCD_PLD_IRQ_BASE)
202 #define lcdpldirq2port(x) (unsigned long)((int)OPSPUT_LCD_ICUCR1 + \
203 (((x) - 1) * sizeof(unsigned short)))
207 static void disable_opsput_lcdpld_irq(
unsigned int irq)
218 static void enable_opsput_lcdpld_irq(
unsigned int irq)
231 disable_opsput_lcdpld_irq(data->
irq);
236 enable_opsput_lcdpld_irq(data->
irq);
240 static void shutdown_opsput_lcdpld(
struct irq_data *
data)
250 static struct irq_chip opsput_lcdpld_irq_type = {
251 .name =
"OPSPUT-PLD-LCD-IRQ",
252 .irq_shutdown = shutdown_opsput_lcdpld,
253 .irq_mask = mask_opsput_lcdpld,
254 .irq_unmask = unmask_opsput_lcdpld,
259 #if defined(CONFIG_SMC91X)
303 #ifdef CONFIG_SERIAL_M32R_PLDSIO
349 #if defined(CONFIG_USB)
363 #if defined(CONFIG_VIDEO_M32R_AR)
374 #if defined(CONFIG_SMC91X)
376 #define LAN_IOSTART 0x300
377 #define LAN_IOEND 0x320
378 static struct resource smc91x_resources[] = {
394 .num_resources =
ARRAY_SIZE(smc91x_resources),
395 .resource = smc91x_resources,
399 #if defined(CONFIG_FB_S1D13XXX)
406 .initregssize =
ARRAY_SIZE(s1d13xxxfb_initregs),
407 .platform_init_video =
NULL,
409 .platform_suspend_video =
NULL,
410 .platform_resume_video =
NULL,
414 static struct resource s1d13xxxfb_resources[] = {
421 .start = 0x10400000
UL,
431 .platform_data = &s1d13xxxfb_data,
433 .num_resources =
ARRAY_SIZE(s1d13xxxfb_resources),
434 .resource = s1d13xxxfb_resources,
438 static int __init platform_init(
void)
440 #if defined(CONFIG_SMC91X)
443 #if defined(CONFIG_FB_S1D13XXX)