summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshu Agrawal <akshu.agrawal@amd.com>2018-04-17 17:59:17 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-05-04 10:04:22 +0000
commitd6dbdb264f947c2cca1b2c067bc5090da04cf2e1 (patch)
treedda7627116b6344d4fdda68616960bd9629b193e
parentc0257dd7ae9c8899b49c05ef74d9c5a91ee71d4f (diff)
soc/amd/stonyridge: Add misc device
oscout system clock is present in FCH misc device. The kernel acpi misc driver will use the resource to register oscout system clock. BUG=b:74570989 TEST=Tested clock enable/disable in kernel driver Change-Id: Ia90d3abab447fb5d27f454d9d6c33d0b5c3a0f16 Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com> Reviewed-on: https://review.coreboot.org/25918 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--src/soc/amd/stoneyridge/acpi/sb_fch.asl14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/soc/amd/stoneyridge/acpi/sb_fch.asl b/src/soc/amd/stoneyridge/acpi/sb_fch.asl
index 2ffd951935..114401e24b 100644
--- a/src/soc/amd/stoneyridge/acpi/sb_fch.asl
+++ b/src/soc/amd/stoneyridge/acpi/sb_fch.asl
@@ -14,6 +14,7 @@
*/
#include <soc/gpio.h>
+#include <soc/iomap.h>
Device (AAHB)
{
@@ -137,3 +138,16 @@ Device (I2CD)
Return (0x0F)
}
}
+
+Device (MISC)
+{
+ Name (_HID, "AMD0040")
+ Name (_UID, 0x3)
+ Name (_CRS, ResourceTemplate() {
+ Memory32Fixed(ReadWrite, MISC_MMIO_BASE, 0x100)
+ })
+ Method (_STA, 0x0, NotSerialized)
+ {
+ Return (0x0F)
+ }
+}