Explicitly enable MSR mailbox
This commit is contained in:
parent
9b4ad415e6
commit
0889c3401c
2 changed files with 9 additions and 3 deletions
|
@ -66,6 +66,10 @@ retry_cs5536:
|
||||||
move $a0, $t4
|
move $a0, $t4
|
||||||
|
|
||||||
/* Initialise SMBus controller. */
|
/* Initialise SMBus controller. */
|
||||||
|
lui $t0, %hi(GRUB_MACHINE_PCI_CONFSPACE)
|
||||||
|
li $t1, GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED
|
||||||
|
sw $t1, (%lo(GRUB_MACHINE_PCI_CONFSPACE) + GRUB_CS5536_MSR_MAILBOX_CONFIG) ($t0)
|
||||||
|
|
||||||
/* Set GPIO LBAR. */
|
/* Set GPIO LBAR. */
|
||||||
lui $a0, %hi(GRUB_CS5536_MSR_GPIO_BAR)
|
lui $a0, %hi(GRUB_CS5536_MSR_GPIO_BAR)
|
||||||
addiu $a0, $a0, %lo(GRUB_CS5536_MSR_GPIO_BAR)
|
addiu $a0, $a0, %lo(GRUB_CS5536_MSR_GPIO_BAR)
|
||||||
|
|
|
@ -26,9 +26,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GRUB_CS5536_PCIID 0x208f1022
|
#define GRUB_CS5536_PCIID 0x208f1022
|
||||||
#define GRUB_CS5536_MSR_MAILBOX_ADDR 0xf4
|
#define GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED 0x1
|
||||||
#define GRUB_CS5536_MSR_MAILBOX_DATA0 0xf8
|
#define GRUB_CS5536_MSR_MAILBOX_CONFIG 0xf0
|
||||||
#define GRUB_CS5536_MSR_MAILBOX_DATA1 0xfc
|
#define GRUB_CS5536_MSR_MAILBOX_ADDR 0xf4
|
||||||
|
#define GRUB_CS5536_MSR_MAILBOX_DATA0 0xf8
|
||||||
|
#define GRUB_CS5536_MSR_MAILBOX_DATA1 0xfc
|
||||||
#define GRUB_CS5536_MSR_IRQ_MAP_BAR 0x80000008
|
#define GRUB_CS5536_MSR_IRQ_MAP_BAR 0x80000008
|
||||||
#define GRUB_CS5536_MSR_SMB_BAR 0x8000000b
|
#define GRUB_CS5536_MSR_SMB_BAR 0x8000000b
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue