mb/google/fatcat: Add ISH support with FW_CONFIG toggle
commit7101c166fa68a66daf0894446170fe7535bc0a55
authorSubrata Banik <subratabanik@google.com>
Tue, 5 Nov 2024 07:14:20 +0000 (5 12:44 +0530)
committerSubrata Banik <subratabanik@google.com>
Sat, 9 Nov 2024 06:50:46 +0000 (9 06:50 +0000)
tree4006ed9fd21237055f7e4501314b1d56eee5f575
parentcfe1e921dd5d358fec2b46f50e356839531d487f
mb/google/fatcat: Add ISH support with FW_CONFIG toggle

This patch adds support for the Integrated Sensor Hub (ISH) on the
Fatcat mainboard.

ISH can be enabled or disabled via FW_CONFIG bit 24. This allows for
flexible configuration depending on the system requirements.

The GPIO configuration for ISH is also updated based on CBI settings,
ensuring correct initialization and communication.

Verified that the device tree correctly probes ISH based on the
FW_CONFIG setting:

*   FW_CONFIG with bit 24 set: ISH is probed successfully.
*   FW_CONFIG with bit 24 cleared: ISH is not probed.

BUG=b:370984186
TEST=Verified ISH probing behavior with different FW_CONFIG settings
using CBI.

Change-Id: I1a9734139a49be982a7dd43d5afd92e7fea6b29c
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84998
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
src/mainboard/google/fatcat/Kconfig
src/mainboard/google/fatcat/variants/fatcat/fw_config.c
src/mainboard/google/fatcat/variants/fatcat/gpio.c
src/mainboard/google/fatcat/variants/fatcat/overridetree.cb