soc/amd/common: Use only byte access for IOMUX
Change-Id: Ia3c4fb41b5851b1c0ffc6bbec7d1c051e232fc94 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42978 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
133f8e329b
commit
1ad7bc4c60
|
@ -259,36 +259,18 @@ static inline void smbus_write8(uint8_t reg, uint8_t value)
|
|||
write8(acpimmio_smbus + reg, value);
|
||||
}
|
||||
|
||||
/* These iomux_read/write8 are to be deprecated to enforce proper
|
||||
use of <gpio.h> API for pin configurations. */
|
||||
static inline uint8_t iomux_read8(uint8_t reg)
|
||||
{
|
||||
return read8(acpimmio_iomux + reg);
|
||||
}
|
||||
|
||||
static inline uint16_t iomux_read16(uint8_t reg)
|
||||
{
|
||||
return read16(acpimmio_iomux + reg);
|
||||
}
|
||||
|
||||
static inline uint32_t iomux_read32(uint8_t reg)
|
||||
{
|
||||
return read32(acpimmio_iomux + reg);
|
||||
}
|
||||
|
||||
static inline void iomux_write8(uint8_t reg, uint8_t value)
|
||||
{
|
||||
write8(acpimmio_iomux + reg, value);
|
||||
}
|
||||
|
||||
static inline void iomux_write16(uint8_t reg, uint16_t value)
|
||||
{
|
||||
write16(acpimmio_iomux + reg, value);
|
||||
}
|
||||
|
||||
static inline void iomux_write32(uint8_t reg, uint32_t value)
|
||||
{
|
||||
write32(acpimmio_iomux + reg, value);
|
||||
}
|
||||
|
||||
static inline uint8_t misc_read8(uint8_t reg)
|
||||
{
|
||||
return read8(acpimmio_misc + reg);
|
||||
|
|
Loading…
Reference in New Issue