blob: c73eb820955532fc84f39c29df20f8cab2bc3b87 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/m68k/mac/config.c
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file COPYING in the main directory of this archive
6 * for more details.
7 */
8
9/*
10 * Miscellaneous linux stuff
11 */
12
Arnd Bergmann084b3602016-05-30 20:57:59 +020013#include <linux/errno.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#include <linux/module.h>
15#include <linux/types.h>
16#include <linux/mm.h>
17#include <linux/tty.h>
18#include <linux/console.h>
19#include <linux/interrupt.h>
20/* keyb */
21#include <linux/random.h>
22#include <linux/delay.h>
23/* keyb */
24#include <linux/init.h>
25#include <linux/vt_kern.h>
Laurent Vivier8852ecd2008-11-15 16:10:10 +010026#include <linux/platform_device.h>
Finn Thain18814ee2009-11-17 20:03:05 +110027#include <linux/adb.h>
28#include <linux/cuda.h>
Arnd Bergmann084b3602016-05-30 20:57:59 +020029#include <linux/rtc.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#include <asm/setup.h>
32#include <asm/bootinfo.h>
Geert Uytterhoeven4c3c5222013-10-02 11:37:33 +020033#include <asm/bootinfo-mac.h>
Geert Uytterhoevenabe48102013-10-04 11:41:24 +020034#include <asm/byteorder.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
Linus Torvalds1da177e2005-04-16 15:20:36 -070036#include <asm/io.h>
37#include <asm/irq.h>
38#include <asm/pgtable.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#include <asm/machdep.h>
40
41#include <asm/macintosh.h>
42#include <asm/macints.h>
43#include <asm/machw.h>
44
45#include <asm/mac_iop.h>
46#include <asm/mac_via.h>
47#include <asm/mac_oss.h>
48#include <asm/mac_psc.h>
49
50/* Mac bootinfo struct */
Linus Torvalds1da177e2005-04-16 15:20:36 -070051struct mac_booter_data mac_bi_data;
Linus Torvalds1da177e2005-04-16 15:20:36 -070052
Linus Torvalds1da177e2005-04-16 15:20:36 -070053/* The phys. video addr. - might be bogus on some machines */
Adrian Bunk8dfbdf42008-07-17 21:16:25 +020054static unsigned long mac_orig_videoaddr;
Linus Torvalds1da177e2005-04-16 15:20:36 -070055
56/* Mac specific timer functions */
Stephen Warrenc8d5ba12012-11-08 11:34:55 -070057extern u32 mac_gettimeoffset(void);
Roman Zippel6ff58012007-05-01 22:32:43 +020058extern int mac_hwclk(int, struct rtc_time *);
59extern int mac_set_clock_mmss(unsigned long);
Linus Torvalds1da177e2005-04-16 15:20:36 -070060extern void iop_preinit(void);
61extern void iop_init(void);
62extern void via_init(void);
David Howells40220c12006-10-09 12:19:47 +010063extern void via_init_clock(irq_handler_t func);
Linus Torvalds1da177e2005-04-16 15:20:36 -070064extern void via_flush_cache(void);
65extern void oss_init(void);
66extern void psc_init(void);
67extern void baboon_init(void);
68
69extern void mac_mksound(unsigned int, unsigned int);
70
Linus Torvalds1da177e2005-04-16 15:20:36 -070071static void mac_get_model(char *str);
Adrian Bunk8dfbdf42008-07-17 21:16:25 +020072static void mac_identify(void);
73static void mac_report_hardware(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070074
Al Viro66a3f822007-07-20 04:33:28 +010075static void __init mac_sched_init(irq_handler_t vector)
Linus Torvalds1da177e2005-04-16 15:20:36 -070076{
77 via_init_clock(vector);
78}
79
Linus Torvalds1da177e2005-04-16 15:20:36 -070080/*
81 * Parse a Macintosh-specific record in the bootinfo
82 */
83
84int __init mac_parse_bootinfo(const struct bi_record *record)
85{
Roman Zippel6ff58012007-05-01 22:32:43 +020086 int unknown = 0;
Geert Uytterhoevenabe48102013-10-04 11:41:24 +020087 const void *data = record->data;
Linus Torvalds1da177e2005-04-16 15:20:36 -070088
Geert Uytterhoevenabe48102013-10-04 11:41:24 +020089 switch (be16_to_cpu(record->tag)) {
Linus Torvalds1da177e2005-04-16 15:20:36 -070090 case BI_MAC_MODEL:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +020091 mac_bi_data.id = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +020092 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -070093 case BI_MAC_VADDR:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +020094 mac_bi_data.videoaddr = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +020095 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -070096 case BI_MAC_VDEPTH:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +020097 mac_bi_data.videodepth = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +020098 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -070099 case BI_MAC_VROW:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200100 mac_bi_data.videorow = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200101 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700102 case BI_MAC_VDIM:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200103 mac_bi_data.dimensions = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200104 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105 case BI_MAC_VLOGICAL:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200106 mac_orig_videoaddr = be32_to_cpup(data);
107 mac_bi_data.videological =
108 VIDEOMEMBASE + (mac_orig_videoaddr & ~VIDEOMEMMASK);
Roman Zippel6ff58012007-05-01 22:32:43 +0200109 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700110 case BI_MAC_SCCBASE:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200111 mac_bi_data.sccbase = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200112 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113 case BI_MAC_BTIME:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200114 mac_bi_data.boottime = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200115 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116 case BI_MAC_GMTBIAS:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200117 mac_bi_data.gmtbias = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200118 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119 case BI_MAC_MEMSIZE:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200120 mac_bi_data.memsize = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200121 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 case BI_MAC_CPUID:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200123 mac_bi_data.cpuid = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200124 break;
125 case BI_MAC_ROMBASE:
Geert Uytterhoevenabe48102013-10-04 11:41:24 +0200126 mac_bi_data.rombase = be32_to_cpup(data);
Roman Zippel6ff58012007-05-01 22:32:43 +0200127 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128 default:
Roman Zippel6ff58012007-05-01 22:32:43 +0200129 unknown = 1;
130 break;
131 }
132 return unknown;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133}
134
135/*
136 * Flip into 24bit mode for an instant - flushes the L2 cache card. We
137 * have to disable interrupts for this. Our IRQ handlers will crap
138 * themselves if they take an IRQ in 24bit mode!
139 */
140
141static void mac_cache_card_flush(int writeback)
142{
143 unsigned long flags;
Roman Zippel6ff58012007-05-01 22:32:43 +0200144
Linus Torvalds1da177e2005-04-16 15:20:36 -0700145 local_irq_save(flags);
146 via_flush_cache();
147 local_irq_restore(flags);
148}
149
150void __init config_mac(void)
151{
Roman Zippel6ff58012007-05-01 22:32:43 +0200152 if (!MACH_IS_MAC)
Geert Uytterhoeven889121b2017-04-08 19:51:15 -0400153 pr_err("ERROR: no Mac, but config_mac() called!!\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154
Roman Zippel6ff58012007-05-01 22:32:43 +0200155 mach_sched_init = mac_sched_init;
156 mach_init_IRQ = mac_init_IRQ;
157 mach_get_model = mac_get_model;
Stephen Warrenc8d5ba12012-11-08 11:34:55 -0700158 arch_gettimeoffset = mac_gettimeoffset;
Roman Zippel6ff58012007-05-01 22:32:43 +0200159 mach_hwclk = mac_hwclk;
Roman Zippel6ff58012007-05-01 22:32:43 +0200160 mach_set_clock_mmss = mac_set_clock_mmss;
161 mach_reset = mac_reset;
162 mach_halt = mac_poweroff;
163 mach_power_off = mac_poweroff;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164 mach_max_dma_address = 0xffffffff;
Geert Uytterhoevena1a9e882016-09-05 13:18:15 +0200165#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
Roman Zippel6ff58012007-05-01 22:32:43 +0200166 mach_beep = mac_mksound;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700167#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168
169 /*
170 * Determine hardware present
171 */
172
173 mac_identify();
174 mac_report_hardware();
175
Roman Zippel6ff58012007-05-01 22:32:43 +0200176 /*
177 * AFAIK only the IIci takes a cache card. The IIfx has onboard
178 * cache ... someone needs to figure out how to tell if it's on or
179 * not.
180 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700181
182 if (macintosh_config->ident == MAC_MODEL_IICI
Roman Zippel6ff58012007-05-01 22:32:43 +0200183 || macintosh_config->ident == MAC_MODEL_IIFX)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700184 mach_l2_flush = mac_cache_card_flush;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185}
186
187
188/*
Finn Thain53aac0a2009-11-04 00:39:09 +1100189 * Macintosh Table: hardcoded model configuration data.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700190 *
Finn Thain53aac0a2009-11-04 00:39:09 +1100191 * Much of this was defined by Alan, based on who knows what docs.
192 * I've added a lot more, and some of that was pure guesswork based
193 * on hardware pages present on the Mac web site. Possibly wildly
194 * inaccurate, so look here if a new Mac model won't run. Example: if
195 * a Mac crashes immediately after the VIA1 registers have been dumped
196 * to the screen, it probably died attempting to read DirB on a RBV.
Finn Thain608e287b02011-10-24 01:11:22 +1100197 * Meaning it should have MAC_VIA_IICI here :-)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198 */
199
200struct mac_model *macintosh_config;
201EXPORT_SYMBOL(macintosh_config);
202
Roman Zippel6ff58012007-05-01 22:32:43 +0200203static struct mac_model mac_data_table[] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700204 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100205 * We'll pretend to be a Macintosh II, that's pretty safe.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206 */
207
208 {
209 .ident = MAC_MODEL_II,
210 .name = "Unknown",
211 .adb_type = MAC_ADB_II,
212 .via_type = MAC_VIA_II,
213 .scsi_type = MAC_SCSI_OLD,
214 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500215 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100216 .floppy_type = MAC_FLOPPY_IWM,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217 },
218
219 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100220 * Original Mac II hardware
Linus Torvalds1da177e2005-04-16 15:20:36 -0700221 */
222
223 {
224 .ident = MAC_MODEL_II,
225 .name = "II",
226 .adb_type = MAC_ADB_II,
227 .via_type = MAC_VIA_II,
228 .scsi_type = MAC_SCSI_OLD,
229 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500230 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100231 .floppy_type = MAC_FLOPPY_IWM,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700232 }, {
233 .ident = MAC_MODEL_IIX,
234 .name = "IIx",
235 .adb_type = MAC_ADB_II,
236 .via_type = MAC_VIA_II,
237 .scsi_type = MAC_SCSI_OLD,
238 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500239 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100240 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700241 }, {
242 .ident = MAC_MODEL_IICX,
243 .name = "IIcx",
244 .adb_type = MAC_ADB_II,
245 .via_type = MAC_VIA_II,
246 .scsi_type = MAC_SCSI_OLD,
247 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500248 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100249 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700250 }, {
251 .ident = MAC_MODEL_SE30,
252 .name = "SE/30",
253 .adb_type = MAC_ADB_II,
254 .via_type = MAC_VIA_II,
255 .scsi_type = MAC_SCSI_OLD,
256 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500257 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100258 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700259 },
260
261 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100262 * Weirdified Mac II hardware - all subtly different. Gee thanks
263 * Apple. All these boxes seem to have VIA2 in a different place to
264 * the Mac II (+1A000 rather than +4000)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265 * CSA: see http://developer.apple.com/technotes/hw/hw_09.html
266 */
267
268 {
269 .ident = MAC_MODEL_IICI,
270 .name = "IIci",
271 .adb_type = MAC_ADB_II,
Finn Thain608e287b02011-10-24 01:11:22 +1100272 .via_type = MAC_VIA_IICI,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700273 .scsi_type = MAC_SCSI_OLD,
274 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500275 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100276 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700277 }, {
278 .ident = MAC_MODEL_IIFX,
279 .name = "IIfx",
280 .adb_type = MAC_ADB_IOP,
Finn Thain608e287b02011-10-24 01:11:22 +1100281 .via_type = MAC_VIA_IICI,
Finn Thaincbad48d2014-11-12 16:12:07 +1100282 .scsi_type = MAC_SCSI_IIFX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700283 .scc_type = MAC_SCC_IOP,
Finn Thainb87eaec2018-01-13 17:37:13 -0500284 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100285 .floppy_type = MAC_FLOPPY_SWIM_IOP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700286 }, {
287 .ident = MAC_MODEL_IISI,
288 .name = "IIsi",
Finn Thainf74faec2016-12-31 19:56:26 -0500289 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100290 .via_type = MAC_VIA_IICI,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291 .scsi_type = MAC_SCSI_OLD,
292 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500293 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100294 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700295 }, {
296 .ident = MAC_MODEL_IIVI,
297 .name = "IIvi",
Finn Thainf74faec2016-12-31 19:56:26 -0500298 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100299 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100300 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700301 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500302 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100303 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304 }, {
305 .ident = MAC_MODEL_IIVX,
306 .name = "IIvx",
Finn Thainf74faec2016-12-31 19:56:26 -0500307 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100308 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100309 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700310 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500311 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100312 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700313 },
314
315 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100316 * Classic models (guessing: similar to SE/30? Nope, similar to LC...)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700317 */
318
319 {
320 .ident = MAC_MODEL_CLII,
321 .name = "Classic II",
Finn Thainf74faec2016-12-31 19:56:26 -0500322 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100323 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100324 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325 .scc_type = MAC_SCC_II,
Finn Thain53aac0a2009-11-04 00:39:09 +1100326 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327 }, {
328 .ident = MAC_MODEL_CCL,
329 .name = "Color Classic",
330 .adb_type = MAC_ADB_CUDA,
Finn Thain608e287b02011-10-24 01:11:22 +1100331 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100332 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700333 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500334 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100335 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Finn Thain1b460102010-05-29 03:27:18 +1000336 }, {
337 .ident = MAC_MODEL_CCLII,
338 .name = "Color Classic II",
339 .adb_type = MAC_ADB_CUDA,
Finn Thain608e287b02011-10-24 01:11:22 +1100340 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100341 .scsi_type = MAC_SCSI_LC,
Finn Thain1b460102010-05-29 03:27:18 +1000342 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500343 .expansion_type = MAC_EXP_PDS,
Finn Thain1b460102010-05-29 03:27:18 +1000344 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Laurent Vivier7ad93b42008-11-06 20:57:41 +0100345 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346
347 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100348 * Some Mac LC machines. Basically the same as the IIci, ADB like IIsi
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 */
350
351 {
352 .ident = MAC_MODEL_LC,
353 .name = "LC",
Finn Thainf74faec2016-12-31 19:56:26 -0500354 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100355 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100356 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700357 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500358 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100359 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 }, {
361 .ident = MAC_MODEL_LCII,
362 .name = "LC II",
Finn Thainf74faec2016-12-31 19:56:26 -0500363 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100364 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100365 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700366 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500367 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100368 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700369 }, {
370 .ident = MAC_MODEL_LCIII,
371 .name = "LC III",
Finn Thainf74faec2016-12-31 19:56:26 -0500372 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100373 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100374 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500376 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100377 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700378 },
379
380 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100381 * Quadra. Video is at 0xF9000000, via is like a MacII. We label it
382 * differently as some of the stuff connected to VIA2 seems different.
383 * Better SCSI chip and onboard ethernet using a NatSemi SONIC except
384 * the 660AV and 840AV which use an AMD 79C940 (MACE).
385 * The 700, 900 and 950 have some I/O chips in the wrong place to
386 * confuse us. The 840AV has a SCSI location of its own (same as
387 * the 660AV).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700388 */
389
390 {
391 .ident = MAC_MODEL_Q605,
392 .name = "Quadra 605",
393 .adb_type = MAC_ADB_CUDA,
394 .via_type = MAC_VIA_QUADRA,
395 .scsi_type = MAC_SCSI_QUADRA,
396 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500397 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100398 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700399 }, {
400 .ident = MAC_MODEL_Q605_ACC,
401 .name = "Quadra 605",
402 .adb_type = MAC_ADB_CUDA,
403 .via_type = MAC_VIA_QUADRA,
404 .scsi_type = MAC_SCSI_QUADRA,
405 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500406 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100407 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408 }, {
409 .ident = MAC_MODEL_Q610,
410 .name = "Quadra 610",
411 .adb_type = MAC_ADB_II,
412 .via_type = MAC_VIA_QUADRA,
413 .scsi_type = MAC_SCSI_QUADRA,
414 .scc_type = MAC_SCC_QUADRA,
415 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500416 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100417 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700418 }, {
419 .ident = MAC_MODEL_Q630,
420 .name = "Quadra 630",
421 .adb_type = MAC_ADB_CUDA,
422 .via_type = MAC_VIA_QUADRA,
423 .scsi_type = MAC_SCSI_QUADRA,
424 .ide_type = MAC_IDE_QUADRA,
425 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500426 .expansion_type = MAC_EXP_PDS_COMM,
Finn Thain53aac0a2009-11-04 00:39:09 +1100427 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428 }, {
429 .ident = MAC_MODEL_Q650,
430 .name = "Quadra 650",
431 .adb_type = MAC_ADB_II,
432 .via_type = MAC_VIA_QUADRA,
433 .scsi_type = MAC_SCSI_QUADRA,
434 .scc_type = MAC_SCC_QUADRA,
435 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500436 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100437 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700438 },
Finn Thain53aac0a2009-11-04 00:39:09 +1100439 /* The Q700 does have a NS Sonic */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700440 {
441 .ident = MAC_MODEL_Q700,
442 .name = "Quadra 700",
443 .adb_type = MAC_ADB_II,
444 .via_type = MAC_VIA_QUADRA,
445 .scsi_type = MAC_SCSI_QUADRA2,
446 .scc_type = MAC_SCC_QUADRA,
447 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500448 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100449 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700450 }, {
451 .ident = MAC_MODEL_Q800,
452 .name = "Quadra 800",
453 .adb_type = MAC_ADB_II,
454 .via_type = MAC_VIA_QUADRA,
455 .scsi_type = MAC_SCSI_QUADRA,
456 .scc_type = MAC_SCC_QUADRA,
457 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500458 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100459 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700460 }, {
461 .ident = MAC_MODEL_Q840,
462 .name = "Quadra 840AV",
463 .adb_type = MAC_ADB_CUDA,
464 .via_type = MAC_VIA_QUADRA,
465 .scsi_type = MAC_SCSI_QUADRA3,
466 .scc_type = MAC_SCC_PSC,
467 .ether_type = MAC_ETHER_MACE,
Finn Thainb87eaec2018-01-13 17:37:13 -0500468 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100469 .floppy_type = MAC_FLOPPY_AV,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470 }, {
471 .ident = MAC_MODEL_Q900,
472 .name = "Quadra 900",
473 .adb_type = MAC_ADB_IOP,
474 .via_type = MAC_VIA_QUADRA,
475 .scsi_type = MAC_SCSI_QUADRA2,
476 .scc_type = MAC_SCC_IOP,
477 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500478 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100479 .floppy_type = MAC_FLOPPY_SWIM_IOP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480 }, {
481 .ident = MAC_MODEL_Q950,
482 .name = "Quadra 950",
483 .adb_type = MAC_ADB_IOP,
484 .via_type = MAC_VIA_QUADRA,
485 .scsi_type = MAC_SCSI_QUADRA2,
486 .scc_type = MAC_SCC_IOP,
487 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500488 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100489 .floppy_type = MAC_FLOPPY_SWIM_IOP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700490 },
491
492 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100493 * Performa - more LC type machines
Linus Torvalds1da177e2005-04-16 15:20:36 -0700494 */
495
496 {
497 .ident = MAC_MODEL_P460,
Finn Thain53aac0a2009-11-04 00:39:09 +1100498 .name = "Performa 460",
Finn Thainf74faec2016-12-31 19:56:26 -0500499 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100500 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100501 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500503 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100504 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700505 }, {
506 .ident = MAC_MODEL_P475,
Finn Thain53aac0a2009-11-04 00:39:09 +1100507 .name = "Performa 475",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700508 .adb_type = MAC_ADB_CUDA,
509 .via_type = MAC_VIA_QUADRA,
510 .scsi_type = MAC_SCSI_QUADRA,
511 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500512 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100513 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700514 }, {
515 .ident = MAC_MODEL_P475F,
Finn Thain53aac0a2009-11-04 00:39:09 +1100516 .name = "Performa 475",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700517 .adb_type = MAC_ADB_CUDA,
518 .via_type = MAC_VIA_QUADRA,
519 .scsi_type = MAC_SCSI_QUADRA,
520 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500521 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100522 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700523 }, {
524 .ident = MAC_MODEL_P520,
Finn Thain53aac0a2009-11-04 00:39:09 +1100525 .name = "Performa 520",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700526 .adb_type = MAC_ADB_CUDA,
Finn Thain608e287b02011-10-24 01:11:22 +1100527 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100528 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700529 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500530 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100531 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700532 }, {
533 .ident = MAC_MODEL_P550,
Finn Thain53aac0a2009-11-04 00:39:09 +1100534 .name = "Performa 550",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700535 .adb_type = MAC_ADB_CUDA,
Finn Thain608e287b02011-10-24 01:11:22 +1100536 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100537 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700538 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500539 .expansion_type = MAC_EXP_PDS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100540 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700541 },
Finn Thain53aac0a2009-11-04 00:39:09 +1100542 /* These have the comm slot, and therefore possibly SONIC ethernet */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700543 {
544 .ident = MAC_MODEL_P575,
545 .name = "Performa 575",
546 .adb_type = MAC_ADB_CUDA,
547 .via_type = MAC_VIA_QUADRA,
548 .scsi_type = MAC_SCSI_QUADRA,
549 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500550 .expansion_type = MAC_EXP_PDS_COMM,
Finn Thain53aac0a2009-11-04 00:39:09 +1100551 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700552 }, {
553 .ident = MAC_MODEL_P588,
554 .name = "Performa 588",
555 .adb_type = MAC_ADB_CUDA,
556 .via_type = MAC_VIA_QUADRA,
557 .scsi_type = MAC_SCSI_QUADRA,
558 .ide_type = MAC_IDE_QUADRA,
559 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500560 .expansion_type = MAC_EXP_PDS_COMM,
Finn Thain53aac0a2009-11-04 00:39:09 +1100561 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700562 }, {
563 .ident = MAC_MODEL_TV,
564 .name = "TV",
565 .adb_type = MAC_ADB_CUDA,
Finn Thain608e287b02011-10-24 01:11:22 +1100566 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100567 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700568 .scc_type = MAC_SCC_II,
Finn Thain53aac0a2009-11-04 00:39:09 +1100569 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700570 }, {
571 .ident = MAC_MODEL_P600,
572 .name = "Performa 600",
Finn Thainf74faec2016-12-31 19:56:26 -0500573 .adb_type = MAC_ADB_EGRET,
Finn Thain608e287b02011-10-24 01:11:22 +1100574 .via_type = MAC_VIA_IICI,
Finn Thain2e874d12015-01-07 11:17:35 +1100575 .scsi_type = MAC_SCSI_LC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 .scc_type = MAC_SCC_II,
Finn Thainb87eaec2018-01-13 17:37:13 -0500577 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100578 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700579 },
580
581 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100582 * Centris - just guessing again; maybe like Quadra.
583 * The C610 may or may not have SONIC. We probe to make sure.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700584 */
585
Linus Torvalds1da177e2005-04-16 15:20:36 -0700586 {
587 .ident = MAC_MODEL_C610,
588 .name = "Centris 610",
589 .adb_type = MAC_ADB_II,
590 .via_type = MAC_VIA_QUADRA,
591 .scsi_type = MAC_SCSI_QUADRA,
592 .scc_type = MAC_SCC_QUADRA,
593 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500594 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100595 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700596 }, {
597 .ident = MAC_MODEL_C650,
598 .name = "Centris 650",
599 .adb_type = MAC_ADB_II,
600 .via_type = MAC_VIA_QUADRA,
601 .scsi_type = MAC_SCSI_QUADRA,
602 .scc_type = MAC_SCC_QUADRA,
603 .ether_type = MAC_ETHER_SONIC,
Finn Thainb87eaec2018-01-13 17:37:13 -0500604 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100605 .floppy_type = MAC_FLOPPY_SWIM_ADDR1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700606 }, {
607 .ident = MAC_MODEL_C660,
608 .name = "Centris 660AV",
609 .adb_type = MAC_ADB_CUDA,
610 .via_type = MAC_VIA_QUADRA,
611 .scsi_type = MAC_SCSI_QUADRA3,
612 .scc_type = MAC_SCC_PSC,
613 .ether_type = MAC_ETHER_MACE,
Finn Thainb87eaec2018-01-13 17:37:13 -0500614 .expansion_type = MAC_EXP_PDS_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100615 .floppy_type = MAC_FLOPPY_AV,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700616 },
617
618 /*
619 * The PowerBooks all the same "Combo" custom IC for SCSI and SCC
620 * and a PMU (in two variations?) for ADB. Most of them use the
621 * Quadra-style VIAs. A few models also have IDE from hell.
622 */
623
624 {
625 .ident = MAC_MODEL_PB140,
626 .name = "PowerBook 140",
627 .adb_type = MAC_ADB_PB1,
628 .via_type = MAC_VIA_QUADRA,
629 .scsi_type = MAC_SCSI_OLD,
630 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100631 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700632 }, {
633 .ident = MAC_MODEL_PB145,
634 .name = "PowerBook 145",
635 .adb_type = MAC_ADB_PB1,
636 .via_type = MAC_VIA_QUADRA,
637 .scsi_type = MAC_SCSI_OLD,
638 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100639 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700640 }, {
641 .ident = MAC_MODEL_PB150,
642 .name = "PowerBook 150",
Finn Thain4107c452011-10-24 01:11:20 +1100643 .adb_type = MAC_ADB_PB2,
Finn Thain608e287b02011-10-24 01:11:22 +1100644 .via_type = MAC_VIA_IICI,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700645 .scsi_type = MAC_SCSI_OLD,
646 .ide_type = MAC_IDE_PB,
647 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100648 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700649 }, {
650 .ident = MAC_MODEL_PB160,
651 .name = "PowerBook 160",
652 .adb_type = MAC_ADB_PB1,
653 .via_type = MAC_VIA_QUADRA,
654 .scsi_type = MAC_SCSI_OLD,
655 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100656 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700657 }, {
658 .ident = MAC_MODEL_PB165,
659 .name = "PowerBook 165",
660 .adb_type = MAC_ADB_PB1,
661 .via_type = MAC_VIA_QUADRA,
662 .scsi_type = MAC_SCSI_OLD,
663 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100664 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700665 }, {
666 .ident = MAC_MODEL_PB165C,
667 .name = "PowerBook 165c",
668 .adb_type = MAC_ADB_PB1,
669 .via_type = MAC_VIA_QUADRA,
670 .scsi_type = MAC_SCSI_OLD,
671 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100672 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 }, {
674 .ident = MAC_MODEL_PB170,
675 .name = "PowerBook 170",
676 .adb_type = MAC_ADB_PB1,
677 .via_type = MAC_VIA_QUADRA,
678 .scsi_type = MAC_SCSI_OLD,
679 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100680 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700681 }, {
682 .ident = MAC_MODEL_PB180,
683 .name = "PowerBook 180",
684 .adb_type = MAC_ADB_PB1,
685 .via_type = MAC_VIA_QUADRA,
686 .scsi_type = MAC_SCSI_OLD,
687 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100688 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700689 }, {
690 .ident = MAC_MODEL_PB180C,
691 .name = "PowerBook 180c",
692 .adb_type = MAC_ADB_PB1,
693 .via_type = MAC_VIA_QUADRA,
694 .scsi_type = MAC_SCSI_OLD,
695 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100696 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700697 }, {
698 .ident = MAC_MODEL_PB190,
699 .name = "PowerBook 190",
700 .adb_type = MAC_ADB_PB2,
701 .via_type = MAC_VIA_QUADRA,
Finn Thaincbad48d2014-11-12 16:12:07 +1100702 .scsi_type = MAC_SCSI_LATE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700703 .ide_type = MAC_IDE_BABOON,
704 .scc_type = MAC_SCC_QUADRA,
Finn Thain53aac0a2009-11-04 00:39:09 +1100705 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700706 }, {
707 .ident = MAC_MODEL_PB520,
708 .name = "PowerBook 520",
709 .adb_type = MAC_ADB_PB2,
710 .via_type = MAC_VIA_QUADRA,
Finn Thaincbad48d2014-11-12 16:12:07 +1100711 .scsi_type = MAC_SCSI_LATE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700712 .scc_type = MAC_SCC_QUADRA,
713 .ether_type = MAC_ETHER_SONIC,
Finn Thain53aac0a2009-11-04 00:39:09 +1100714 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700715 },
716
717 /*
718 * PowerBook Duos are pretty much like normal PowerBooks
719 * All of these probably have onboard SONIC in the Dock which
720 * means we'll have to probe for it eventually.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700721 */
722
723 {
724 .ident = MAC_MODEL_PB210,
725 .name = "PowerBook Duo 210",
726 .adb_type = MAC_ADB_PB2,
Finn Thain608e287b02011-10-24 01:11:22 +1100727 .via_type = MAC_VIA_IICI,
Finn Thaincbad48d2014-11-12 16:12:07 +1100728 .scsi_type = MAC_SCSI_DUO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700729 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500730 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100731 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700732 }, {
733 .ident = MAC_MODEL_PB230,
734 .name = "PowerBook Duo 230",
735 .adb_type = MAC_ADB_PB2,
Finn Thain608e287b02011-10-24 01:11:22 +1100736 .via_type = MAC_VIA_IICI,
Finn Thaincbad48d2014-11-12 16:12:07 +1100737 .scsi_type = MAC_SCSI_DUO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700738 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500739 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100740 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700741 }, {
742 .ident = MAC_MODEL_PB250,
743 .name = "PowerBook Duo 250",
744 .adb_type = MAC_ADB_PB2,
Finn Thain608e287b02011-10-24 01:11:22 +1100745 .via_type = MAC_VIA_IICI,
Finn Thaincbad48d2014-11-12 16:12:07 +1100746 .scsi_type = MAC_SCSI_DUO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700747 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500748 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100749 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700750 }, {
751 .ident = MAC_MODEL_PB270C,
752 .name = "PowerBook Duo 270c",
753 .adb_type = MAC_ADB_PB2,
Finn Thain608e287b02011-10-24 01:11:22 +1100754 .via_type = MAC_VIA_IICI,
Finn Thaincbad48d2014-11-12 16:12:07 +1100755 .scsi_type = MAC_SCSI_DUO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700756 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500757 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100758 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700759 }, {
760 .ident = MAC_MODEL_PB280,
761 .name = "PowerBook Duo 280",
762 .adb_type = MAC_ADB_PB2,
Finn Thain608e287b02011-10-24 01:11:22 +1100763 .via_type = MAC_VIA_IICI,
Finn Thaincbad48d2014-11-12 16:12:07 +1100764 .scsi_type = MAC_SCSI_DUO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500766 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100767 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700768 }, {
769 .ident = MAC_MODEL_PB280C,
770 .name = "PowerBook Duo 280c",
771 .adb_type = MAC_ADB_PB2,
Finn Thain608e287b02011-10-24 01:11:22 +1100772 .via_type = MAC_VIA_IICI,
Finn Thaincbad48d2014-11-12 16:12:07 +1100773 .scsi_type = MAC_SCSI_DUO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700774 .scc_type = MAC_SCC_QUADRA,
Finn Thainb87eaec2018-01-13 17:37:13 -0500775 .expansion_type = MAC_EXP_NUBUS,
Finn Thain53aac0a2009-11-04 00:39:09 +1100776 .floppy_type = MAC_FLOPPY_SWIM_ADDR2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700777 },
778
779 /*
Finn Thain53aac0a2009-11-04 00:39:09 +1100780 * Other stuff?
Linus Torvalds1da177e2005-04-16 15:20:36 -0700781 */
Finn Thain53aac0a2009-11-04 00:39:09 +1100782
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 {
784 .ident = -1
785 }
786};
787
Finn Thain80614e52009-11-17 20:06:48 +1100788static struct resource scc_a_rsrcs[] = {
789 { .flags = IORESOURCE_MEM },
790 { .flags = IORESOURCE_IRQ },
791};
792
793static struct resource scc_b_rsrcs[] = {
794 { .flags = IORESOURCE_MEM },
795 { .flags = IORESOURCE_IRQ },
796};
797
798struct platform_device scc_a_pdev = {
799 .name = "scc",
800 .id = 0,
801 .num_resources = ARRAY_SIZE(scc_a_rsrcs),
802 .resource = scc_a_rsrcs,
803};
804EXPORT_SYMBOL(scc_a_pdev);
805
806struct platform_device scc_b_pdev = {
807 .name = "scc",
808 .id = 1,
809 .num_resources = ARRAY_SIZE(scc_b_rsrcs),
810 .resource = scc_b_rsrcs,
811};
812EXPORT_SYMBOL(scc_b_pdev);
813
Adrian Bunk8dfbdf42008-07-17 21:16:25 +0200814static void __init mac_identify(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700815{
816 struct mac_model *m;
817
818 /* Penguin data useful? */
819 int model = mac_bi_data.id;
820 if (!model) {
821 /* no bootinfo model id -> NetBSD booter was used! */
822 /* XXX FIXME: breaks for model > 31 */
Roman Zippel6ff58012007-05-01 22:32:43 +0200823 model = (mac_bi_data.cpuid >> 2) & 63;
Geert Uytterhoeven889121b2017-04-08 19:51:15 -0400824 pr_warn("No bootinfo model ID, using cpuid instead (obsolete bootloader?)\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700825 }
826
827 macintosh_config = mac_data_table;
Roman Zippel6ff58012007-05-01 22:32:43 +0200828 for (m = macintosh_config; m->ident != -1; m++) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829 if (m->ident == model) {
830 macintosh_config = m;
831 break;
832 }
833 }
834
Finn Thain80614e52009-11-17 20:06:48 +1100835 /* Set up serial port resources for the console initcall. */
836
837 scc_a_rsrcs[0].start = (resource_size_t) mac_bi_data.sccbase + 2;
838 scc_a_rsrcs[0].end = scc_a_rsrcs[0].start;
839 scc_b_rsrcs[0].start = (resource_size_t) mac_bi_data.sccbase;
840 scc_b_rsrcs[0].end = scc_b_rsrcs[0].start;
841
842 switch (macintosh_config->scc_type) {
843 case MAC_SCC_PSC:
844 scc_a_rsrcs[1].start = scc_a_rsrcs[1].end = IRQ_MAC_SCC_A;
845 scc_b_rsrcs[1].start = scc_b_rsrcs[1].end = IRQ_MAC_SCC_B;
846 break;
847 default:
Finn Thainda3fb3c2011-10-24 01:11:18 +1100848 /* On non-PSC machines, the serial ports share an IRQ. */
849 if (macintosh_config->ident == MAC_MODEL_IIFX) {
850 scc_a_rsrcs[1].start = scc_a_rsrcs[1].end = IRQ_MAC_SCC;
851 scc_b_rsrcs[1].start = scc_b_rsrcs[1].end = IRQ_MAC_SCC;
852 } else {
853 scc_a_rsrcs[1].start = scc_a_rsrcs[1].end = IRQ_AUTO_4;
854 scc_b_rsrcs[1].start = scc_b_rsrcs[1].end = IRQ_AUTO_4;
855 }
Finn Thain80614e52009-11-17 20:06:48 +1100856 break;
857 }
858
Finn Thain53aac0a2009-11-04 00:39:09 +1100859 /*
860 * We need to pre-init the IOPs, if any. Otherwise
861 * the serial console won't work if the user had
862 * the serial ports set to "Faster" mode in MacOS.
863 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700864 iop_preinit();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700865
Geert Uytterhoeven889121b2017-04-08 19:51:15 -0400866 pr_info("Detected Macintosh model: %d\n", model);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700867
868 /*
869 * Report booter data:
870 */
Roman Zippel6ff58012007-05-01 22:32:43 +0200871 printk(KERN_DEBUG " Penguin bootinfo data:\n");
Geert Uytterhoeven889121b2017-04-08 19:51:15 -0400872 printk(KERN_DEBUG " Video: addr 0x%lx row 0x%lx depth %lx dimensions %ld x %ld\n",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700873 mac_bi_data.videoaddr, mac_bi_data.videorow,
874 mac_bi_data.videodepth, mac_bi_data.dimensions & 0xFFFF,
875 mac_bi_data.dimensions >> 16);
Frans Popb9b0d8b2010-02-06 18:47:11 +0100876 printk(KERN_DEBUG " Videological 0x%lx phys. 0x%lx, SCC at 0x%lx\n",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700877 mac_bi_data.videological, mac_orig_videoaddr,
878 mac_bi_data.sccbase);
Frans Popb9b0d8b2010-02-06 18:47:11 +0100879 printk(KERN_DEBUG " Boottime: 0x%lx GMTBias: 0x%lx\n",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700880 mac_bi_data.boottime, mac_bi_data.gmtbias);
Frans Popb9b0d8b2010-02-06 18:47:11 +0100881 printk(KERN_DEBUG " Machine ID: %ld CPUid: 0x%lx memory size: 0x%lx\n",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700882 mac_bi_data.id, mac_bi_data.cpuid, mac_bi_data.memsize);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700883
Linus Torvalds1da177e2005-04-16 15:20:36 -0700884 iop_init();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700885 oss_init();
Finn Thain7a0bb442017-10-26 22:45:24 -0400886 via_init();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700887 psc_init();
888 baboon_init();
Finn Thain18814ee2009-11-17 20:03:05 +1100889
890#ifdef CONFIG_ADB_CUDA
891 find_via_cuda();
892#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893}
894
Adrian Bunk8dfbdf42008-07-17 21:16:25 +0200895static void __init mac_report_hardware(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700896{
Geert Uytterhoeven889121b2017-04-08 19:51:15 -0400897 pr_info("Apple Macintosh %s\n", macintosh_config->name);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700898}
899
900static void mac_get_model(char *str)
901{
Roman Zippel6ff58012007-05-01 22:32:43 +0200902 strcpy(str, "Macintosh ");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700903 strcat(str, macintosh_config->name);
904}
Laurent Vivier8852ecd2008-11-15 16:10:10 +0100905
Finn Thaincbad48d2014-11-12 16:12:07 +1100906static const struct resource mac_scsi_iifx_rsrc[] __initconst = {
907 {
908 .flags = IORESOURCE_IRQ,
909 .start = IRQ_MAC_SCSI,
910 .end = IRQ_MAC_SCSI,
911 }, {
912 .flags = IORESOURCE_MEM,
913 .start = 0x50008000,
914 .end = 0x50009FFF,
915 },
916};
917
918static const struct resource mac_scsi_duo_rsrc[] __initconst = {
919 {
920 .flags = IORESOURCE_MEM,
921 .start = 0xFEE02000,
922 .end = 0xFEE03FFF,
923 },
924};
925
926static const struct resource mac_scsi_old_rsrc[] __initconst = {
927 {
928 .flags = IORESOURCE_IRQ,
929 .start = IRQ_MAC_SCSI,
930 .end = IRQ_MAC_SCSI,
931 }, {
932 .flags = IORESOURCE_MEM,
933 .start = 0x50010000,
934 .end = 0x50011FFF,
935 }, {
936 .flags = IORESOURCE_MEM,
937 .start = 0x50006000,
938 .end = 0x50007FFF,
939 },
940};
941
942static const struct resource mac_scsi_late_rsrc[] __initconst = {
943 {
944 .flags = IORESOURCE_IRQ,
945 .start = IRQ_MAC_SCSI,
946 .end = IRQ_MAC_SCSI,
947 }, {
948 .flags = IORESOURCE_MEM,
949 .start = 0x50010000,
950 .end = 0x50011FFF,
951 },
952};
953
954static const struct resource mac_scsi_ccl_rsrc[] __initconst = {
955 {
956 .flags = IORESOURCE_IRQ,
957 .start = IRQ_MAC_SCSI,
958 .end = IRQ_MAC_SCSI,
959 }, {
960 .flags = IORESOURCE_MEM,
961 .start = 0x50F10000,
962 .end = 0x50F11FFF,
963 }, {
964 .flags = IORESOURCE_MEM,
965 .start = 0x50F06000,
966 .end = 0x50F07FFF,
967 },
968};
969
Laurent Vivier8852ecd2008-11-15 16:10:10 +0100970int __init mac_platform_init(void)
971{
972 u8 *swim_base;
973
Geert Uytterhoeven6cfeba52012-03-18 13:21:38 +0100974 if (!MACH_IS_MAC)
975 return -ENODEV;
976
Finn Thain2724daf2009-11-04 00:39:56 +1100977 /*
Finn Thain80614e52009-11-17 20:06:48 +1100978 * Serial devices
979 */
980
981 platform_device_register(&scc_a_pdev);
982 platform_device_register(&scc_b_pdev);
983
984 /*
Finn Thain2724daf2009-11-04 00:39:56 +1100985 * Floppy device
986 */
987
Laurent Vivier8852ecd2008-11-15 16:10:10 +0100988 switch (macintosh_config->floppy_type) {
989 case MAC_FLOPPY_SWIM_ADDR1:
990 swim_base = (u8 *)(VIA1_BASE + 0x1E000);
991 break;
992 case MAC_FLOPPY_SWIM_ADDR2:
993 swim_base = (u8 *)(VIA1_BASE + 0x16000);
994 break;
995 default:
Finn Thain2724daf2009-11-04 00:39:56 +1100996 swim_base = NULL;
997 break;
Laurent Vivier8852ecd2008-11-15 16:10:10 +0100998 }
999
Finn Thain2724daf2009-11-04 00:39:56 +11001000 if (swim_base) {
Finn Thaina9373f42017-04-08 19:51:15 -04001001 struct resource swim_rsrc = {
1002 .flags = IORESOURCE_MEM,
1003 .start = (resource_size_t)swim_base,
1004 .end = (resource_size_t)swim_base + 0x2000,
1005 };
1006
1007 platform_device_register_simple("swim", -1, &swim_rsrc, 1);
Finn Thain2724daf2009-11-04 00:39:56 +11001008 }
Laurent Vivier8852ecd2008-11-15 16:10:10 +01001009
Finn Thaincff75f12009-11-04 00:41:35 +11001010 /*
1011 * SCSI device(s)
1012 */
1013
1014 switch (macintosh_config->scsi_type) {
1015 case MAC_SCSI_QUADRA:
1016 case MAC_SCSI_QUADRA3:
Finn Thaina9373f42017-04-08 19:51:15 -04001017 platform_device_register_simple("mac_esp", 0, NULL, 0);
Finn Thaincff75f12009-11-04 00:41:35 +11001018 break;
1019 case MAC_SCSI_QUADRA2:
Finn Thaina9373f42017-04-08 19:51:15 -04001020 platform_device_register_simple("mac_esp", 0, NULL, 0);
Finn Thaincff75f12009-11-04 00:41:35 +11001021 if ((macintosh_config->ident == MAC_MODEL_Q900) ||
1022 (macintosh_config->ident == MAC_MODEL_Q950))
Finn Thaina9373f42017-04-08 19:51:15 -04001023 platform_device_register_simple("mac_esp", 1, NULL, 0);
Finn Thaincff75f12009-11-04 00:41:35 +11001024 break;
Finn Thaincbad48d2014-11-12 16:12:07 +11001025 case MAC_SCSI_IIFX:
1026 /* Addresses from The Guide to Mac Family Hardware.
1027 * $5000 8000 - $5000 9FFF: SCSI DMA
1028 * $5000 C000 - $5000 DFFF: Alternate SCSI (DMA)
1029 * $5000 E000 - $5000 FFFF: Alternate SCSI (Hsk)
1030 * The SCSI DMA custom IC embeds the 53C80 core. mac_scsi does
1031 * not make use of its DMA or hardware handshaking logic.
1032 */
1033 platform_device_register_simple("mac_scsi", 0,
1034 mac_scsi_iifx_rsrc, ARRAY_SIZE(mac_scsi_iifx_rsrc));
1035 break;
1036 case MAC_SCSI_DUO:
1037 /* Addresses from the Duo Dock II Developer Note.
1038 * $FEE0 2000 - $FEE0 3FFF: normal mode
1039 * $FEE0 4000 - $FEE0 5FFF: pseudo DMA without /DRQ
1040 * $FEE0 6000 - $FEE0 7FFF: pseudo DMA with /DRQ
1041 * The NetBSD code indicates that both 5380 chips share
1042 * an IRQ (?) which would need careful handling (see mac_esp).
1043 */
1044 platform_device_register_simple("mac_scsi", 1,
1045 mac_scsi_duo_rsrc, ARRAY_SIZE(mac_scsi_duo_rsrc));
1046 /* fall through */
1047 case MAC_SCSI_OLD:
1048 /* Addresses from Developer Notes for Duo System,
1049 * PowerBook 180 & 160, 140 & 170, Macintosh IIsi
1050 * and also from The Guide to Mac Family Hardware for
1051 * SE/30, II, IIx, IIcx, IIci.
1052 * $5000 6000 - $5000 7FFF: pseudo-DMA with /DRQ
1053 * $5001 0000 - $5001 1FFF: normal mode
1054 * $5001 2000 - $5001 3FFF: pseudo-DMA without /DRQ
1055 * GMFH says that $5000 0000 - $50FF FFFF "wraps
1056 * $5000 0000 - $5001 FFFF eight times" (!)
1057 * mess.org says IIci and Color Classic do not alias
1058 * I/O address space.
1059 */
1060 platform_device_register_simple("mac_scsi", 0,
1061 mac_scsi_old_rsrc, ARRAY_SIZE(mac_scsi_old_rsrc));
1062 break;
1063 case MAC_SCSI_LATE:
1064 /* PDMA logic in 68040 PowerBooks is somehow different to
1065 * '030 models. It's probably more like Quadras (see mac_esp).
1066 */
1067 platform_device_register_simple("mac_scsi", 0,
1068 mac_scsi_late_rsrc, ARRAY_SIZE(mac_scsi_late_rsrc));
1069 break;
Finn Thain2e874d12015-01-07 11:17:35 +11001070 case MAC_SCSI_LC:
1071 /* Addresses from Mac LC data in Designing Cards & Drivers 3ed.
1072 * Also from the Developer Notes for Classic II, LC III,
1073 * Color Classic and IIvx.
Finn Thaincbad48d2014-11-12 16:12:07 +11001074 * $50F0 6000 - $50F0 7FFF: SCSI handshake
1075 * $50F1 0000 - $50F1 1FFF: SCSI
1076 * $50F1 2000 - $50F1 3FFF: SCSI DMA
1077 */
1078 platform_device_register_simple("mac_scsi", 0,
1079 mac_scsi_ccl_rsrc, ARRAY_SIZE(mac_scsi_ccl_rsrc));
1080 break;
Finn Thaincff75f12009-11-04 00:41:35 +11001081 }
1082
Finn Thaineeb9c182009-11-04 00:42:02 +11001083 /*
1084 * Ethernet device
1085 */
1086
Finn Thainb87eaec2018-01-13 17:37:13 -05001087 if (macintosh_config->ether_type == MAC_ETHER_SONIC ||
1088 macintosh_config->expansion_type == MAC_EXP_PDS_COMM)
Finn Thaina9373f42017-04-08 19:51:15 -04001089 platform_device_register_simple("macsonic", -1, NULL, 0);
Finn Thainb87eaec2018-01-13 17:37:13 -05001090
Finn Thain43bf2e62018-03-01 18:29:28 -05001091 if (macintosh_config->expansion_type == MAC_EXP_PDS ||
1092 macintosh_config->expansion_type == MAC_EXP_PDS_COMM)
1093 platform_device_register_simple("mac89x0", -1, NULL, 0);
1094
Finn Thainb87eaec2018-01-13 17:37:13 -05001095 if (macintosh_config->ether_type == MAC_ETHER_MACE)
Finn Thaina9373f42017-04-08 19:51:15 -04001096 platform_device_register_simple("macmace", -1, NULL, 0);
Finn Thaineeb9c182009-11-04 00:42:02 +11001097
Finn Thain2724daf2009-11-04 00:39:56 +11001098 return 0;
Laurent Vivier8852ecd2008-11-15 16:10:10 +01001099}
1100
1101arch_initcall(mac_platform_init);