Enable SCU Speculative linefills to L2 on Armada 38x
Submitted by: Marcin Wojtas <mw@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D10709
This commit is contained in:
parent
2b25a3b2c3
commit
97a43b9155
@ -173,9 +173,13 @@ armada38x_scu_enable(void)
|
||||
|
||||
/* Enable SCU */
|
||||
val = bus_space_read_4(fdtbus_bs_tag, vaddr_scu, MV_SCU_REG_CTRL);
|
||||
if (!(val & MV_SCU_ENABLE))
|
||||
if (!(val & MV_SCU_ENABLE)) {
|
||||
/* Enable SCU Speculative linefills to L2 */
|
||||
val |= MV_SCU_SL_L2_ENABLE;
|
||||
|
||||
bus_space_write_4(fdtbus_bs_tag, vaddr_scu, 0,
|
||||
val | MV_SCU_ENABLE);
|
||||
}
|
||||
|
||||
bus_space_unmap(fdtbus_bs_tag, vaddr_scu, MV_SCU_REGS_LEN);
|
||||
return (0);
|
||||
|
@ -424,7 +424,8 @@
|
||||
#define MV_SCU_REGS_LEN 0x100
|
||||
#define MV_SCU_REG_CTRL 0x00
|
||||
#define MV_SCU_REG_CONFIG 0x04
|
||||
#define MV_SCU_ENABLE 1
|
||||
#define MV_SCU_ENABLE (1 << 0)
|
||||
#define MV_SCU_SL_L2_ENABLE (1 << 3)
|
||||
#define SCU_CFG_REG_NCPU_MASK 0x3
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user