3 * Copyright 2000-2001 MontaVista Software Inc.
4 * Completed implementation.
7 * Module name: redwood5.c
10 * IBM redwood5 eval board file
12 * History: 12/29/2001 - Armin
15 * Please read the COPYING file for all license details.
18 #include <linux/config.h>
19 #include <linux/init.h>
20 #include <linux/pagemap.h>
22 #include <asm/machdep.h>
25 board_setup_arch(void)
28 bd_t *bip = (bd_t *)__res;
30 #ifdef CONFIG_DEBUG_BRINGUP
32 printk("machine\t: %s\n", PPC4xx_MACHINE_NAME);
34 printk("bi_s_version\t %s\n", bip->bi_s_version);
35 printk("bi_r_version\t %s\n", bip->bi_r_version);
36 printk("bi_memsize\t 0x%8.8x\t %dMBytes\n", bip->bi_memsize,bip->bi_memsize/(1024*1000));
37 printk("bi_enetaddr %d\t %2.2x%2.2x%2.2x-%2.2x%2.2x%2.2x\n", 0,
38 bip->bi_enetaddr[0], bip->bi_enetaddr[1],
39 bip->bi_enetaddr[2], bip->bi_enetaddr[3],
40 bip->bi_enetaddr[4], bip->bi_enetaddr[5]);
42 printk("bi_intfreq\t 0x%8.8x\t clock:\t %dMhz\n",
43 bip->bi_intfreq, bip->bi_intfreq/ 1000000);
45 printk("bi_busfreq\t 0x%8.8x\t plb bus clock:\t %dMHz\n",
46 bip->bi_busfreq, bip->bi_busfreq / 1000000 );
47 printk("bi_tbfreq\t 0x%8.8x\t TB freq:\t %dMHz\n",
48 bip->bi_tbfreq, bip->bi_tbfreq/1000000);
56 board_io_mapping(void)
60 for (i = 0; i < 16; i++) {
63 /* 0x400x0000 -> 0xe00x0000 */
64 p = 0x40000000 | (i << 16);
65 v = STB04xxx_IO_BASE | (i << 16);
67 io_block_mapping(v, p, PAGE_SIZE,
68 _PAGE_NO_CACHE | pgprot_val(PAGE_KERNEL) | _PAGE_GUARDED);