blob: 5d57951efd9177951b25c21b166b767b6d3fa05c [file] [log] [blame]
Mike Loptienc93a75a2014-06-06 15:16:29 -06001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Sage Electronic Engineering, LLC.
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.
Mike Loptienc93a75a2014-06-06 15:16:29 -060014 */
15
Martin Roth59338142016-01-11 12:42:35 -070016#ifndef _CIMX_SB800_PCI_DEVS_H_
17#define _CIMX_SB800_PCI_DEVS_H_
Mike Loptienc93a75a2014-06-06 15:16:29 -060018
Kyösti Mälkkif7ca6722017-09-10 06:30:54 +030019#include <device/pci_def.h>
20
Mike Loptienc93a75a2014-06-06 15:16:29 -060021#define BUS0 0
22
23/* SATA */
24#define SATA_DEV 0x11
25#define SATA_FUNC 0
26# define SATA_IDE_DEVID 0x4390
27# define AHCI_DEVID 0x4391
28# define RAID_DEVID 0x4392
29# define RAID5_DEVID 0x4393
30# define SATA_DEVFN PCI_DEVFN(SATA_DEV,SATA_FUNC)
31
32/* OHCI */
33#define OHCI1_DEV 0x12
34#define OHCI1_FUNC 0
35#define OHCI2_DEV 0x13
36#define OHCI2_FUNC 0
37#define OHCI3_DEV 0x16
38#define OHCI3_FUNC 0
39#define OHCI4_DEV 0x14
40#define OHCI4_FUNC 5
41# define OHCI_DEVID 0x4397
42# define OHCI1_DEVFN PCI_DEVFN(OHCI1_DEV,OHCI1_FUNC)
43# define OHCI2_DEVFN PCI_DEVFN(OHCI2_DEV,OHCI2_FUNC)
44# define OHCI3_DEVFN PCI_DEVFN(OHCI3_DEV,OHCI3_FUNC)
45# define OHCI4_DEVFN PCI_DEVFN(OHCI4_DEV,OHCI4_FUNC)
46
47/* EHCI */
48#define EHCI1_DEV 0x12
49#define EHCI1_FUNC 2
50#define EHCI2_DEV 0x13
51#define EHCI2_FUNC 2
52#define EHCI3_DEV 0x16
53#define EHCI3_FUNC 2
54# define EHCI_DEVID 0x4396
55# define EHCI1_DEVFN PCI_DEVFN(EHCI1_DEV,EHCI1_FUNC)
56# define EHCI2_DEVFN PCI_DEVFN(EHCI2_DEV,EHCI2_FUNC)
57# define EHCI3_DEVFN PCI_DEVFN(EHCI3_DEV,EHCI3_FUNC)
58
59/* IDE */
60#define IDE_DEV 0x14
61#define IDE_FUNC 1
62# define IDE_DEVID 0x439C
63# define IDE_DEVFN PCI_DEVFN(IDE_DEV,IDE_FUNC)
64
65/* HD Audio */
66#define HDA_DEV 0x14
67#define HDA_FUNC 2
68# define HDA_DEVID 0x4383
69# define HDA_DEVFN PCI_DEVFN(HDA_DEV,HDA_FUNC)
70
71/* PCI Ports */
72#define SB_PCI_PORT_DEV 0x14
73#define SB_PCI_PORT_FUNC 4
74# define SB_PCI_PORT_DEVID 0x4384
75# define SB_PCI_PORT_DEVFN PCI_DEVFN(SB_PCI_PORT_DEV,SB_PCI_PORT_FUNC)
76
77/* PCIe Ports */
78#define SB_PCIE_DEV 0x15
79#define SB_PCIE_PORT1_FUNC 0
80#define SB_PCIE_PORT2_FUNC 1
81#define SB_PCIE_PORT3_FUNC 2
82#define SB_PCIE_PORT4_FUNC 3
83# define SB_PCIE_PORT1_DEVID 0x43A0
84# define SB_PCIE_PORT2_DEVID 0x43A1
85# define SB_PCIE_PORT3_DEVID 0x43A2
86# define SB_PCIE_PORT4_DEVID 0x43A3
87# define SB_PCIE_PORT1_DEVFN PCI_DEVFN(SB_PCIE_DEV,SB_PCIE_PORT1_FUNC)
88# define SB_PCIE_PORT2_DEVFN PCI_DEVFN(SB_PCIE_DEV,SB_PCIE_PORT2_FUNC)
89# define SB_PCIE_PORT3_DEVFN PCI_DEVFN(SB_PCIE_DEV,SB_PCIE_PORT3_FUNC)
90# define SB_PCIE_PORT4_DEVFN PCI_DEVFN(SB_PCIE_DEV,SB_PCIE_PORT4_FUNC)
91
92/* Fusion Controller Hub */
93#define PCU_DEV 0x14
94#define LPC_DEV PCU_DEV
95#define LPC_FUNC 3
96#define SMBUS_DEV 0x14
97#define SMBUS_FUNC 0
98# define LPC_DEVID 0x439D
99# define SMBUS_DEVID 0x4385
100# define LPC_DEVFN PCI_DEVFN(LPC_DEV,LPC_FUNC)
101# define SMBUS_DEVFN PCI_DEVFN(SMBUS_DEV,SMBUS_FUNC)
102
103#endif /* _CIMX_SB800_PCI_DEVS_H_ */