diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2009-10-15 12:49:27 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:52:55 -0500 |
commit | 8402a1588a4f63465079e98481dd83d1d9cc9a98 (patch) | |
tree | 1ace3c45421fe4b8d29762fcc67bd09064197f18 /arch/mips/alchemy/Kconfig | |
parent | 963accbc82a0912b39de39d59e2fd6741db3aa4b (diff) |
MIPS: Alchemy: prom_putchar is board dependent
This patch replaces the general alchemy prom_putchar() implementation
in favor of board-specific versions: The UART where the output of
prom_putchar is directed to really depends on the board, the current
implementation hardcodes this on a per-SoC basis which is just wrong.
So a generic uart tx function is provided in the alchemy headers,
and the boards can provide their own prom_putchar with custom
destination uart, and all in-kernel alchemy boards support
early printk.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/Kconfig')
-rw-r--r-- | arch/mips/alchemy/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/alchemy/Kconfig b/arch/mips/alchemy/Kconfig index 00b498e97c83..22f4ff5103c1 100644 --- a/arch/mips/alchemy/Kconfig +++ b/arch/mips/alchemy/Kconfig | |||
@@ -20,12 +20,14 @@ config MIPS_MTX1 | |||
20 | select HW_HAS_PCI | 20 | select HW_HAS_PCI |
21 | select SOC_AU1500 | 21 | select SOC_AU1500 |
22 | select SYS_SUPPORTS_LITTLE_ENDIAN | 22 | select SYS_SUPPORTS_LITTLE_ENDIAN |
23 | select SYS_HAS_EARLY_PRINTK | ||
23 | 24 | ||
24 | config MIPS_BOSPORUS | 25 | config MIPS_BOSPORUS |
25 | bool "Alchemy Bosporus board" | 26 | bool "Alchemy Bosporus board" |
26 | select SOC_AU1500 | 27 | select SOC_AU1500 |
27 | select DMA_NONCOHERENT | 28 | select DMA_NONCOHERENT |
28 | select SYS_SUPPORTS_LITTLE_ENDIAN | 29 | select SYS_SUPPORTS_LITTLE_ENDIAN |
30 | select SYS_HAS_EARLY_PRINTK | ||
29 | 31 | ||
30 | config MIPS_DB1000 | 32 | config MIPS_DB1000 |
31 | bool "Alchemy DB1000 board" | 33 | bool "Alchemy DB1000 board" |
@@ -33,12 +35,14 @@ config MIPS_DB1000 | |||
33 | select DMA_NONCOHERENT | 35 | select DMA_NONCOHERENT |
34 | select HW_HAS_PCI | 36 | select HW_HAS_PCI |
35 | select SYS_SUPPORTS_LITTLE_ENDIAN | 37 | select SYS_SUPPORTS_LITTLE_ENDIAN |
38 | select SYS_HAS_EARLY_PRINTK | ||
36 | 39 | ||
37 | config MIPS_DB1100 | 40 | config MIPS_DB1100 |
38 | bool "Alchemy DB1100 board" | 41 | bool "Alchemy DB1100 board" |
39 | select SOC_AU1100 | 42 | select SOC_AU1100 |
40 | select DMA_NONCOHERENT | 43 | select DMA_NONCOHERENT |
41 | select SYS_SUPPORTS_LITTLE_ENDIAN | 44 | select SYS_SUPPORTS_LITTLE_ENDIAN |
45 | select SYS_HAS_EARLY_PRINTK | ||
42 | 46 | ||
43 | config MIPS_DB1200 | 47 | config MIPS_DB1200 |
44 | bool "Alchemy DB1200 board" | 48 | bool "Alchemy DB1200 board" |
@@ -46,6 +50,7 @@ config MIPS_DB1200 | |||
46 | select DMA_COHERENT | 50 | select DMA_COHERENT |
47 | select MIPS_DISABLE_OBSOLETE_IDE | 51 | select MIPS_DISABLE_OBSOLETE_IDE |
48 | select SYS_SUPPORTS_LITTLE_ENDIAN | 52 | select SYS_SUPPORTS_LITTLE_ENDIAN |
53 | select SYS_HAS_EARLY_PRINTK | ||
49 | 54 | ||
50 | config MIPS_DB1500 | 55 | config MIPS_DB1500 |
51 | bool "Alchemy DB1500 board" | 56 | bool "Alchemy DB1500 board" |
@@ -55,6 +60,7 @@ config MIPS_DB1500 | |||
55 | select MIPS_DISABLE_OBSOLETE_IDE | 60 | select MIPS_DISABLE_OBSOLETE_IDE |
56 | select SYS_SUPPORTS_BIG_ENDIAN | 61 | select SYS_SUPPORTS_BIG_ENDIAN |
57 | select SYS_SUPPORTS_LITTLE_ENDIAN | 62 | select SYS_SUPPORTS_LITTLE_ENDIAN |
63 | select SYS_HAS_EARLY_PRINTK | ||
58 | 64 | ||
59 | config MIPS_DB1550 | 65 | config MIPS_DB1550 |
60 | bool "Alchemy DB1550 board" | 66 | bool "Alchemy DB1550 board" |
@@ -63,12 +69,14 @@ config MIPS_DB1550 | |||
63 | select DMA_NONCOHERENT | 69 | select DMA_NONCOHERENT |
64 | select MIPS_DISABLE_OBSOLETE_IDE | 70 | select MIPS_DISABLE_OBSOLETE_IDE |
65 | select SYS_SUPPORTS_LITTLE_ENDIAN | 71 | select SYS_SUPPORTS_LITTLE_ENDIAN |
72 | select SYS_HAS_EARLY_PRINTK | ||
66 | 73 | ||
67 | config MIPS_MIRAGE | 74 | config MIPS_MIRAGE |
68 | bool "Alchemy Mirage board" | 75 | bool "Alchemy Mirage board" |
69 | select DMA_NONCOHERENT | 76 | select DMA_NONCOHERENT |
70 | select SOC_AU1500 | 77 | select SOC_AU1500 |
71 | select SYS_SUPPORTS_LITTLE_ENDIAN | 78 | select SYS_SUPPORTS_LITTLE_ENDIAN |
79 | select SYS_HAS_EARLY_PRINTK | ||
72 | 80 | ||
73 | config MIPS_PB1000 | 81 | config MIPS_PB1000 |
74 | bool "Alchemy PB1000 board" | 82 | bool "Alchemy PB1000 board" |
@@ -77,6 +85,7 @@ config MIPS_PB1000 | |||
77 | select HW_HAS_PCI | 85 | select HW_HAS_PCI |
78 | select SWAP_IO_SPACE | 86 | select SWAP_IO_SPACE |
79 | select SYS_SUPPORTS_LITTLE_ENDIAN | 87 | select SYS_SUPPORTS_LITTLE_ENDIAN |
88 | select SYS_HAS_EARLY_PRINTK | ||
80 | 89 | ||
81 | config MIPS_PB1100 | 90 | config MIPS_PB1100 |
82 | bool "Alchemy PB1100 board" | 91 | bool "Alchemy PB1100 board" |
@@ -85,6 +94,7 @@ config MIPS_PB1100 | |||
85 | select HW_HAS_PCI | 94 | select HW_HAS_PCI |
86 | select SWAP_IO_SPACE | 95 | select SWAP_IO_SPACE |
87 | select SYS_SUPPORTS_LITTLE_ENDIAN | 96 | select SYS_SUPPORTS_LITTLE_ENDIAN |
97 | select SYS_HAS_EARLY_PRINTK | ||
88 | 98 | ||
89 | config MIPS_PB1200 | 99 | config MIPS_PB1200 |
90 | bool "Alchemy PB1200 board" | 100 | bool "Alchemy PB1200 board" |
@@ -92,6 +102,7 @@ config MIPS_PB1200 | |||
92 | select DMA_NONCOHERENT | 102 | select DMA_NONCOHERENT |
93 | select MIPS_DISABLE_OBSOLETE_IDE | 103 | select MIPS_DISABLE_OBSOLETE_IDE |
94 | select SYS_SUPPORTS_LITTLE_ENDIAN | 104 | select SYS_SUPPORTS_LITTLE_ENDIAN |
105 | select SYS_HAS_EARLY_PRINTK | ||
95 | 106 | ||
96 | config MIPS_PB1500 | 107 | config MIPS_PB1500 |
97 | bool "Alchemy PB1500 board" | 108 | bool "Alchemy PB1500 board" |
@@ -99,6 +110,7 @@ config MIPS_PB1500 | |||
99 | select DMA_NONCOHERENT | 110 | select DMA_NONCOHERENT |
100 | select HW_HAS_PCI | 111 | select HW_HAS_PCI |
101 | select SYS_SUPPORTS_LITTLE_ENDIAN | 112 | select SYS_SUPPORTS_LITTLE_ENDIAN |
113 | select SYS_HAS_EARLY_PRINTK | ||
102 | 114 | ||
103 | config MIPS_PB1550 | 115 | config MIPS_PB1550 |
104 | bool "Alchemy PB1550 board" | 116 | bool "Alchemy PB1550 board" |
@@ -107,12 +119,14 @@ config MIPS_PB1550 | |||
107 | select HW_HAS_PCI | 119 | select HW_HAS_PCI |
108 | select MIPS_DISABLE_OBSOLETE_IDE | 120 | select MIPS_DISABLE_OBSOLETE_IDE |
109 | select SYS_SUPPORTS_LITTLE_ENDIAN | 121 | select SYS_SUPPORTS_LITTLE_ENDIAN |
122 | select SYS_HAS_EARLY_PRINTK | ||
110 | 123 | ||
111 | config MIPS_XXS1500 | 124 | config MIPS_XXS1500 |
112 | bool "MyCable XXS1500 board" | 125 | bool "MyCable XXS1500 board" |
113 | select DMA_NONCOHERENT | 126 | select DMA_NONCOHERENT |
114 | select SOC_AU1500 | 127 | select SOC_AU1500 |
115 | select SYS_SUPPORTS_LITTLE_ENDIAN | 128 | select SYS_SUPPORTS_LITTLE_ENDIAN |
129 | select SYS_HAS_EARLY_PRINTK | ||
116 | 130 | ||
117 | endchoice | 131 | endchoice |
118 | 132 | ||