Enable pl310 coherent operation in platform init for Armada 38x
Updating PL310 sotfware context sc_io_coherent field in platform_pl310_init() routine for Armada 38x helps to avoid using 'arm,io-coherent' property, which is by default not present in the device tree node in Linux. This way another step for DT unification between two operating systems is done. The improvemnt will also work after enabling PLATFORM for Marvell ARMv7 SoCs. Reviewed by: andrew, cognet (mentor) Approved by: cognet (mentor) Obtained from: Semihalf Differential Revision: https://reviews.freebsd.org/D11883
This commit is contained in:
parent
d0bc27e435
commit
75b2aa51b4
@ -57,6 +57,9 @@ platform_pl310_init(struct pl310_softc *sc)
|
||||
pl310_write4(sc, PL310_PREFETCH_CTRL, PREFETCH_CTRL_DL |
|
||||
PREFETCH_CTRL_DATA_PREFETCH | PREFETCH_CTRL_INCR_DL |
|
||||
PREFETCH_CTRL_DL_ON_WRAP);
|
||||
|
||||
/* Disable L2 cache sync for IO coherent operation */
|
||||
sc->sc_io_coherent = true;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user