Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
superio/nuvoton/nct6779d: Add symbol to select COM port
Like the NCT6776 and NCT6791D, the NCT6779D has muxed COMA/GPIO8 functions. Since it requires setting different bits, add a new Kconfig symbol to do it.
TEST=Selecting the symbol gives working serial console on the Asus F2A85-M PRO. Change-Id: I024ea86634b489985112ddb7ce07886e412e4c0b Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M src/superio/nuvoton/common/early_serial.c M src/superio/nuvoton/nct6779d/Kconfig 2 files changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/45971/1
diff --git a/src/superio/nuvoton/common/early_serial.c b/src/superio/nuvoton/common/early_serial.c index cc21f40..6809a2a 100644 --- a/src/superio/nuvoton/common/early_serial.c +++ b/src/superio/nuvoton/common/early_serial.c @@ -53,7 +53,8 @@ nuvoton_pnp_enter_conf_state(dev);
if (CONFIG(SUPERIO_NUVOTON_NCT5539D_COM_A) || - CONFIG(SUPERIO_NUVOTON_NCT6776_COM_A)) + CONFIG(SUPERIO_NUVOTON_NCT6776_COM_A) || + CONFIG(SUPERIO_NUVOTON_NCT6779D_COM_A)) /* Route COM A to GPIO8 pin group */ pnp_write_config(dev, 0x2a, 0x40);
diff --git a/src/superio/nuvoton/nct6779d/Kconfig b/src/superio/nuvoton/nct6779d/Kconfig index ce2af16..2427bdd 100644 --- a/src/superio/nuvoton/nct6779d/Kconfig +++ b/src/superio/nuvoton/nct6779d/Kconfig @@ -3,3 +3,8 @@ config SUPERIO_NUVOTON_NCT6779D bool select SUPERIO_NUVOTON_COMMON_PRE_RAM + +config SUPERIO_NUVOTON_NCT6779D_COM_A + bool + depends on SUPERIO_NUVOTON_NCT6779D + default n
Hello build bot (Jenkins), Felix Held,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45971
to look at the new patch set (#4).
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
superio/nuvoton/nct6779d: Add symbol to select COM port
Like the NCT6776 and NCT6791D, the NCT6779D has muxed COMA/GPIO8 functions. Since it requires setting different bits, add a new Kconfig symbol to do it.
TEST=Selecting the symbol gives working serial console on the Asus F2A85-M PRO. Change-Id: I024ea86634b489985112ddb7ce07886e412e4c0b Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M src/superio/nuvoton/common/early_serial.c M src/superio/nuvoton/nct6779d/Kconfig 2 files changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/45971/4
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
Patch Set 4: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/45971/4/src/superio/nuvoton/common/... File src/superio/nuvoton/common/early_serial.c:
https://review.coreboot.org/c/coreboot/+/45971/4/src/superio/nuvoton/common/... PS4, Line 57: CONFIG(SUPERIO_NUVOTON_NCT6779D_COM_A)) For the future, we could just have a single Kconfig, reflecting what it does, e.g.
config SUPERIO_NUVOTON_COM_A_2A_7
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45971/4/src/superio/nuvoton/common/... File src/superio/nuvoton/common/early_serial.c:
https://review.coreboot.org/c/coreboot/+/45971/4/src/superio/nuvoton/common/... PS4, Line 57: CONFIG(SUPERIO_NUVOTON_NCT6779D_COM_A))
For the future, we could just have a single Kconfig, reflecting what it does, e.g. […]
good idea. i'm ok with doing that as a follow-up patch. from what i saw on the one different case it's the same bit that needs to be cleared and the issue was probably that not only that bit was cleared, but that the whole register was rewritten. might be worth looking into that; maybe we only need one Kconfig symbol for all Nuvoton SIO chips
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG@10 PS5, Line 10: different Really?
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG@10 PS5, Line 10: different
Really?
Hmmmmmmmmmmmm, hard to bikeshed language here. It's the same bit _location_ but different bit _value_ (compared to the default)? But I have to admit it's ambiguous.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG@10 PS5, Line 10: different
Hmmmmmmmmmmmm, hard to bikeshed language here. It's the same bit _location_ […]
I guess this is what happens when the commit message from CB:33640 is reused. The thing is, all Nuvoton SIOs with this option have the same polarity on the same bit of the same register to mux the COM A function.
So, instead of adding yet another Kconfig symbol, one might as well rename one and remove the other two.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/45971/5//COMMIT_MSG@10 PS5, Line 10: different
I guess this is what happens when the commit message from CB:33640 is reused. […]
CB:46521 and CB:46522 make this patch unnecessary.
Paul Menzel has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
Abandoned
CB:46521 and CB:46522 make this patch unnecessary.