Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vp32xx GPIO config #567

Closed
wants to merge 17 commits into from
Closed

Vp32xx GPIO config #567

wants to merge 17 commits into from

Conversation

filipleple
Copy link
Member

No description provided.

select BOARD_ROMSIZE_KB_16384
select SOC_INTEL_ALDERLAKE_PCH_N
select SOC_INTEL_COMMON_BLOCK_HDA_VERB
select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THese resources are actually not needed on ADL-N as the SoC does not have USB4/Thunderbolt4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

select SUPERIO_ITE_IT8659E
select DRIVERS_UART_8250IO
select DRIVERS_I2C_GENERIC
select DRIVERS_INTEL_PMC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, Intel PMC driver would be needed with TB4 ports IIRC

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/* ------- GPIO Community 0 ------- */

/* ------- GPIO Group GPP_B ------- */
_PAD_CFG_STRUCT(GPP_B0, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | PAD_BUF(TX_RX_DISABLE), PAD_IOSSTATE(IGNORE)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These _PAD_CFG_STRUCT coudl be converted to more readable macros if you execute intelp2m with -iiii flag

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced with the -iiii format in this commit


/* GPIO */

/* GPIO */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miczyg1 is this standard junk that can be deleted or is this an indication something went wrong?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a mismatch in vGPIO pin names between inteltool and intelp2m

Copy link
Member

@mkopec mkopec Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, inteltool outputs vGPIO but intelp2m expects VGPIO 🙃 https://github.com/coreboot/coreboot/blob/main/util/intelp2m/platforms/adl/template.go#L14

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkopec Hmm, unfortunately neither replacing the vGPIO in inteltool log with VGPIO, nor replacing VGPIO with vGPIO in intelp2m and rebuilding seems to change anything.

What I've noticed is that inteltool output looks a bit different for e.g. NV4xMB:

0x0900: 0x0000000000000000 GPP_vGPIO_PCIE_0 GPIO
0x0910: 0x0000000000000000 GPP_vGPIO_PCIE_1 GPIO
0x0920: 0x0000000000000000 GPP_vGPIO_PCIE_2 GPIO
0x0930: 0x0000000000000000 GPP_vGPIO_PCIE_3 GPIO

vs

0x07f0: 0x0000000080000400 VGPIO_PCIE_0 VGPIO_PCIE_0
0x0800: 0x0000000080000400 VGPIO_PCIE_1 VGPIO_PCIE_1
0x0810: 0x0000000080000400 VGPIO_PCIE_2 VGPIO_PCIE_2
0x0820: 0x0000000080000400 VGPIO_PCIE_3 VGPIO_PCIE_3

So I've also tried sed -i 's/GPP_vGPIO_PCIE/VGPIO_PCIE/g' inteltool.log, which only yields a few less of the /* GPIO */ lines.

@miczyg1
Copy link
Contributor

miczyg1 commented Oct 30, 2024

Superseded by #574

@miczyg1 miczyg1 closed this Oct 30, 2024
@miczyg1 miczyg1 deleted the vp32xx branch October 30, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants