1 /*
2  * include/asm-ppc/platforms/prpmc750.h
3  *
4  * Definitions for Motorola PrPMC750 board support
5  *
6  * Author: Matt Porter <mporter@mvista.com>
7  *
8  * Copyright 2001 MontaVista Software Inc.
9  *
10  * This program is free software; you can redistribute  it and/or modify it
11  * under  the terms of  the GNU General Public License as published by the
12  * Free Software Foundation;  either version 2 of the  License, or (at your
13  * option) any later version.
14  */
15 
16 #ifdef __KERNEL__
17 #ifndef __ASM_PRPMC750_H__
18 #define __ASM_PRPMC750_H__
19 
20 #include <linux/serial_reg.h>
21 
22 #define PRPMC750_PCI_CONFIG_ADDR	0x80000cf8
23 #define PRPMC750_PCI_CONFIG_DATA	0x80000cfc
24 
25 #define PRPMC750_PCI_PHY_MEM_BASE	0xc0000000
26 #define PRPMC750_PCI_MEM_BASE		0xf0000000
27 #define PRPMC750_PCI_IO_BASE		0x80000000
28 
29 #define PRPMC750_ISA_IO_BASE		PRPMC750_PCI_IO_BASE
30 #define PRPMC750_ISA_MEM_BASE		PRPMC750_PCI_MEM_BASE
31 #define PRPMC750_PCI_MEM_OFFSET		PRPMC750_PCI_PHY_MEM_BASE
32 
33 #define PRPMC750_SYS_MEM_BASE		0x80000000
34 
35 #define PRPMC750_PCI_LOWER_MEM		0x00000000
36 #define PRPMC750_PCI_UPPER_MEM_AUTO	0x3bf7ffff
37 #define PRPMC750_PCI_UPPER_MEM		0x3bffffff
38 #define PRPMC750_PCI_LOWER_IO		0x00000000
39 #define PRPMC750_PCI_UPPER_IO		0x0ff7ffff
40 
41 #define PRPMC750_HAWK_MPIC_BASE		0xfbf80000
42 #define PRPMC750_HAWK_SMC_BASE		0xfef80000
43 
44 #define PRPMC750_BASE_BAUD		1843200
45 #define PRPMC750_SERIAL_0		0xfef88000
46 #define PRPMC750_SERIAL_0_DLL		(PRPMC750_SERIAL_0 + (UART_DLL << 4))
47 #define PRPMC750_SERIAL_0_DLM		(PRPMC750_SERIAL_0 + (UART_DLM << 4))
48 #define PRPMC750_SERIAL_0_LCR		(PRPMC750_SERIAL_0 + (UART_LCR << 4))
49 
50 #define PRPMC750_STATUS_REG		0xfef88080
51 #define PRPMC750_BAUDOUT_MASK		0x02
52 #define PRPMC750_MONARCH_MASK		0x01
53 
54 #define PRPMC750_MODRST_REG		0xfef880a0
55 #define PRPMC750_MODRST_MASK		0x01
56 
57 #define PRPMC750_PIRQ_REG		0xfef880b0
58 #define PRPMC750_SEL1_MASK		0x02
59 #define PRPMC750_SEL0_MASK		0x01
60 
61 #define PRPMC750_TBEN_REG		0xfef880c0
62 #define PRPMC750_TBEN_MASK		0x01
63 
64 #endif /* __ASM_PRPMC750_H__ */
65 #endif /* __KERNEL__ */
66