coreboot-kgpe-d16/src/soc/mediatek/common
Yu-Ping Wu 941db0e55c helpers: Add GENMASK macro
The GENMASK is defined in multiple files (with various names such as
MASKBIT), which sets certain consecutive bits to 1 and leaves the others
to 0. To avoid duplicate macros, add GENMASK macro to helpers.h.

GENMASK(high, low) sets bits from `high` to `low` (inclusive) to 1. For
example, GENMASK(39, 21) gives us the 64-bit vector 0x000000ffffe00000.

Remove duplicate macro definitions. Also utilize GENMASK for _BF_MASK in
mmio.h.

BUG=none
TEST=make tests/commonlib/bsd/helpers-test
TEST=emerge-cherry coreboot
BRANCH=none

Change-Id: If2e7c4827d8a7d27688534593b556a72f16f0c2b
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56543
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2021-08-02 15:01:54 +00:00
..
include/soc soc/mediatek/mt8195: Add dramc_param.h 2021-07-07 14:47:42 +00:00
auxadc.c soc/mediatek: Move auxadc driver from MT8183 to common 2020-11-20 08:40:19 +00:00
cbmem.c src: Remove unused '#include <stddef.h>' 2020-05-13 08:48:50 +00:00
clkbuf.c soc/mediatek/mt8195: Add clk_buf driver 2021-05-10 01:57:49 +00:00
ddp.c src/soc/mediatek: Add include <types.h> 2020-07-26 21:35:27 +00:00
dpm.c soc/mediatek/common: Add DPM_FOUR_CHANNEL option 2021-06-23 05:50:37 +00:00
dram_init.c soc/mediatek: Include sdram_info in ddr_base_info 2021-04-14 00:55:57 +00:00
dramc_param.c soc/mediatek: Use MRC cache API for asurada 2021-03-24 05:43:50 +00:00
dsi.c soc/mediatek: dsi: fine tune the delta time for EoTp 2021-04-08 10:44:16 +00:00
eint_event.c src/mediatek: Move mt8192 eint driver to common 2021-04-21 08:56:36 +00:00
flash_controller.c soc/mediatek/mt8192: Move flash_controller.c to common/ 2020-12-31 03:09:19 +00:00
gpio.c
i2c.c soc/mediatek/mt8192: add i2c driver support 2020-12-14 03:55:13 +00:00
Kconfig soc/mediatek/common: Add DPM_FOUR_CHANNEL option 2021-06-23 05:50:37 +00:00
mcu.c soc/mediatek/common: Add common API for loading firmwares 2020-12-10 03:21:19 +00:00
mcupm.c soc/mediatek: Move the MT8192 MCUPM driver to common 2021-05-26 07:32:51 +00:00
memory.c soc/mediatek: Remove misleading memory logs 2021-04-16 06:42:25 +00:00
memory_test.c
mmu_operations.c soc/mediatek/mt8183: Set MMU default map length to 8GB befor mem init 2020-08-06 03:03:53 +00:00
msdc.c soc/mediatek: add new driver 'msdc' for eMMC 2021-04-09 06:05:12 +00:00
mt6315.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
mt6359p.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
mtcmos.c soc/mediatek/mt8195: Add mtcmos init support 2021-05-05 07:38:06 +00:00
mtk_mipi_dphy.c soc/mediatek/mt8183: Move dsi driver to common/ 2020-12-14 03:55:37 +00:00
pll.c helpers: Add GENMASK macro 2021-08-02 15:01:54 +00:00
pmic_wrap.c
pmif.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
pmif_clk.c soc/mediatek/mt8195: add pmif/spmi/pmic driver 2021-05-05 07:36:26 +00:00
pmif_spi.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
pmif_spmi.c soc/mediatek: Move the common part of PMIC drivers to common/ 2021-04-28 02:41:43 +00:00
reset.c
rtc.c soc/mediatek: rtc: Use bool as return type 2021-01-07 02:02:51 +00:00
rtc_mt6359p.c soc/mediatek/mt8195: Add RTC driver 2021-05-10 01:58:28 +00:00
rtc_osc_init.c soc/mediatek/mt8192: add rtc MT6359P driver 2020-12-28 13:39:01 +00:00
spi.c soc/mediatek: Move the common part of SPI drivers to common/ 2021-05-05 07:36:48 +00:00
spm.c soc/mediatek: Extract spm_parse_firmware to common 2021-06-04 10:10:54 +00:00
sspm.c soc/mediatek: Move the SSPM driver to common 2021-06-01 08:28:30 +00:00
timer.c soc/mediatek/mt8195: Add timer support 2021-04-26 02:43:06 +00:00
uart.c include/console/uart: make index parameter unsigned 2020-09-12 14:59:33 +00:00
ufs.c soc/mediatek: Move mt8192 ufs driver to common 2021-04-21 08:56:44 +00:00
usb.c
wdt.c soc/mediatek/mt8195: Initialize watchdog 2021-04-26 02:42:33 +00:00