More Hudson 64bit fixes
Change-Id: I2a6cd7ad27cb6d16dfe3267ea6fb844a5e2e20c6 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/11083 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Stefan Reinauer
parent
0390cc6b3a
commit
772029fe73
@@ -40,22 +40,22 @@
|
||||
|
||||
void pm_write8(u8 reg, u8 value)
|
||||
{
|
||||
write8((void *)(PM_MMIO_BASE + reg), value);
|
||||
write8((void *)((uintptr_t)PM_MMIO_BASE + reg), value);
|
||||
}
|
||||
|
||||
u8 pm_read8(u8 reg)
|
||||
{
|
||||
return read8((void *)(PM_MMIO_BASE + reg));
|
||||
return read8((void *)((uintptr_t)PM_MMIO_BASE + reg));
|
||||
}
|
||||
|
||||
void pm_write16(u8 reg, u16 value)
|
||||
{
|
||||
write16((void *)(PM_MMIO_BASE + reg), value);
|
||||
write16((void *)((uintptr_t)PM_MMIO_BASE + reg), value);
|
||||
}
|
||||
|
||||
u16 pm_read16(u16 reg)
|
||||
{
|
||||
return read16((void *)(PM_MMIO_BASE + reg));
|
||||
return read16((void *)((uintptr_t)PM_MMIO_BASE + reg));
|
||||
}
|
||||
|
||||
#define PM_REG_USB_ENABLE 0xef
|
||||
|
Reference in New Issue
Block a user