You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AOSCOS: MIPS: ls7a_fan: use register addresses in loongson.h
Original driver code expects register definition in loongson-pch.h (where
LS7A register definitions were never merged upstream), which are now
revised and stored in loongson.h.
Miscellaneous register base (LS7A_MISC_REG_BASE) starts at:
LOONGSON_PCILO0_BASE + 0x80000
According to legacy loongson-pch.h from Lemote. Revise definition for
LS7A_PWM_REG_BASE to be:
LOONGSON_PCILO0_BASE (LS7A_PCH_REG_BASE in loongson-pch.h)
+ 0x80000 = LS7A_MISC_REG_BASE
LS7A_MISC_REG_BASE + 0x2000 = LS7A_PWM_REG_BASE
Fixes: "AOSCOS: MIPS: ls7a_fan: use register addresses in loongson.h"
Signed-off-by: Mingcong Bai <[email protected]>
Signed-off-by: Kexy Biscuit <[email protected]>
0 commit comments