ce60d904cc581b45eb7e769deeb4a94285407da5
[coreboot.git] / src / southbridge / via / k8t890 / k8t890.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007 Rudolf Marek <r.marek@assembler.cz>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19
20 #ifndef SOUTHBRIDGE_VIA_K8T890_K8T890_H
21 #define SOUTHBRIDGE_VIA_K8T890_K8T890_H
22
23 /* Static resources for K8T890. */
24 #define K8T890_APIC_ID          0x3
25
26 /*
27  * Please check the datasheet and traf_ctrl_enable before change!
28  * It can't be changed to an arbitrary address.
29  */
30 #define K8T890_APIC_BASE        0xfecc0000
31
32 /* The 256 bytes of NVRAM for S3 storage, 256B aligned */
33 #define K8T890_NVRAM_IO_BASE    0xf00
34
35 #define K8T890_MMCONFIG_MBAR    0x61
36 #define K8T890_MULTIPLE_FN_EN   0x4f
37
38 /* the FB size in MB (min is 8MB max is 512MB) */
39 #define K8M890_FBSIZEMB         64
40
41 #ifdef __PRE_RAM__
42 u8 k8t890_early_setup_ht(void);
43 #else
44 #include <device/device.h>
45 #if 0
46 extern void writeback(struct device *dev, u16 where, u8 what);
47 extern void dump_south(device_t dev);
48 #endif
49 #endif
50
51 #include <southbridge/via/vt8237r/vt8237r.h>
52
53 int k8m890_host_fb_size_get(void);
54 //void k8m890_host_fb_direct_set(uint32_t fb_address);
55
56 #endif