Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32989
Change subject: mb/pcengines/apu2: describe serial ports in ACPI ......................................................................
mb/pcengines/apu2: describe serial ports in ACPI
FreeBSD users had to manually configure serial ports on their installations. Defining serial ports in ACPI save that effort.
Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com Change-Id: I0de4172a1884abbe9d625060a9045c9d71469e27 --- A src/mainboard/pcengines/apu2/acpi/superio.asl M src/mainboard/pcengines/apu2/dsdt.asl 2 files changed, 68 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/32989/1
diff --git a/src/mainboard/pcengines/apu2/acpi/superio.asl b/src/mainboard/pcengines/apu2/acpi/superio.asl new file mode 100644 index 0000000..c61e3d7 --- /dev/null +++ b/src/mainboard/pcengines/apu2/acpi/superio.asl @@ -0,0 +1,65 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2019 PC Engines Gmbh + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +Scope (_SB.PCI0.LIBR) { + + Device (COM1) { + Name (_HID, EISAID ("PNP0501")) + Name (_UID, 1) + + Method (_STA, 0, NotSerialized) { + Return (0x0F) + } + + Name (_CRS, ResourceTemplate () + { + IO (Decode16, 0x03F8, 0x3F8, 0x08, 0x08) + IRQNoFlags () {4} + }) + + Name (_PRS, ResourceTemplate () + { + StartDependentFn (0, 0) { + IO (Decode16, 0x03F8, 0x3F8, 0x08, 0x08) + IRQNoFlags () {4} + } + EndDependentFn () + }) + } + + Device (COM2) { + Name (_HID, EISAID ("PNP0501")) + Name (_UID, 2) + + Method (_STA, 0, NotSerialized) { + Return (0x0F) + } + + Name (_CRS, ResourceTemplate () + { + IO (Decode16, 0x02F8, 0x2F8, 0x08, 0x08) + IRQNoFlags () {3} + }) + + Name (_PRS, ResourceTemplate () + { + StartDependentFn (0, 0) { + IO (Decode16, 0x02F8, 0x2F8, 0x08, 0x08) + IRQNoFlags () {3} + } + EndDependentFn () + }) + } +} \ No newline at end of file diff --git a/src/mainboard/pcengines/apu2/dsdt.asl b/src/mainboard/pcengines/apu2/dsdt.asl index 3bf0ed6..409f03d 100644 --- a/src/mainboard/pcengines/apu2/dsdt.asl +++ b/src/mainboard/pcengines/apu2/dsdt.asl @@ -81,5 +81,8 @@
/* Define the System Indicators for the platform */ #include "acpi/si.asl" + + /* Super IO devices (COM ports) */ + #include "acpi/superio.asl" } /* End of ASL file */
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32989
to look at the new patch set (#2).
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
mb/pcengines/apu2: Describe serial ports in ACPI
FreeBSD users had to manually configure the serial ports on their installations. Describing the serial ports in ACPI save that effort and leaves the configuration to the system.
Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com Change-Id: I0de4172a1884abbe9d625060a9045c9d71469e27 --- A src/mainboard/pcengines/apu2/acpi/superio.asl M src/mainboard/pcengines/apu2/dsdt.asl 2 files changed, 69 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/32989/2
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32989
to look at the new patch set (#3).
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
mb/pcengines/apu2: Describe serial ports in ACPI
FreeBSD users had to manually configure the serial ports on their installations. Describing the serial ports in ACPI save that effort and leaves the configuration to the system.
Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com Change-Id: I0de4172a1884abbe9d625060a9045c9d71469e27 --- A src/mainboard/pcengines/apu2/acpi/superio.asl M src/mainboard/pcengines/apu2/dsdt.asl 2 files changed, 68 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/32989/3
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/#/c/32989/3/src/mainboard/pcengines/apu2/acpi/su... File src/mainboard/pcengines/apu2/acpi/superio.asl:
https://review.coreboot.org/#/c/32989/3/src/mainboard/pcengines/apu2/acpi/su... PS3, Line 19: I usually that's part of the superio directory and you just include asl code here
Michał Żygowski has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/#/c/32989/3/src/mainboard/pcengines/apu2/acpi/su... File src/mainboard/pcengines/apu2/acpi/superio.asl:
https://review.coreboot.org/#/c/32989/3/src/mainboard/pcengines/apu2/acpi/su... PS3, Line 19: I
usually that's part of the superio directory and you just include asl code here
For the Nuvoton NCT5104D there is no ASL code. Should I just import generic PNP UART with proper defines?
Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3: Code-Review+1
Seems to be good, although I don't have any means to test it (don't have an APU2)
Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3: Code-Review+2
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... File src/mainboard/pcengines/apu2/acpi/superio.asl:
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... PS3, Line 19: I
For the Nuvoton NCT5104D there is no ASL code. […]
Wow, sorry for the lack of follow up here: If the generic code works, use that. otherwise it might be useful to implement the structure (that is, create ASL code for NCT5104D)
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3:
(3 comments)
https://review.coreboot.org/c/coreboot/+/32989/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/32989/3//COMMIT_MSG@9 PS3, Line 9: had I’d use present tense: have.
https://review.coreboot.org/c/coreboot/+/32989/3//COMMIT_MSG@10 PS3, Line 10: save saves
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... File src/mainboard/pcengines/apu2/acpi/superio.asl:
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... PS3, Line 14: */ Please use SPDX headers.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... File src/mainboard/pcengines/apu2/acpi/superio.asl:
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... PS3, Line 19: I
Wow, sorry for the lack of follow up here: If the generic code works, use that. […]
I'd prefer to have this ASL code under the superio/ scope. Maybe use another SIO as an example
Michał Żygowski has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... File src/mainboard/pcengines/apu2/acpi/superio.asl:
https://review.coreboot.org/c/coreboot/+/32989/3/src/mainboard/pcengines/apu... PS3, Line 19: I
I'd prefer to have this ASL code under the superio/ scope. […]
I will take the SSDT generator way to do it when I find free cycles for this patch, not so important for me now.
Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989 )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3:
Please resolve a couple of remaining comments to get this patch merged.
Attention is currently required from: Michał Żygowski.
Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32989?usp=email )
Change subject: mb/pcengines/apu2: Describe serial ports in ACPI ......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS3:
If I find some free time I will get back to it... […]
Michal, please note that this patch (for which I voted +2 back then) is going to be "auto-abandoned"