aboutsummaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_training_ip_engine.c
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-02-08 23:01:40 +0100
committerStefan Roese <sr@denx.de>2021-02-26 10:22:29 +0100
commit10eb2cc3442aa9a91c98f2fdda2a5b48de9bbc88 (patch)
treef81a7709dff1ed8fd638d0e7b5be0bec95255b53 /drivers/ddr/marvell/a38x/ddr3_training_ip_engine.c
parent26f7a76ef9139544ea053a7d806cddda330a57d9 (diff)
pci: pci_mvebu: refactor validation of addresses for config access
Refactor validation of bdf parameter in mvebu_pcie_read/write_config functions. We can simplify the code by putting the validation into separate function. Also there are always only two devices visible on local bus: * on slot configured by function mvebu_pcie_set_local_dev_nr() (by default this register is set to 0) there is a "Marvell Memory controller", which isn't useful in root complex mode, * on all other slots the real PCIe card connected to the PCIe slot. We can simplify the code even more by simply allowing access only to the real PCIe card. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Cc: Stefan Roese <sr@denx.de> Cc: Phil Sutter <phil@nwl.cc> Cc: Mario Six <mario.six@gdsys.cc> Cc: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_training_ip_engine.c')
0 files changed, 0 insertions, 0 deletions