1 /*
2  * Copyright 2003 PMC-Sierra
3  * Author: Manish Lachwani (lachwani@pmc-sierra.com)
4  *
5  * Board specific definititions for the PMC-Sierra Yosemite
6  *
7  * This program is free software; you can redistribute  it and/or modify it
8  * under  the terms of  the GNU General  Public License as published by the
9  * Free Software Foundation;  either version 2 of the  License, or (at your
10  * option) any later version.
11  */
12 
13 #ifndef __SETUP_H__
14 #define __SETUP_H__
15 
16 /* Real Time Clock base */
17 #define	YOSEMITE_RTC_BASE
18 #define CONV_BCD_TO_BIN(val)    (((val) & 0xf) + (((val) >> 4) * 10))
19 #define CONV_BIN_TO_BCD(val)    (((val) % 10) + (((val) / 10) << 4))
20 
21 /* NVRAM Base */
22 #define	YOSEMITE_NVRAM_BASE_ADDR	0xbb000678	/* XXX Need change */
23 #define	YOSEMITE_RTC_BASE		0xbb000679	/* XXX Need change */
24 
25 /*
26  * Hypertransport Specific
27  */
28 #define HYPERTRANSPORT_CONFIG_REG       0xbb000604
29 #define HYPERTRANSPORT_BAR0_REG         0xbb000610
30 #define HYPERTRANSPORT_SIZE0_REG        0xbb000688
31 #define HYPERTRANSPORT_BAR0_ATTR_REG    0xbb000680
32 
33 #define HYPERTRANSPORT_BAR0_ADDR        0x00000006
34 #define HYPERTRANSPORT_SIZE0            0x0fffffff
35 #define HYPERTRANSPORT_BAR0_ATTR        0x00002000
36 
37 #define HYPERTRANSPORT_ENABLE           0x6
38 
39 /*
40  * EEPROM Size
41  */
42 #define	TITAN_ATMEL_24C32_SIZE		32768
43 #define	TITAN_ATMEL_24C64_SIZE		65536
44 
45 
46 #endif /* __SETUP_H__ */
47 
48