summaryrefslogtreecommitdiff
path: root/src/northbridge/via/vx900/early_vx900.h
blob: 899512b90c20061fa4d37d155135377bd9401cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 2011-2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef EARLY_VX900_H
#define EARLY_VX900_H

#include "raminit.h"
#include "vx900.h"

#include <arch/io.h>
#include <stdint.h>

/* North Module devices */
#define HOST_CTR PCI_DEV(0, 0, 0)
#define ERR_REP  PCI_DEV(0, 0, 1)
#define HOST_BUS PCI_DEV(0, 0, 2)
#define MCU      PCI_DEV(0, 0, 3)
#define POWERMAN PCI_DEV(0, 0, 4)
#define TRAF_CTR PCI_DEV(0, 0, 5)
#define NSBIC    PCI_DEV(0, 0, 7)

#define GFX      PCI_DEV(0, 1, 0)
#define HDMI     PCI_DEV(0, 1, 0)

#define PEXx     PCI_DEV(0, 3, x)
#define PEX_CTR  PCI_DEV(0, 3, 4)

/* South Module devices */
#define UARTx    PCI_DEV(0, 0x0a, x)
#define USB_MASS PCI_DEV(0, 0x0b, 0)
#define SDIO     PCI_DEV(0, 0x0c, 0)
#define CARD_RD  PCI_DEV(0, 0x0d, 0)
#define SATA     PCI_DEV(0, 0x0d, 0)
#define USBx     PCI_DEV(0, 0x10, x)
#define USB_EHCI PCI_DEV(0, 0x10, 4)
#define LPC      PCI_DEV(0, 0x11, 0)
#define PMU      LPC
#define SNMIC    PCI_DEV(0, 0x11, 7)
#define P2P      PCI_DEV(0, 0x13, 0)
#define HDAC     PCI_DEV(0, 0x14, 0)

/* These control the behavior of raminit */
#define RAMINIT_USE_HW_RXCR_CALIB	0
#define RAMINIT_USE_HW_MRS_SEQ		0


void enable_smbus(void);
void dump_spd_data(spd_raw_data spd);
void spd_read(u8 addr, spd_raw_data spd);

void vx900_enable_pci_config_space(void);
void vx900_disable_legacy_rom_shadow(void);

void vx900_print_strapping_info(void);
void vx900_disable_auto_reboot(void);

void vx900_cpu_bus_interface_setup(void);

void vx900_dram_set_gfx_resources(void);
void vx900_disable_gfx(void);

#endif				/* EARLY_VX900_H */