summaryrefslogtreecommitdiffstats
path: root/board/keymile/kmp204x/pci.c
blob: ec20c8afb4e55ea185da1004059f34b5ab47e869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * (C) Copyright 2013 Keymile AG
 * Valentin Longchamp <valentin.longchamp@keymile.com>
 *
 * Copyright 2007-2011 Freescale Semiconductor, Inc.
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#include <common.h>
#include <command.h>
#include <pci.h>
#include <asm/fsl_pci.h>
#include <libfdt.h>
#include <fdt_support.h>
#include <asm/fsl_serdes.h>

#include "kmp204x.h"

#define PCIE_SW_RST	14
#define HOOPER_SW_RST	12

void pci_init_board(void)
{
	qrio_prst(PCIE_SW_RST, false, false);
	qrio_prst(HOOPER_SW_RST, false, false);
	/* Hooper is not direcly PCIe capable */
	mdelay(50);
	fsl_pcie_init_board(0);
}

void pci_of_setup(void *blob, bd_t *bd)
{
	FT_FSL_PCI_SETUP;
}
OpenPOWER on IntegriCloud