mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	pci: layerscape: Fix the disabling of Expansion ROM BAR
The software will still get non-zero Expansion ROM BAR size
even when the BAR_EN bit is cleared. The BAR_EN bit of
register EXP_ROM_BAR_MASK_RC is not working as expected,
so this patch changes to mask all the bits.
Fixes: 80afc63fc3 ("pci: layerscape: add pci driver based on DM")
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
			
			
This commit is contained in:
		
				
					committed by
					
						 Priyanka Jain
						Priyanka Jain
					
				
			
			
				
	
			
			
			
						parent
						
							d2f11d7a07
						
					
				
				
					commit
					f8203e3bb5
				
			| @@ -325,7 +325,7 @@ static void ls_pcie_disable_bars(struct ls_pcie *pcie) | |||||||
|  |  | ||||||
| 	dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_0); | 	dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_0); | ||||||
| 	dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_1); | 	dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_1); | ||||||
| 	dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_ROM_ADDRESS1); | 	dbi_writel(pcie, 0xfffffffe, PCIE_CS2_OFFSET + PCI_ROM_ADDRESS1); | ||||||
| } | } | ||||||
|  |  | ||||||
| static void ls_pcie_setup_ctrl(struct ls_pcie *pcie) | static void ls_pcie_setup_ctrl(struct ls_pcie *pcie) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user