Toolchain: refresh K24 headers
[tomato.git] / tools / brcm / K24 / hndtools-mipsel-uclibc-4.1.2 / include / asm-mips / mips-boards / malta.h
blobf72b2f882c039caa6c3fc0acb13847d2a48676ca
1 /*
2 * Carsten Langgaard, carstenl@mips.com
3 * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
5 * This program is free software; you can distribute it and/or modify it
6 * under the terms of the GNU General Public License (Version 2) as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
18 * Defines of the Malta board specific address-MAP, registers, etc.
20 #ifndef __ASM_MIPS_BOARDS_MALTA_H
21 #define __ASM_MIPS_BOARDS_MALTA_H
23 #include <asm/addrspace.h>
24 #include <asm/io.h>
25 #include <asm/gt64120/gt64120.h>
26 #include <asm/mips-boards/msc01_pci.h>
29 * Malta I/O ports base address for the Galileo GT64120 and Algorithmics
30 * Bonito system controllers.
32 #define MALTA_GT_PORT_BASE get_gt_port_base(GT_PCI0IOLD_OFS)
33 #define MALTA_BONITO_PORT_BASE (KSEG1ADDR(0x1fd00000))
34 #define MALTA_MSC_PORT_BASE get_msc_port_base(MSC01_PCI_SC2PIOBASL)
36 static inline unsigned long get_gt_port_base(unsigned long reg)
38 unsigned long addr;
39 addr = GT_READ(reg);
40 return KSEG1ADDR((addr & 0xffff) << 21);
43 static inline unsigned long get_msc_port_base(unsigned long reg)
45 unsigned long addr;
46 MSC_READ(reg, addr);
47 return KSEG1ADDR(addr);
51 * Malta RTC-device indirect register access.
53 #define MALTA_RTC_ADR_REG 0x70
54 #define MALTA_RTC_DAT_REG 0x71
57 * Malta SMSC FDC37M817 Super I/O Controller register.
59 #define SMSC_CONFIG_REG 0x3f0
60 #define SMSC_DATA_REG 0x3f1
62 #define SMSC_CONFIG_DEVNUM 0x7
63 #define SMSC_CONFIG_ACTIVATE 0x30
64 #define SMSC_CONFIG_ENTER 0x55
65 #define SMSC_CONFIG_EXIT 0xaa
67 #define SMSC_CONFIG_DEVNUM_FLOPPY 0
69 #define SMSC_CONFIG_ACTIVATE_ENABLE 1
71 #define SMSC_WRITE(x,a) outb(x,a)
73 #define MALTA_JMPRS_REG (KSEG1ADDR(0x1f000210))
75 #endif /* __ASM_MIPS_BOARDS_MALTA_H */