coreboot/src
Subrata Banik 6ac5dc2ca6 soc/intel/alderlake: Rework the GPIO PAD Pin numbers
This patch creates a `relative increment by 1` macro to let SoC
gpio pad configuration to be more flexible while adding support
for newer PCH SoC.

With this changes adding GPIO controller support for PCH-N would
become really simple without too much of code duplication.

For example: ADL-N has added `GPP_I` pins into community 1 hence,
the additional code for `PCH-N` whould appear incremetal to ADL-P.

> #define GPP_B			0x0
> #define GPP_T			INC(GPP_B)
> #define GPP_A			INC(GPP_T)
> #define GPP_R			INC(GPP_A)
> #define GPD			INC(GPP_R)
> #define GPP_S			INC(GPD)
> if CONFIG(SOC_INTEL_ALDERLAKE_PCH_N)
> #define GPP_I			INC(GPP_S)
> #define GPP_H			INC(GPP_I)
> #else
> #define GPP_H			INC(GPP_S)
> #endif
> #define GPP_D			INC(GPP_H)

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: Ie3b2183381b877da0a6e5a27f5176f0e21e0c9fd
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61165
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
2022-01-19 09:57:13 +00:00
..
acpi src/include/acpi: Move CPPC_PACKAGE_NAME macro definition 2022-01-18 16:13:28 +00:00
arch src: Remove unused <cbfs.h> 2022-01-17 15:38:54 +00:00
commonlib commonlib: Add endian definitions for macOS 2022-01-04 11:49:38 +00:00
console console: Add Kconfig to dump pre-bootblock cbmem contents 2022-01-17 15:46:35 +00:00
cpu
device oprom/yabel/io.c: Fix building for ENV_X86_64 2022-01-17 13:43:34 +00:00
drivers driver/i2c: Add sx9360 driver 2022-01-19 03:11:57 +00:00
ec src/ec: Remove unused <delay.h> 2022-01-10 17:40:37 +00:00
include soc/intel/common: Add Alder Lake N eMMC device ID 2022-01-18 16:15:06 +00:00
lib console/cbmem: Add cbmem_dump_console 2022-01-17 15:39:16 +00:00
mainboard mb/google/cherry: add configuration for dojo 2022-01-19 05:52:16 +00:00
northbridge src/{northbridge,southbridge}: Remove unused <console/console.h> 2022-01-10 23:22:33 +00:00
security console/cbmem_console: Rename cbmem_dump_console 2022-01-13 15:25:43 +00:00
soc soc/intel/alderlake: Rework the GPIO PAD Pin numbers 2022-01-19 09:57:13 +00:00
southbridge sb/intel/common/firmware: Reword me_cleaner warning 2022-01-17 17:14:20 +00:00
superio superio/smsc/sch5545/superio.c: Include stdint.h and bsd/helpers.h 2022-01-10 23:28:32 +00:00
vendorcode vendorcode/intel/fsp: Add Alder Lake FSP headers for FSP v2511_04 2022-01-13 18:04:13 +00:00
Kconfig