mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Do not use OCP85XX_LBC_OFF twice when accessing LBC registers on MPC85XX.
It turns LBC control registers were not programmed correctly on MPC85XX. We were accessing bogus addresses as the base offset (OCP85XX_LBC_OFF) was erroneously added during offset calculations. Effectively the state of LBC control registers was not altered by the kernel initialization code, but everything worked as long as we coincided to use the same settings (LBC decode windows) as firmware has initialized. Submitted by: Lukasz Wojcik Reviewed by: marcel Approved by: re (kensmith) Obtained from: Semihalf
This commit is contained in:
parent
84a5818564
commit
570255d8a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195799
@ -39,10 +39,10 @@
|
||||
#define LBC_DEVTYPE_RTC 2
|
||||
|
||||
/* Local access registers */
|
||||
#define LBC85XX_BR(n) (OCP85XX_LBC_OFF + (8 * n))
|
||||
#define LBC85XX_OR(n) (OCP85XX_LBC_OFF + 4 + (8 * n))
|
||||
#define LBC85XX_LBCR (OCP85XX_LBC_OFF + 0xd0)
|
||||
#define LBC85XX_LCRR (OCP85XX_LBC_OFF + 0xd4)
|
||||
#define LBC85XX_BR(n) (8 * n)
|
||||
#define LBC85XX_OR(n) (4 + (8 * n))
|
||||
#define LBC85XX_LBCR (0xd0)
|
||||
#define LBC85XX_LCRR (0xd4)
|
||||
|
||||
/* LBC machine select */
|
||||
#define LBCRES_MSEL_GPCM 0
|
||||
|
Loading…
Reference in New Issue
Block a user