diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2011-05-08 04:42:17 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-05-19 04:55:45 -0400 |
commit | 80130204b43ce9c3b50924e4c2d44e9f2881f8c3 (patch) | |
tree | b136768ee20f226dbe0c55e1957f19e882784a5b | |
parent | adcb86279f1e4d7a1a9f267b49441aecf4a5110a (diff) |
MIPS: Alchemy: Rewrite UART setup and constants.
Detect CPU type at runtime and setup uarts accordingly; also clean up the
uart base address mess in the process as far as possible.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Patchwork: https://patchwork.linux-mips.org/patch/2352/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org
-rw-r--r-- | arch/mips/alchemy/common/platform.c | 93 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/prom.c | 2 | ||||
-rw-r--r-- | arch/mips/alchemy/gpr/board_setup.c | 14 | ||||
-rw-r--r-- | arch/mips/alchemy/gpr/init.c | 2 | ||||
-rw-r--r-- | arch/mips/alchemy/mtx-1/init.c | 2 | ||||
-rw-r--r-- | arch/mips/alchemy/xxs1500/board_setup.c | 11 | ||||
-rw-r--r-- | arch/mips/alchemy/xxs1500/init.c | 2 | ||||
-rw-r--r-- | arch/mips/boot/compressed/uart-alchemy.c | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-au1x00/au1000.h | 57 |
9 files changed, 107 insertions, 78 deletions
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common/platform.c index 9e7814db3d03..36489fb184a2 100644 --- a/arch/mips/alchemy/common/platform.c +++ b/arch/mips/alchemy/common/platform.c | |||
@@ -30,21 +30,12 @@ static void alchemy_8250_pm(struct uart_port *port, unsigned int state, | |||
30 | #ifdef CONFIG_SERIAL_8250 | 30 | #ifdef CONFIG_SERIAL_8250 |
31 | switch (state) { | 31 | switch (state) { |
32 | case 0: | 32 | case 0: |
33 | if ((__raw_readl(port->membase + UART_MOD_CNTRL) & 3) != 3) { | 33 | alchemy_uart_enable(CPHYSADDR(port->membase)); |
34 | /* power-on sequence as suggested in the databooks */ | ||
35 | __raw_writel(0, port->membase + UART_MOD_CNTRL); | ||
36 | wmb(); | ||
37 | __raw_writel(1, port->membase + UART_MOD_CNTRL); | ||
38 | wmb(); | ||
39 | } | ||
40 | __raw_writel(3, port->membase + UART_MOD_CNTRL); /* full on */ | ||
41 | wmb(); | ||
42 | serial8250_do_pm(port, state, old_state); | 34 | serial8250_do_pm(port, state, old_state); |
43 | break; | 35 | break; |
44 | case 3: /* power off */ | 36 | case 3: /* power off */ |
45 | serial8250_do_pm(port, state, old_state); | 37 | serial8250_do_pm(port, state, old_state); |
46 | __raw_writel(0, port->membase + UART_MOD_CNTRL); | 38 | alchemy_uart_disable(CPHYSADDR(port->membase)); |
47 | wmb(); | ||
48 | break; | 39 | break; |
49 | default: | 40 | default: |
50 | serial8250_do_pm(port, state, old_state); | 41 | serial8250_do_pm(port, state, old_state); |
@@ -65,38 +56,60 @@ static void alchemy_8250_pm(struct uart_port *port, unsigned int state, | |||
65 | .pm = alchemy_8250_pm, \ | 56 | .pm = alchemy_8250_pm, \ |
66 | } | 57 | } |
67 | 58 | ||
68 | static struct plat_serial8250_port au1x00_uart_data[] = { | 59 | static struct plat_serial8250_port au1x00_uart_data[][4] __initdata = { |
69 | #if defined(CONFIG_SOC_AU1000) | 60 | [ALCHEMY_CPU_AU1000] = { |
70 | PORT(UART0_PHYS_ADDR, AU1000_UART0_INT), | 61 | PORT(AU1000_UART0_PHYS_ADDR, AU1000_UART0_INT), |
71 | PORT(UART1_PHYS_ADDR, AU1000_UART1_INT), | 62 | PORT(AU1000_UART1_PHYS_ADDR, AU1000_UART1_INT), |
72 | PORT(UART2_PHYS_ADDR, AU1000_UART2_INT), | 63 | PORT(AU1000_UART2_PHYS_ADDR, AU1000_UART2_INT), |
73 | PORT(UART3_PHYS_ADDR, AU1000_UART3_INT), | 64 | PORT(AU1000_UART3_PHYS_ADDR, AU1000_UART3_INT), |
74 | #elif defined(CONFIG_SOC_AU1500) | 65 | }, |
75 | PORT(UART0_PHYS_ADDR, AU1500_UART0_INT), | 66 | [ALCHEMY_CPU_AU1500] = { |
76 | PORT(UART3_PHYS_ADDR, AU1500_UART3_INT), | 67 | PORT(AU1000_UART0_PHYS_ADDR, AU1500_UART0_INT), |
77 | #elif defined(CONFIG_SOC_AU1100) | 68 | PORT(AU1000_UART3_PHYS_ADDR, AU1500_UART3_INT), |
78 | PORT(UART0_PHYS_ADDR, AU1100_UART0_INT), | 69 | }, |
79 | PORT(UART1_PHYS_ADDR, AU1100_UART1_INT), | 70 | [ALCHEMY_CPU_AU1100] = { |
80 | PORT(UART3_PHYS_ADDR, AU1100_UART3_INT), | 71 | PORT(AU1000_UART0_PHYS_ADDR, AU1100_UART0_INT), |
81 | #elif defined(CONFIG_SOC_AU1550) | 72 | PORT(AU1000_UART1_PHYS_ADDR, AU1100_UART1_INT), |
82 | PORT(UART0_PHYS_ADDR, AU1550_UART0_INT), | 73 | PORT(AU1000_UART3_PHYS_ADDR, AU1100_UART3_INT), |
83 | PORT(UART1_PHYS_ADDR, AU1550_UART1_INT), | 74 | }, |
84 | PORT(UART3_PHYS_ADDR, AU1550_UART3_INT), | 75 | [ALCHEMY_CPU_AU1550] = { |
85 | #elif defined(CONFIG_SOC_AU1200) | 76 | PORT(AU1000_UART0_PHYS_ADDR, AU1550_UART0_INT), |
86 | PORT(UART0_PHYS_ADDR, AU1200_UART0_INT), | 77 | PORT(AU1000_UART1_PHYS_ADDR, AU1550_UART1_INT), |
87 | PORT(UART1_PHYS_ADDR, AU1200_UART1_INT), | 78 | PORT(AU1000_UART3_PHYS_ADDR, AU1550_UART3_INT), |
88 | #endif | 79 | }, |
89 | { }, | 80 | [ALCHEMY_CPU_AU1200] = { |
81 | PORT(AU1000_UART0_PHYS_ADDR, AU1200_UART0_INT), | ||
82 | PORT(AU1000_UART1_PHYS_ADDR, AU1200_UART1_INT), | ||
83 | }, | ||
90 | }; | 84 | }; |
91 | 85 | ||
92 | static struct platform_device au1xx0_uart_device = { | 86 | static struct platform_device au1xx0_uart_device = { |
93 | .name = "serial8250", | 87 | .name = "serial8250", |
94 | .id = PLAT8250_DEV_AU1X00, | 88 | .id = PLAT8250_DEV_AU1X00, |
95 | .dev = { | ||
96 | .platform_data = au1x00_uart_data, | ||
97 | }, | ||
98 | }; | 89 | }; |
99 | 90 | ||
91 | static void __init alchemy_setup_uarts(int ctype) | ||
92 | { | ||
93 | unsigned int uartclk = get_au1x00_uart_baud_base() * 16; | ||
94 | int s = sizeof(struct plat_serial8250_port); | ||
95 | int c = alchemy_get_uarts(ctype); | ||
96 | struct plat_serial8250_port *ports; | ||
97 | |||
98 | ports = kzalloc(s * (c + 1), GFP_KERNEL); | ||
99 | if (!ports) { | ||
100 | printk(KERN_INFO "Alchemy: no memory for UART data\n"); | ||
101 | return; | ||
102 | } | ||
103 | memcpy(ports, au1x00_uart_data[ctype], s * c); | ||
104 | au1xx0_uart_device.dev.platform_data = ports; | ||
105 | |||
106 | /* Fill up uartclk. */ | ||
107 | for (s = 0; s < c; s++) | ||
108 | ports[s].uartclk = uartclk; | ||
109 | if (platform_device_register(&au1xx0_uart_device)) | ||
110 | printk(KERN_INFO "Alchemy: failed to register UARTs\n"); | ||
111 | } | ||
112 | |||
100 | /* OHCI (USB full speed host controller) */ | 113 | /* OHCI (USB full speed host controller) */ |
101 | static struct resource au1xxx_usb_ohci_resources[] = { | 114 | static struct resource au1xxx_usb_ohci_resources[] = { |
102 | [0] = { | 115 | [0] = { |
@@ -442,7 +455,6 @@ void __init au1xxx_override_eth_cfg(unsigned int port, | |||
442 | } | 455 | } |
443 | 456 | ||
444 | static struct platform_device *au1xxx_platform_devices[] __initdata = { | 457 | static struct platform_device *au1xxx_platform_devices[] __initdata = { |
445 | &au1xx0_uart_device, | ||
446 | &au1xxx_usb_ohci_device, | 458 | &au1xxx_usb_ohci_device, |
447 | #ifdef CONFIG_FB_AU1100 | 459 | #ifdef CONFIG_FB_AU1100 |
448 | &au1100_lcd_device, | 460 | &au1100_lcd_device, |
@@ -465,13 +477,10 @@ static struct platform_device *au1xxx_platform_devices[] __initdata = { | |||
465 | 477 | ||
466 | static int __init au1xxx_platform_init(void) | 478 | static int __init au1xxx_platform_init(void) |
467 | { | 479 | { |
468 | unsigned int uartclk = get_au1x00_uart_baud_base() * 16; | 480 | int err, i, ctype = alchemy_get_cputype(); |
469 | int err, i; | ||
470 | unsigned char ethaddr[6]; | 481 | unsigned char ethaddr[6]; |
471 | 482 | ||
472 | /* Fill up uartclk. */ | 483 | alchemy_setup_uarts(ctype); |
473 | for (i = 0; au1x00_uart_data[i].flags; i++) | ||
474 | au1x00_uart_data[i].uartclk = uartclk; | ||
475 | 484 | ||
476 | /* use firmware-provided mac addr if available and necessary */ | 485 | /* use firmware-provided mac addr if available and necessary */ |
477 | i = prom_get_ethernet_addr(ethaddr); | 486 | i = prom_get_ethernet_addr(ethaddr); |
diff --git a/arch/mips/alchemy/devboards/prom.c b/arch/mips/alchemy/devboards/prom.c index baeb21385058..e5306b56da6d 100644 --- a/arch/mips/alchemy/devboards/prom.c +++ b/arch/mips/alchemy/devboards/prom.c | |||
@@ -62,5 +62,5 @@ void __init prom_init(void) | |||
62 | 62 | ||
63 | void prom_putchar(unsigned char c) | 63 | void prom_putchar(unsigned char c) |
64 | { | 64 | { |
65 | alchemy_uart_putchar(UART0_PHYS_ADDR, c); | 65 | alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c); |
66 | } | 66 | } |
diff --git a/arch/mips/alchemy/gpr/board_setup.c b/arch/mips/alchemy/gpr/board_setup.c index ad2e3f137933..5f8f0691ed2d 100644 --- a/arch/mips/alchemy/gpr/board_setup.c +++ b/arch/mips/alchemy/gpr/board_setup.c | |||
@@ -36,9 +36,6 @@ | |||
36 | 36 | ||
37 | #include <prom.h> | 37 | #include <prom.h> |
38 | 38 | ||
39 | #define UART1_ADDR KSEG1ADDR(UART1_PHYS_ADDR) | ||
40 | #define UART3_ADDR KSEG1ADDR(UART3_PHYS_ADDR) | ||
41 | |||
42 | char irq_tab_alchemy[][5] __initdata = { | 39 | char irq_tab_alchemy[][5] __initdata = { |
43 | [0] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, 0xff, 0xff }, | 40 | [0] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, 0xff, 0xff }, |
44 | }; | 41 | }; |
@@ -67,18 +64,15 @@ static void gpr_power_off(void) | |||
67 | 64 | ||
68 | void __init board_setup(void) | 65 | void __init board_setup(void) |
69 | { | 66 | { |
70 | printk(KERN_INFO "Tarpeze ITS GPR board\n"); | 67 | printk(KERN_INFO "Trapeze ITS GPR board\n"); |
71 | 68 | ||
72 | pm_power_off = gpr_power_off; | 69 | pm_power_off = gpr_power_off; |
73 | _machine_halt = gpr_power_off; | 70 | _machine_halt = gpr_power_off; |
74 | _machine_restart = gpr_reset; | 71 | _machine_restart = gpr_reset; |
75 | 72 | ||
76 | /* Enable UART3 */ | 73 | /* Enable UART1/3 */ |
77 | au_writel(0x1, UART3_ADDR + UART_MOD_CNTRL);/* clock enable (CE) */ | 74 | alchemy_uart_enable(AU1000_UART3_PHYS_ADDR); |
78 | au_writel(0x3, UART3_ADDR + UART_MOD_CNTRL); /* CE and "enable" */ | 75 | alchemy_uart_enable(AU1000_UART1_PHYS_ADDR); |
79 | /* Enable UART1 */ | ||
80 | au_writel(0x1, UART1_ADDR + UART_MOD_CNTRL); /* clock enable (CE) */ | ||
81 | au_writel(0x3, UART1_ADDR + UART_MOD_CNTRL); /* CE and "enable" */ | ||
82 | 76 | ||
83 | /* Take away Reset of UMTS-card */ | 77 | /* Take away Reset of UMTS-card */ |
84 | alchemy_gpio_direction_output(215, 1); | 78 | alchemy_gpio_direction_output(215, 1); |
diff --git a/arch/mips/alchemy/gpr/init.c b/arch/mips/alchemy/gpr/init.c index f044f4c541d7..229aafae680c 100644 --- a/arch/mips/alchemy/gpr/init.c +++ b/arch/mips/alchemy/gpr/init.c | |||
@@ -59,5 +59,5 @@ void __init prom_init(void) | |||
59 | 59 | ||
60 | void prom_putchar(unsigned char c) | 60 | void prom_putchar(unsigned char c) |
61 | { | 61 | { |
62 | alchemy_uart_putchar(UART0_PHYS_ADDR, c); | 62 | alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c); |
63 | } | 63 | } |
diff --git a/arch/mips/alchemy/mtx-1/init.c b/arch/mips/alchemy/mtx-1/init.c index f8d25575fa05..2e81cc7f3422 100644 --- a/arch/mips/alchemy/mtx-1/init.c +++ b/arch/mips/alchemy/mtx-1/init.c | |||
@@ -62,5 +62,5 @@ void __init prom_init(void) | |||
62 | 62 | ||
63 | void prom_putchar(unsigned char c) | 63 | void prom_putchar(unsigned char c) |
64 | { | 64 | { |
65 | alchemy_uart_putchar(UART0_PHYS_ADDR, c); | 65 | alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c); |
66 | } | 66 | } |
diff --git a/arch/mips/alchemy/xxs1500/board_setup.c b/arch/mips/alchemy/xxs1500/board_setup.c index febfb0fb0896..81e57fad07ab 100644 --- a/arch/mips/alchemy/xxs1500/board_setup.c +++ b/arch/mips/alchemy/xxs1500/board_setup.c | |||
@@ -66,13 +66,10 @@ void __init board_setup(void) | |||
66 | au_writel(pin_func, SYS_PINFUNC); | 66 | au_writel(pin_func, SYS_PINFUNC); |
67 | 67 | ||
68 | /* Enable UART */ | 68 | /* Enable UART */ |
69 | au_writel(0x01, UART3_ADDR + UART_MOD_CNTRL); /* clock enable (CE) */ | 69 | alchemy_uart_enable(AU1000_UART3_PHYS_ADDR); |
70 | mdelay(10); | 70 | /* Enable DTR (MCR bit 0) = USB power up */ |
71 | au_writel(0x03, UART3_ADDR + UART_MOD_CNTRL); /* CE and "enable" */ | 71 | __raw_writel(1, (void __iomem *)KSEG1ADDR(AU1000_UART3_PHYS_ADDR + 0x18)); |
72 | mdelay(10); | 72 | wmb(); |
73 | |||
74 | /* Enable DTR = USB power up */ | ||
75 | au_writel(0x01, UART3_ADDR + UART_MCR); /* UART_MCR_DTR is 0x01??? */ | ||
76 | 73 | ||
77 | #ifdef CONFIG_PCI | 74 | #ifdef CONFIG_PCI |
78 | #if defined(__MIPSEB__) | 75 | #if defined(__MIPSEB__) |
diff --git a/arch/mips/alchemy/xxs1500/init.c b/arch/mips/alchemy/xxs1500/init.c index 34a90a4bb6f4..0ee02cfa989d 100644 --- a/arch/mips/alchemy/xxs1500/init.c +++ b/arch/mips/alchemy/xxs1500/init.c | |||
@@ -59,5 +59,5 @@ void __init prom_init(void) | |||
59 | 59 | ||
60 | void prom_putchar(unsigned char c) | 60 | void prom_putchar(unsigned char c) |
61 | { | 61 | { |
62 | alchemy_uart_putchar(UART0_PHYS_ADDR, c); | 62 | alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c); |
63 | } | 63 | } |
diff --git a/arch/mips/boot/compressed/uart-alchemy.c b/arch/mips/boot/compressed/uart-alchemy.c index 1bff22fa089b..eb063e6dead9 100644 --- a/arch/mips/boot/compressed/uart-alchemy.c +++ b/arch/mips/boot/compressed/uart-alchemy.c | |||
@@ -3,5 +3,5 @@ | |||
3 | void putc(char c) | 3 | void putc(char c) |
4 | { | 4 | { |
5 | /* all current (Jan. 2010) in-kernel boards */ | 5 | /* all current (Jan. 2010) in-kernel boards */ |
6 | alchemy_uart_putchar(UART0_PHYS_ADDR, c); | 6 | alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c); |
7 | } | 7 | } |
diff --git a/arch/mips/include/asm/mach-au1x00/au1000.h b/arch/mips/include/asm/mach-au1x00/au1000.h index eb8f1034e1ef..c4ffb209edf2 100644 --- a/arch/mips/include/asm/mach-au1x00/au1000.h +++ b/arch/mips/include/asm/mach-au1x00/au1000.h | |||
@@ -161,6 +161,45 @@ static inline int alchemy_get_cputype(void) | |||
161 | return ALCHEMY_CPU_UNKNOWN; | 161 | return ALCHEMY_CPU_UNKNOWN; |
162 | } | 162 | } |
163 | 163 | ||
164 | /* return number of uarts on a given cputype */ | ||
165 | static inline int alchemy_get_uarts(int type) | ||
166 | { | ||
167 | switch (type) { | ||
168 | case ALCHEMY_CPU_AU1000: | ||
169 | return 4; | ||
170 | case ALCHEMY_CPU_AU1500: | ||
171 | case ALCHEMY_CPU_AU1200: | ||
172 | return 2; | ||
173 | case ALCHEMY_CPU_AU1100: | ||
174 | case ALCHEMY_CPU_AU1550: | ||
175 | return 3; | ||
176 | } | ||
177 | return 0; | ||
178 | } | ||
179 | |||
180 | /* enable an UART block if it isn't already */ | ||
181 | static inline void alchemy_uart_enable(u32 uart_phys) | ||
182 | { | ||
183 | void __iomem *addr = (void __iomem *)KSEG1ADDR(uart_phys); | ||
184 | |||
185 | /* reset, enable clock, deassert reset */ | ||
186 | if ((__raw_readl(addr + 0x100) & 3) != 3) { | ||
187 | __raw_writel(0, addr + 0x100); | ||
188 | wmb(); | ||
189 | __raw_writel(1, addr + 0x100); | ||
190 | wmb(); | ||
191 | } | ||
192 | __raw_writel(3, addr + 0x100); | ||
193 | wmb(); | ||
194 | } | ||
195 | |||
196 | static inline void alchemy_uart_disable(u32 uart_phys) | ||
197 | { | ||
198 | void __iomem *addr = (void __iomem *)KSEG1ADDR(uart_phys); | ||
199 | __raw_writel(0, addr + 0x100); /* UART_MOD_CNTRL */ | ||
200 | wmb(); | ||
201 | } | ||
202 | |||
164 | static inline void alchemy_uart_putchar(u32 uart_phys, u8 c) | 203 | static inline void alchemy_uart_putchar(u32 uart_phys, u8 c) |
165 | { | 204 | { |
166 | void __iomem *base = (void __iomem *)KSEG1ADDR(uart_phys); | 205 | void __iomem *base = (void __iomem *)KSEG1ADDR(uart_phys); |
@@ -634,6 +673,10 @@ enum soc_au1200_ints { | |||
634 | */ | 673 | */ |
635 | 674 | ||
636 | #define AU1000_IC0_PHYS_ADDR 0x10400000 /* 01234 */ | 675 | #define AU1000_IC0_PHYS_ADDR 0x10400000 /* 01234 */ |
676 | #define AU1000_UART0_PHYS_ADDR 0x11100000 /* 01234 */ | ||
677 | #define AU1000_UART1_PHYS_ADDR 0x11200000 /* 0234 */ | ||
678 | #define AU1000_UART2_PHYS_ADDR 0x11300000 /* 0 */ | ||
679 | #define AU1000_UART3_PHYS_ADDR 0x11400000 /* 0123 */ | ||
637 | #define AU1000_IC1_PHYS_ADDR 0x11800000 /* 01234 */ | 680 | #define AU1000_IC1_PHYS_ADDR 0x11800000 /* 01234 */ |
638 | #define AU1550_DBDMA_PHYS_ADDR 0x14002000 /* 34 */ | 681 | #define AU1550_DBDMA_PHYS_ADDR 0x14002000 /* 34 */ |
639 | #define AU1550_DBDMA_CONF_PHYS_ADDR 0x14003000 /* 34 */ | 682 | #define AU1550_DBDMA_CONF_PHYS_ADDR 0x14003000 /* 34 */ |
@@ -660,10 +703,6 @@ enum soc_au1200_ints { | |||
660 | #define MACDMA0_PHYS_ADDR 0x14004000 | 703 | #define MACDMA0_PHYS_ADDR 0x14004000 |
661 | #define MACDMA1_PHYS_ADDR 0x14004200 | 704 | #define MACDMA1_PHYS_ADDR 0x14004200 |
662 | #define I2S_PHYS_ADDR 0x11000000 | 705 | #define I2S_PHYS_ADDR 0x11000000 |
663 | #define UART0_PHYS_ADDR 0x11100000 | ||
664 | #define UART1_PHYS_ADDR 0x11200000 | ||
665 | #define UART2_PHYS_ADDR 0x11300000 | ||
666 | #define UART3_PHYS_ADDR 0x11400000 | ||
667 | #define SSI0_PHYS_ADDR 0x11600000 | 706 | #define SSI0_PHYS_ADDR 0x11600000 |
668 | #define SSI1_PHYS_ADDR 0x11680000 | 707 | #define SSI1_PHYS_ADDR 0x11680000 |
669 | #define SYS_PHYS_ADDR 0x11900000 | 708 | #define SYS_PHYS_ADDR 0x11900000 |
@@ -695,8 +734,6 @@ enum soc_au1200_ints { | |||
695 | #define MACDMA0_PHYS_ADDR 0x14004000 | 734 | #define MACDMA0_PHYS_ADDR 0x14004000 |
696 | #define MACDMA1_PHYS_ADDR 0x14004200 | 735 | #define MACDMA1_PHYS_ADDR 0x14004200 |
697 | #define I2S_PHYS_ADDR 0x11000000 | 736 | #define I2S_PHYS_ADDR 0x11000000 |
698 | #define UART0_PHYS_ADDR 0x11100000 | ||
699 | #define UART3_PHYS_ADDR 0x11400000 | ||
700 | #define GPIO2_PHYS_ADDR 0x11700000 | 737 | #define GPIO2_PHYS_ADDR 0x11700000 |
701 | #define SYS_PHYS_ADDR 0x11900000 | 738 | #define SYS_PHYS_ADDR 0x11900000 |
702 | #define PCI_MEM_PHYS_ADDR 0x400000000ULL | 739 | #define PCI_MEM_PHYS_ADDR 0x400000000ULL |
@@ -732,9 +769,6 @@ enum soc_au1200_ints { | |||
732 | #define MACDMA0_PHYS_ADDR 0x14004000 | 769 | #define MACDMA0_PHYS_ADDR 0x14004000 |
733 | #define MACDMA1_PHYS_ADDR 0x14004200 | 770 | #define MACDMA1_PHYS_ADDR 0x14004200 |
734 | #define I2S_PHYS_ADDR 0x11000000 | 771 | #define I2S_PHYS_ADDR 0x11000000 |
735 | #define UART0_PHYS_ADDR 0x11100000 | ||
736 | #define UART1_PHYS_ADDR 0x11200000 | ||
737 | #define UART3_PHYS_ADDR 0x11400000 | ||
738 | #define SSI0_PHYS_ADDR 0x11600000 | 772 | #define SSI0_PHYS_ADDR 0x11600000 |
739 | #define SSI1_PHYS_ADDR 0x11680000 | 773 | #define SSI1_PHYS_ADDR 0x11680000 |
740 | #define GPIO2_PHYS_ADDR 0x11700000 | 774 | #define GPIO2_PHYS_ADDR 0x11700000 |
@@ -758,9 +792,6 @@ enum soc_au1200_ints { | |||
758 | #define MACEN_PHYS_ADDR 0x10520000 | 792 | #define MACEN_PHYS_ADDR 0x10520000 |
759 | #define MACDMA0_PHYS_ADDR 0x14004000 | 793 | #define MACDMA0_PHYS_ADDR 0x14004000 |
760 | #define MACDMA1_PHYS_ADDR 0x14004200 | 794 | #define MACDMA1_PHYS_ADDR 0x14004200 |
761 | #define UART0_PHYS_ADDR 0x11100000 | ||
762 | #define UART1_PHYS_ADDR 0x11200000 | ||
763 | #define UART3_PHYS_ADDR 0x11400000 | ||
764 | #define GPIO2_PHYS_ADDR 0x11700000 | 795 | #define GPIO2_PHYS_ADDR 0x11700000 |
765 | #define SYS_PHYS_ADDR 0x11900000 | 796 | #define SYS_PHYS_ADDR 0x11900000 |
766 | #define PE_PHYS_ADDR 0x14008000 | 797 | #define PE_PHYS_ADDR 0x14008000 |
@@ -786,8 +817,6 @@ enum soc_au1200_ints { | |||
786 | #define CIM_PHYS_ADDR 0x14004000 | 817 | #define CIM_PHYS_ADDR 0x14004000 |
787 | #define USBM_PHYS_ADDR 0x14020000 | 818 | #define USBM_PHYS_ADDR 0x14020000 |
788 | #define USBH_PHYS_ADDR 0x14020100 | 819 | #define USBH_PHYS_ADDR 0x14020100 |
789 | #define UART0_PHYS_ADDR 0x11100000 | ||
790 | #define UART1_PHYS_ADDR 0x11200000 | ||
791 | #define GPIO2_PHYS_ADDR 0x11700000 | 820 | #define GPIO2_PHYS_ADDR 0x11700000 |
792 | #define SYS_PHYS_ADDR 0x11900000 | 821 | #define SYS_PHYS_ADDR 0x11900000 |
793 | #define PSC0_PHYS_ADDR 0x11A00000 | 822 | #define PSC0_PHYS_ADDR 0x11A00000 |