12 #include <linux/kernel.h>
15 #include <linux/device.h>
19 #include <asm/setup.h>
20 #include <asm/processor.h>
23 #include <asm/serial-regs.h>
25 #include <unit/serial.h>
28 #define TTYS0_SERIAL_IER __SYSREG(SERIAL_PORT0_BASE_ADDRESS + UART_IER * 2, u8)
29 #define LAN_IRQ_CFG __SYSREG(SMSC911X_BASE + 0x54, u32)
30 #define LAN_INT_EN __SYSREG(SMSC911X_BASE + 0x5c, u32)
47 ASB2364_FPGA_REG_RESET_LAN = 0x0000;
49 ASB2364_FPGA_REG_RESET_UART = 0x0000;
51 ASB2364_FPGA_REG_RESET_I2C = 0x0000;
53 ASB2364_FPGA_REG_RESET_USB = 0x0000;
55 ASB2364_FPGA_REG_RESET_AV = 0x0000;
69 #if defined(CONFIG_EXT_SERIAL_IRQ_LEVEL) && \
70 defined(CONFIG_ETHERNET_IRQ_LEVEL) && \
71 (CONFIG_EXT_SERIAL_IRQ_LEVEL != CONFIG_ETHERNET_IRQ_LEVEL)
72 # error CONFIG_EXT_SERIAL_IRQ_LEVEL != CONFIG_ETHERNET_IRQ_LEVEL
75 #if defined(CONFIG_EXT_SERIAL_IRQ_LEVEL)
76 set_intr_level(XIRQ1, NUM2GxICR_LEVEL(CONFIG_EXT_SERIAL_IRQ_LEVEL));
77 #elif defined(CONFIG_ETHERNET_IRQ_LEVEL)
89 ASB2364_FPGA_REG_RESET_LAN = 0x0001;
91 ASB2364_FPGA_REG_RESET_UART = 0x0001;
93 ASB2364_FPGA_REG_RESET_I2C = 0x0001;
95 ASB2364_FPGA_REG_RESET_USB = 0x0001;
97 ASB2364_FPGA_REG_RESET_AV = 0x0001;
113 for (extnum = 0 ; extnum <
NR_XIRQS ; extnum++) {
119 case XIRQ_TRIGGER_HILEVEL:
120 case XIRQ_TRIGGER_LOWLEVEL:
128 #define IRQCTL __SYSREG(0xd5000090, u32)