Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Shengzhou Liu | c4d0e81 | 2013-11-22 17:39:11 +0800 | [diff] [blame] | 2 | /* |
3 | * Copyright 2007-2013 Freescale Semiconductor, Inc. | ||||
Shengzhou Liu | c4d0e81 | 2013-11-22 17:39:11 +0800 | [diff] [blame] | 4 | */ |
5 | |||||
6 | #include <common.h> | ||||
7 | #include <command.h> | ||||
Simon Glass | 2cf431c | 2019-11-14 12:57:47 -0700 | [diff] [blame] | 8 | #include <init.h> |
Shengzhou Liu | c4d0e81 | 2013-11-22 17:39:11 +0800 | [diff] [blame] | 9 | #include <pci.h> |
10 | #include <asm/fsl_pci.h> | ||||
Masahiro Yamada | b08c8c4 | 2018-03-05 01:20:11 +0900 | [diff] [blame] | 11 | #include <linux/libfdt.h> |
Shengzhou Liu | c4d0e81 | 2013-11-22 17:39:11 +0800 | [diff] [blame] | 12 | #include <fdt_support.h> |
13 | #include <asm/fsl_serdes.h> | ||||
14 | |||||
Hou Zhiqiang | 15311c8 | 2019-04-22 21:58:13 +0800 | [diff] [blame] | 15 | #if !defined(CONFIG_DM_PCI) |
Shengzhou Liu | c4d0e81 | 2013-11-22 17:39:11 +0800 | [diff] [blame] | 16 | void pci_init_board(void) |
17 | { | ||||
18 | fsl_pcie_init_board(0); | ||||
19 | } | ||||
20 | |||||
Masahiro Yamada | b75d8dc | 2020-06-26 15:13:33 +0900 | [diff] [blame] | 21 | void pci_of_setup(void *blob, struct bd_info *bd) |
Shengzhou Liu | c4d0e81 | 2013-11-22 17:39:11 +0800 | [diff] [blame] | 22 | { |
23 | FT_FSL_PCI_SETUP; | ||||
24 | } | ||||
Hou Zhiqiang | 15311c8 | 2019-04-22 21:58:13 +0800 | [diff] [blame] | 25 | #endif |