summaryrefslogtreecommitdiff
path: root/firmware/src/simtrace.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-03-22 22:55:14 +0100
committerHarald Welte <laforge@gnumonks.org>2012-03-22 22:55:14 +0100
commit4086f4cf46a8f508766eeaad03450a4d7845f194 (patch)
tree413120574a2caa577b3433d6f02814ba7906ba0d /firmware/src/simtrace.h
parent559fc6858377def4705fdcb15bf8cb8a72a54f92 (diff)
simtrace: implement SIM power switching API
there is now a high-level command by which we can swithc the VCC supply of the SIM cards. For some reason, the _PASS variant (passing through the voltage from the phone) doesn't seem to work reliably. It might be that we are draining reverse current throught the LDO once we supply SIM power that way.
Diffstat (limited to 'firmware/src/simtrace.h')
-rw-r--r--firmware/src/simtrace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/src/simtrace.h b/firmware/src/simtrace.h
index b6d44c4..f3ddf23 100644
--- a/firmware/src/simtrace.h
+++ b/firmware/src/simtrace.h
@@ -36,8 +36,8 @@
#define SIMTRACE_PIO_VCC_SIM AT91C_PIO_PA5
/* to set power source for VCC_SIM for v1.0(p) */
-#define SIMTRACE_PIO_SIM_PWREN AT91C_PIO_PA5
-#define SIMTRACE_PIO_SIM_PWRFWD AT91C_PIO_PA26
+#define SIMTRACE_PIO_SIM_LDOEN AT91C_PIO_PA5
+#define SIMTRACE_PIO_SIM_nPWRFWD AT91C_PIO_PA26
/* VCC_PHONE detection */
#define SIMTRACE_PIO_VCC_PHONE AT91C_PIO_PA25
personal git repositories of Harald Welte. Your mileage may vary