diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c new file mode 100644 index 0000000000..52ea9be1d9 --- /dev/null +++ b/firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c | |||
@@ -0,0 +1,59 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: $ | ||
9 | * | ||
10 | * Copyright (C) 2011 by Tomasz Moń | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #include "config.h" | ||
23 | #include "cpu.h" | ||
24 | #include <stdbool.h> | ||
25 | #include "kernel.h" | ||
26 | #include "system.h" | ||
27 | #include "power.h" | ||
28 | #include "backlight.h" | ||
29 | #include "backlight-target.h" | ||
30 | #include "avr-sansaconnect.h" | ||
31 | |||
32 | void power_init(void) | ||
33 | { | ||
34 | } | ||
35 | |||
36 | void power_off(void) | ||
37 | { | ||
38 | avr_hid_reset_codec(); | ||
39 | avr_hid_power_off(); | ||
40 | } | ||
41 | |||
42 | #if CONFIG_CHARGING | ||
43 | unsigned int power_input_status(void) | ||
44 | { | ||
45 | return POWER_INPUT_NONE; | ||
46 | } | ||
47 | |||
48 | /* Returns true if the unit is charging the batteries. */ | ||
49 | bool charging_state(void) | ||
50 | { | ||
51 | return false; | ||
52 | } | ||
53 | #endif | ||
54 | |||
55 | void ide_power_enable(bool on) | ||
56 | { | ||
57 | (void)on; | ||
58 | } | ||
59 | |||