2 * arch/ppc/platforms/rpx8260.c
4 * RPC EP8260 platform support
6 * Author: Dan Malek <dan@embeddededge.com>
7 * Derived from: pq2ads_setup.c by Kumar
9 * Copyright 2004 Embedded Edge, LLC
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
17 #include <linux/config.h>
18 #include <linux/seq_file.h>
20 #include <asm/mpc8260.h>
21 #include <asm/machdep.h>
23 static void (*callback_setup_arch)(void);
25 extern unsigned char __res[sizeof(bd_t)];
27 extern void m8260_init(unsigned long r3, unsigned long r4,
28 unsigned long r5, unsigned long r6, unsigned long r7);
31 ep8260_show_cpuinfo(struct seq_file *m)
33 bd_t *binfo = (bd_t *)__res;
35 seq_printf(m, "vendor\t\t: RPC\n"
36 "machine\t\t: EP8260 PPC\n"
38 "mem size\t\t: 0x%08x\n"
39 "console baud\t\t: %d\n"
47 ep8260_setup_arch(void)
49 printk("RPC EP8260 Port\n");
50 callback_setup_arch();
54 platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
55 unsigned long r6, unsigned long r7)
57 /* Generic 8260 platform initialization */
58 m8260_init(r3, r4, r5, r6, r7);
60 /* Anything special for this platform */
61 ppc_md.show_cpuinfo = ep8260_show_cpuinfo;
63 callback_setup_arch = ppc_md.setup_arch;
64 ppc_md.setup_arch = ep8260_setup_arch;