Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43250 )
Change subject: drivers/ti/tps65090: Drop dead code
......................................................................
drivers/ti/tps65090: Drop dead code
This code is not even being build-tested. Drop it before it grows moss.
Change-Id: Iebd9080cd0e859dce5e6c5398429c38d1aa075dc
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/drivers/ti/tps65090/tps65090.c
1 file changed, 0 insertions(+), 42 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/43250/1
diff --git a/src/drivers/ti/tps65090/tps65090.c b/src/drivers/ti/tps65090/tps65090.c
index 4f9005b..2d2ea69 100644
--- a/src/drivers/ti/tps65090/tps65090.c
+++ b/src/drivers/ti/tps65090/tps65090.c
@@ -92,48 +92,6 @@
return FET_ERR_NOT_READY;
}
-/* FIXME(dhendrix): add timer API */
-#if 0
-int tps65090_fet_enable(unsigned int bus, enum fet_id fet_id)
-{
- int loops;
- unsigned long start;
- int ret = 0;
-
- start = get_timer(0);
- for (loops = 0; ; loops++) {
- ret = tps65090_fet_set(bus, fet_id, 1);
- if (!ret)
- break;
-
- if (get_timer(start) > 100)
- break;
-
- /* Turn it off and try again until we time out */
- tps65090_fet_set(bus, fet_id, 0);
- }
-
- if (ret) {
- printk(BIOS_DEBUG, "%s: FET%d failed to power on: time=%lums, "
- "loops=%d\n", __func__, fet_id,
- get_timer(start), loops);
- } else if (loops) {
- printk(BIOS_DEBUG, "%s: FET%d powered on after %lums, "
- "loops=%d\n", __func__, fet_id,
- get_timer(start), loops);
- }
- /*
- * Unfortunately, there are some conditions where the power
- * good bit will be 0, but the fet still comes up. One such
- * case occurs with the lcd backlight. We'll just return 0 here
- * and assume that the fet will eventually come up.
- */
- if (ret == FET_ERR_NOT_READY)
- ret = 0;
-
- return ret;
-}
-#endif
int tps65090_fet_enable(unsigned int bus, enum fet_id fet_id)
{
int loops;
--
To view, visit https://review.coreboot.org/c/coreboot/+/43250
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iebd9080cd0e859dce5e6c5398429c38d1aa075dc
Gerrit-Change-Number: 43250
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newchange
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43243 )
Change subject: mb/emulation/qemu-q35: Drop dead code
......................................................................
mb/emulation/qemu-q35: Drop dead code
This code is not even being build-tested. Drop it before it grows moss.
Change-Id: I54f3fe0d3b0c988ab6f9065bea81a385507e9747
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/mainboard/emulation/qemu-q35/dsdt.asl
1 file changed, 0 insertions(+), 27 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/43/43243/1
diff --git a/src/mainboard/emulation/qemu-q35/dsdt.asl b/src/mainboard/emulation/qemu-q35/dsdt.asl
index 1b4a174..a9c96be 100644
--- a/src/mainboard/emulation/qemu-q35/dsdt.asl
+++ b/src/mainboard/emulation/qemu-q35/dsdt.asl
@@ -58,24 +58,6 @@
// Never allow SHPC (no SHPC controller in this system)
And(CTRL, 0x1D, CTRL)
-#if 0 // For now, nothing to do
- If (Not(And(CDW1, 1))) { // Query flag clear?
- // Disable GPEs for features granted native control.
- If (And(CTRL, 0x01)) { // Hot plug control granted?
- Store(0, HPCE) // clear the hot plug SCI enable bit
- Store(1, HPCS) // clear the hot plug SCI status bit
- }
- If (And(CTRL, 0x04)) { // PME control granted?
- Store(0, PMCE) // clear the PME SCI enable bit
- Store(1, PMCS) // clear the PME SCI status bit
- }
- If (And(CTRL, 0x10)) { // OS restoring PCI Express cap structure?
- // Set status to not restore PCI Express cap structure
- // upon resume from S3
- Store(1, S3CR)
- }
- }
-#endif
If (LNotEqual(Arg1, One)) {
// Unknown revision
Or(CDW1, 0x08, CDW1)
@@ -385,11 +367,6 @@
define_gsi_link(GSIH, 0, 0x17)
}
-#if 0
-#include "../qemu-i440fx/acpi/cpu-hotplug.asl"
-#endif
-
-
/****************************************************************
* General purpose events
****************************************************************/
@@ -400,10 +377,6 @@
Method(_L00) {
}
Method(_L01) {
-#if 0
- // CPU hotplug event
- \_SB.PRSC()
-#endif
}
Method(_L02) {
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/43243
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I54f3fe0d3b0c988ab6f9065bea81a385507e9747
Gerrit-Change-Number: 43243
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newchange