blob: ec20c8afb4e55ea185da1004059f34b5ab47e869 [file] [log] [blame]
Valentin Longchamp877bfe32013-10-18 11:47:24 +02001/*
2 * (C) Copyright 2013 Keymile AG
3 * Valentin Longchamp <valentin.longchamp@keymile.com>
4 *
5 * Copyright 2007-2011 Freescale Semiconductor, Inc.
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10#include <common.h>
11#include <command.h>
12#include <pci.h>
13#include <asm/fsl_pci.h>
14#include <libfdt.h>
15#include <fdt_support.h>
16#include <asm/fsl_serdes.h>
17
18#include "kmp204x.h"
19
20#define PCIE_SW_RST 14
21#define HOOPER_SW_RST 12
22
23void pci_init_board(void)
24{
25 qrio_prst(PCIE_SW_RST, false, false);
26 qrio_prst(HOOPER_SW_RST, false, false);
27 /* Hooper is not direcly PCIe capable */
28 mdelay(50);
29 fsl_pcie_init_board(0);
30}
31
32void pci_of_setup(void *blob, bd_t *bd)
33{
34 FT_FSL_PCI_SETUP;
35}