2 * linux/arch/sh/kernel/setup_hs7751rvoip.c
4 * Copyright (C) 2000 Kazumoto Kojima
6 * Renesas Technology Sales HS7751RVoIP Support.
8 * Modified for HS7751RVoIP by
9 * Atom Create Engineering Co., Ltd. 2002.
10 * Lineo uSolutions, Inc. 2003.
13 #include <linux/init.h>
14 #include <linux/irq.h>
16 #include <linux/hdreg.h>
17 #include <linux/ide.h>
19 #include <asm/hs7751rvoip/hs7751rvoip.h>
22 #include <linux/vmalloc.h>
24 /* defined in mm/ioremap.c */
25 extern void * p3_ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags);
27 unsigned int debug_counter;
29 const char *get_system_type(void)
35 * Initialize the board
37 void __init platform_setup(void)
39 printk(KERN_INFO "Renesas Technology Sales HS7751RVoIP-2 support.\n");
40 ctrl_outb(0xf0, PA_OUTPORTR);
46 void *area5_io16_base;
47 void *area6_io16_base;
49 int __init cf_init(void)
52 unsigned long paddrbase, psize;
54 /* open I/O area window */
55 paddrbase = virt_to_phys((void *)(PA_AREA5_IO+0x00000800));
57 prot = PAGE_KERNEL_PCC(1, _PAGE_PCC_COM16);
58 area5_io16_base = p3_ioremap(paddrbase, psize, prot.pgprot);
59 if (!area5_io16_base) {
60 printk("allocate_cf_area : can't open CF I/O window!\n");
64 /* XXX : do we need attribute and common-memory area also? */
66 paddrbase = virt_to_phys((void *)PA_AREA6_IO);
68 #if defined(CONFIG_HS7751RVOIP_CODEC)
69 prot = PAGE_KERNEL_PCC(0, _PAGE_PCC_COM8);
71 prot = PAGE_KERNEL_PCC(0, _PAGE_PCC_IO8);
73 area6_io8_base = p3_ioremap(paddrbase, psize, prot.pgprot);
74 if (!area6_io8_base) {
75 printk("allocate_cf_area : can't open CODEC I/O 8bit window!\n");
78 prot = PAGE_KERNEL_PCC(0, _PAGE_PCC_IO16);
79 area6_io16_base = p3_ioremap(paddrbase, psize, prot.pgprot);
80 if (!area6_io16_base) {
81 printk("allocate_cf_area : can't open CODEC I/O 16bit window!\n");