mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-11 19:48:59 +01:00
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:
parent
f9d9f94993
commit
9bebc1c4ea
2 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue