summaryrefslogtreecommitdiffstats
path: root/src/drivers/ti
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-07-08 00:09:05 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-07-09 23:51:41 +0000
commitfa557bf4ccea525216f7f4d555a20532b675574a (patch)
tree5045db4a974ec9c23722680911281506b5816ff0 /src/drivers/ti
parent3dde7e7a25f69bbc5d52e505d6d697d71e25e1a0 (diff)
downloadcoreboot-fa557bf4ccea525216f7f4d555a20532b675574a.tar.gz
coreboot-fa557bf4ccea525216f7f4d555a20532b675574a.tar.bz2
coreboot-fa557bf4ccea525216f7f4d555a20532b675574a.zip
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@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43250 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner
Diffstat (limited to 'src/drivers/ti')
-rw-r--r--src/drivers/ti/tps65090/tps65090.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/drivers/ti/tps65090/tps65090.c b/src/drivers/ti/tps65090/tps65090.c
index 4f9005bb5cac..2d2ea692e6ca 100644
--- a/src/drivers/ti/tps65090/tps65090.c
+++ b/src/drivers/ti/tps65090/tps65090.c
@@ -92,48 +92,6 @@ static int tps65090_fet_set(unsigned int bus, enum fet_id fet_id, int set)
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;