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
70d163328d
commit
bb98396b47
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318875
@ -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