From 060ae5c88b3026f6f91b37de977528eba38a0068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 15 Dec 2020 11:07:32 +0200 Subject: soc/amd/common: Use only byte access for old GPIO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I06ec29845d051d9b90ab6f3cfb269ad5e6b75ea8 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/48689 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- .../amd/common/block/include/amdblocks/acpimmio.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/soc/amd') diff --git a/src/soc/amd/common/block/include/amdblocks/acpimmio.h b/src/soc/amd/common/block/include/amdblocks/acpimmio.h index ca32f2399e..4b80a28a0d 100644 --- a/src/soc/amd/common/block/include/amdblocks/acpimmio.h +++ b/src/soc/amd/common/block/include/amdblocks/acpimmio.h @@ -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) -- cgit v1.2.3