mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
pci: ipq9574: Add SKU validation support
This changes add SKU validation support in PCI driver the valdiation api given as weak for non SKU supported platform. Change-Id: I32985be1e06e9cb07d28edfba50299bb7eaa3cc5 Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
This commit is contained in:
parent
50781feff3
commit
2bc07e0161
2 changed files with 12 additions and 2 deletions
|
|
@ -453,11 +453,11 @@ int is_uniphy_enabled(int uniphy_index)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_PCI_IPQ
|
||||
int ipq_sku_pci_validation(int pci_id)
|
||||
int ipq_sku_pci_validation(int id)
|
||||
{
|
||||
int pos = 0;
|
||||
|
||||
switch(pci_id){
|
||||
switch(id){
|
||||
case 0:
|
||||
pos = PCIE_0_CLOCK_DISABLE_BIT;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1413,6 +1413,11 @@ void pcie_v0_linkup(struct ipq_pcie *pcie, int id)
|
|||
|
||||
}
|
||||
|
||||
__weak int ipq_sku_pci_validation(int id)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ipq_pcie_parse_dt(const void *fdt, int id,
|
||||
struct ipq_pcie *pcie)
|
||||
{
|
||||
|
|
@ -1426,6 +1431,11 @@ static int ipq_pcie_parse_dt(const void *fdt, int id,
|
|||
return node;
|
||||
}
|
||||
|
||||
if (ipq_sku_pci_validation(id)){
|
||||
printf("PCI%d is disabled\n", id);
|
||||
return 1;
|
||||
}
|
||||
|
||||
err = fdt_get_named_resource(fdt, node, "reg", "reg-names", "pci_dbi",
|
||||
&pcie->pci_dbi);
|
||||
if (err < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue