diff options
Diffstat (limited to 'firmware/target/arm/sandisk')
-rw-r--r-- | firmware/target/arm/sandisk/backlight-c200_e200.c | 6 | ||||
-rw-r--r-- | firmware/target/arm/sandisk/power-c200_e200.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/sandisk/backlight-c200_e200.c b/firmware/target/arm/sandisk/backlight-c200_e200.c index 33342d19f1..b3984ca9ad 100644 --- a/firmware/target/arm/sandisk/backlight-c200_e200.c +++ b/firmware/target/arm/sandisk/backlight-c200_e200.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "system.h" | 23 | #include "system.h" |
24 | #include "lcd.h" | 24 | #include "lcd.h" |
25 | #include "backlight.h" | 25 | #include "backlight.h" |
26 | #include "i2c-pp.h" | 26 | #include "ascodec.h" |
27 | #include "as3514.h" | 27 | #include "as3514.h" |
28 | 28 | ||
29 | static unsigned short backlight_brightness = DEFAULT_BRIGHTNESS_SETTING; | 29 | static unsigned short backlight_brightness = DEFAULT_BRIGHTNESS_SETTING; |
@@ -46,12 +46,12 @@ void _backlight_on(void) | |||
46 | #ifdef HAVE_LCD_ENABLE | 46 | #ifdef HAVE_LCD_ENABLE |
47 | lcd_enable(true); /* power on lcd + visible display */ | 47 | lcd_enable(true); /* power on lcd + visible display */ |
48 | #endif | 48 | #endif |
49 | pp_i2c_send(AS3514_I2C_ADDR, AS3514_DCDC15, backlight_brightness); | 49 | ascodec_write(AS3514_DCDC15, backlight_brightness); |
50 | } | 50 | } |
51 | 51 | ||
52 | void _backlight_off(void) | 52 | void _backlight_off(void) |
53 | { | 53 | { |
54 | pp_i2c_send(AS3514_I2C_ADDR, AS3514_DCDC15, 0x0); | 54 | ascodec_write(AS3514_DCDC15, 0x0); |
55 | #ifdef HAVE_LCD_ENABLE | 55 | #ifdef HAVE_LCD_ENABLE |
56 | lcd_enable(false); /* power off visible display */ | 56 | lcd_enable(false); /* power off visible display */ |
57 | #endif | 57 | #endif |
diff --git a/firmware/target/arm/sandisk/power-c200_e200.c b/firmware/target/arm/sandisk/power-c200_e200.c index a559f65ec4..d6319f44bb 100644 --- a/firmware/target/arm/sandisk/power-c200_e200.c +++ b/firmware/target/arm/sandisk/power-c200_e200.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
23 | #include "system.h" | 23 | #include "system.h" |
24 | #include "cpu.h" | 24 | #include "cpu.h" |
25 | #include "i2c-pp.h" | 25 | #include "ascodec.h" |
26 | #include "tuner.h" | 26 | #include "tuner.h" |
27 | #include "as3514.h" | 27 | #include "as3514.h" |
28 | #include "power.h" | 28 | #include "power.h" |
@@ -36,9 +36,9 @@ void power_off(void) | |||
36 | char byte; | 36 | char byte; |
37 | 37 | ||
38 | /* Send shutdown command to PMU */ | 38 | /* Send shutdown command to PMU */ |
39 | byte = i2c_readbyte(AS3514_I2C_ADDR, AS3514_SYSTEM); | 39 | byte = ascodec_read(AS3514_SYSTEM); |
40 | byte &= ~0x1; | 40 | byte &= ~0x1; |
41 | pp_i2c_send(AS3514_I2C_ADDR, AS3514_SYSTEM, byte); | 41 | ascodec_write(AS3514_SYSTEM, byte); |
42 | 42 | ||
43 | /* Stop interrupts on both cores */ | 43 | /* Stop interrupts on both cores */ |
44 | disable_interrupt(IRQ_FIQ_STATUS); | 44 | disable_interrupt(IRQ_FIQ_STATUS); |