summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/abb/twl3025.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/firmware/abb/twl3025.c')
-rw-r--r--src/target/firmware/abb/twl3025.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/target/firmware/abb/twl3025.c b/src/target/firmware/abb/twl3025.c
index ad2b01f9..4f495bc8 100644
--- a/src/target/firmware/abb/twl3025.c
+++ b/src/target/firmware/abb/twl3025.c
@@ -14,10 +14,6 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
*/
#include <stdint.h>
@@ -229,6 +225,15 @@ void twl3025_power_off(void)
twl3025_reg_write(VRPCDEV, 0x01);
}
+void twl3025_power_off_now(void)
+{
+ /* The phone will restart if the power butten has not been released.
+ * This can be useful for development. */
+ unsigned long flags;
+ local_firq_save(flags);
+ twl3025_reg_write(VRPCDEV, 0x01);
+}
+
void twl3025_clk13m(int enable)
{
if (enable) {
@@ -368,6 +373,7 @@ void twl3025_unit_enable(enum twl3025_unit unit, int on)
togbr1 = (1 << 5);
else
togbr1 = (1 << 4);
+ break;
case TWL3025_UNIT_VDL:
if (on)
togbr1 = (1 << 3);