blob: b32236e5f85e947b0b3fbb6f27e75379d2328dc3 [file] [log] [blame]
Wasim Khan54e44ef2020-01-06 12:05:57 +00001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2019-2020 NXP
4 *
5 * PCIe DT fixup for NXP Layerscape SoCs
6 * Author: Wasim Khan <wasim.khan@nxp.com>
7 *
8 */
9
10#include <common.h>
11#include <asm/arch/clock.h>
12#include <asm/arch/soc.h>
13#include "pcie_layerscape_fixup_common.h"
14
15void ft_pci_setup(void *blob, bd_t *bd)
16{
17#if defined(CONFIG_PCIE_LAYERSCAPE_GEN4)
18 uint svr;
19
20 svr = SVR_SOC_VER(get_svr());
21
22 if (svr == SVR_LX2160A && IS_SVR_REV(get_svr(), 1, 0))
23 ft_pci_setup_ls_gen4(blob, bd);
24 else
25#endif /* CONFIG_PCIE_LAYERSCAPE_GEN4 */
26 ft_pci_setup_ls(blob, bd);
27}