soc/amd/common: Use only byte access for old GPIO
Change-Id: I06ec29845d051d9b90ab6f3cfb269ad5e6b75ea8 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48689 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
38fa9f25ee
commit
060ae5c88b
|
@ -305,31 +305,11 @@ static inline uint8_t gpio_100_read8(uint8_t reg)
|
|||
return read8(acpimmio_gpio_100 + reg);
|
||||
}
|
||||
|
||||
static inline uint16_t gpio_100_read16(uint8_t reg)
|
||||
{
|
||||
return read16(acpimmio_gpio_100 + reg);
|
||||
}
|
||||
|
||||
static inline uint32_t gpio_100_read32(uint8_t reg)
|
||||
{
|
||||
return read32(acpimmio_gpio_100 + reg);
|
||||
}
|
||||
|
||||
static inline void gpio_100_write8(uint8_t reg, uint8_t value)
|
||||
{
|
||||
write8(acpimmio_gpio_100 + reg, value);
|
||||
}
|
||||
|
||||
static inline void gpio_100_write16(uint8_t reg, uint16_t value)
|
||||
{
|
||||
write16(acpimmio_gpio_100 + reg, value);
|
||||
}
|
||||
|
||||
static inline void gpio_100_write32(uint8_t reg, uint32_t value)
|
||||
{
|
||||
write32(acpimmio_gpio_100 + reg, value);
|
||||
}
|
||||
|
||||
/* New GPIO banks configuration registers */
|
||||
|
||||
static inline void *gpio_ctrl_ptr(uint8_t gpio_num)
|
||||
|
|
Loading…
Reference in New Issue