ipq807x: uboot: pci init: code clean up

This patch involves changes which makes
sure that pci init is done only when the
config CONFIG_PCI_IPQ is defined.

This change will allow us to disable or
enable pci as per our need in uboot.

Change-Id: I802de281938442d38451230c3aba340addd2f2ee
Signed-off-by: speriaka <speriaka@codeaurora.org>
This commit is contained in:
speriaka 2017-11-17 12:47:00 +05:30 committed by Gerrit - the friendly Code Review server
parent f9d9f94993
commit 9bebc1c4ea
2 changed files with 4 additions and 0 deletions

View file

@ -530,6 +530,7 @@ static void pcie_clock_deinit(int id)
}
}
#ifdef CONFIG_PCI_IPQ
void board_pci_init(int id)
{
int node, gpio_node;
@ -580,6 +581,7 @@ void board_pci_deinit()
return ;
}
#endif
void board_usb_deinit(int id)
{

View file

@ -236,7 +236,9 @@ extern const char *del_node[];
extern const add_node_t add_node[];
void reset_crashdump(void);
#ifdef CONFIG_PCI_IPQ
void board_pci_init(int id);
#endif
void ipq_fdt_fixup_socinfo(void *blob);
int ipq_board_usb_init(void);