blob: 4af3dedc9579bd97613c1ce4ee4e2e44c11fc9b6 [file] [log] [blame]
Bin Mengb994efb2015-02-02 22:35:23 +08001/*
2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _QUARK_DEVICE_H_
8#define _QUARK_DEVICE_H_
9
10#include <pci.h>
11
12#define QUARK_HOST_BRIDGE PCI_BDF(0, 0, 0)
13#define QUARK_MMC_SDIO PCI_BDF(0, 20, 0)
14#define QUARK_UART0 PCI_BDF(0, 20, 1)
15#define QUARK_USB_DEVICE PCI_BDF(0, 20, 2)
16#define QUARK_USB_EHCI PCI_BDF(0, 20, 3)
17#define QUARK_USB_OHCI PCI_BDF(0, 20, 4)
18#define QUARK_UART1 PCI_BDF(0, 20, 5)
19#define QUARK_EMAC0 PCI_BDF(0, 20, 6)
20#define QUARK_EMAC1 PCI_BDF(0, 20, 7)
21#define QUARK_SPI0 PCI_BDF(0, 21, 0)
22#define QUARK_SPI1 PCI_BDF(0, 21, 1)
23#define QUARK_I2C_GPIO PCI_BDF(0, 21, 2)
24#define QUARK_PCIE0 PCI_BDF(0, 23, 0)
25#define QUARK_PCIE1 PCI_BDF(0, 23, 1)
26#define QUARK_LEGACY_BRIDGE PCI_BDF(0, 31, 0)
27
28#endif /* _QUARK_DEVICE_H_ */