mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
e90e1df74d
This reverts commit f60350344a.
69 lines
2.2 KiB
Diff
69 lines
2.2 KiB
Diff
From 11f759cb05a4d9f4656982a8afea40d7dadfb93e Mon Sep 17 00:00:00 2001
|
|
From: Vitali64 <5405891-vitali64yt@users.noreply.gitlab.com>
|
|
Date: Wed, 27 Oct 2021 13:36:01 +0200
|
|
Subject: [PATCH 01/51] add c3 and clockgen to apple/macbook21
|
|
|
|
---
|
|
src/mainboard/apple/i945_macs/Kconfig | 1 +
|
|
src/mainboard/apple/i945_macs/cstates.c | 13 +++++++++++++
|
|
src/mainboard/apple/i945_macs/devicetree.cb | 6 ++++++
|
|
3 files changed, 20 insertions(+)
|
|
|
|
diff --git a/src/mainboard/apple/i945_macs/Kconfig b/src/mainboard/apple/i945_macs/Kconfig
|
|
index 42774e484a..cd5155e81a 100644
|
|
--- a/src/mainboard/apple/i945_macs/Kconfig
|
|
+++ b/src/mainboard/apple/i945_macs/Kconfig
|
|
@@ -20,6 +20,7 @@ config BOARD_APPLE_MACBOOK11
|
|
bool
|
|
select BOARD_APPLE_I945_MACS_COMMON
|
|
select I945_LVDS
|
|
+ select DRIVERS_I2C_CK505
|
|
|
|
config BOARD_APPLE_MACBOOK21
|
|
bool
|
|
diff --git a/src/mainboard/apple/i945_macs/cstates.c b/src/mainboard/apple/i945_macs/cstates.c
|
|
index 13d06f0839..88b8669c61 100644
|
|
--- a/src/mainboard/apple/i945_macs/cstates.c
|
|
+++ b/src/mainboard/apple/i945_macs/cstates.c
|
|
@@ -29,6 +29,19 @@ static const acpi_cstate_t cst_entries[] = {
|
|
.addrh = 0,
|
|
}
|
|
},
|
|
+ {
|
|
+ .ctype = 3,
|
|
+ .latency = 17,
|
|
+ .power = 250,
|
|
+ .resource = {
|
|
+ .space_id = ACPI_ADDRESS_SPACE_FIXED,
|
|
+ .bit_width = ACPI_FFIXEDHW_VENDOR_INTEL,
|
|
+ .bit_offset = ACPI_FFIXEDHW_CLASS_MWAIT,
|
|
+ .access_size = ACPI_ACCESS_SIZE_UNDEFINED,
|
|
+ .addrl = 0x20,
|
|
+ .addrh = 0,
|
|
+ }
|
|
+ },
|
|
};
|
|
|
|
int get_cst_entries(const acpi_cstate_t **entries)
|
|
diff --git a/src/mainboard/apple/i945_macs/devicetree.cb b/src/mainboard/apple/i945_macs/devicetree.cb
|
|
index b17f8ae529..18731b067f 100644
|
|
--- a/src/mainboard/apple/i945_macs/devicetree.cb
|
|
+++ b/src/mainboard/apple/i945_macs/devicetree.cb
|
|
@@ -89,7 +89,13 @@ chip northbridge/intel/i945
|
|
end
|
|
device pci 1f.3 on # SMBUS
|
|
subsystemid 0x8086 0x7270
|
|
+ chip drivers/i2c/ck505
|
|
+ register "mask" = "{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }"
|
|
+ register "regs" = "{ 0x77, 0x77, 0x2d, 0x00, 0x21, 0x10, 0x3b, 0x06, 0x07, 0x0f, 0xf0, 0x01, 0x1e, 0x7f, 0x80, 0x80, 0x10, 0x08, 0x04, 0x01 }"
|
|
+ device i2c 69 on end
|
|
+ end
|
|
end
|
|
+
|
|
end
|
|
end
|
|
end
|
|
--
|
|
2.47.3
|
|
|