summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuzev2
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-07-22 13:47:09 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-07-22 13:47:09 +0000
commit4d6c8167214082b8f7d0c5415668680e15a20801 (patch)
treed1d19b75e8db83e407f8a7c880335a08f5063e57 /firmware/target/arm/as3525/sansa-fuzev2
parent1ebdb8988f1e029828fdfd9523fc5fb6022613ea (diff)
downloadrockbox-4d6c8167214082b8f7d0c5415668680e15a20801.tar.gz
rockbox-4d6c8167214082b8f7d0c5415668680e15a20801.zip
Sansa Clip+: detect AMSv2 variant (just like was already done for fuze v2), this makes SD transfers work for newer clip+ players ("COMBO4E" type). Variable fuzev2_variant has been renamed to amsv2_variant.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2')
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c6
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
index eebe9b945f..617f7095f4 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
@@ -39,7 +39,7 @@ bool _backlight_init(void)
39 ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10); 39 ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10);
40 40
41 /* needed for button light */ 41 /* needed for button light */
42 if (fuzev2_variant == 1) 42 if (amsv2_variant == 1)
43 ascodec_write_pmu(0x1a, 1, 0x30); /* MUX_PWGD = PWM */ 43 ascodec_write_pmu(0x1a, 1, 0x30); /* MUX_PWGD = PWM */
44 44
45 return true; 45 return true;
@@ -63,7 +63,7 @@ void _backlight_off(void)
63 63
64void _buttonlight_on(void) 64void _buttonlight_on(void)
65{ 65{
66 if (fuzev2_variant == 0) 66 if (amsv2_variant == 0)
67 { 67 {
68 GPIOB_DIR |= 1<<5; 68 GPIOB_DIR |= 1<<5;
69 GPIOB_PIN(5) = (1<<5); 69 GPIOB_PIN(5) = (1<<5);
@@ -77,7 +77,7 @@ void _buttonlight_on(void)
77 77
78void _buttonlight_off(void) 78void _buttonlight_off(void)
79{ 79{
80 if (fuzev2_variant == 0) 80 if (amsv2_variant == 0)
81 { 81 {
82 GPIOB_PIN(5) = 0; 82 GPIOB_PIN(5) = 0;
83 GPIOB_DIR &= ~(1<<5); 83 GPIOB_DIR &= ~(1<<5);
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
index 5ec2025667..7920bff80e 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
@@ -257,7 +257,7 @@ int button_read_device(void)
257 btn |= BUTTON_RIGHT; 257 btn |= BUTTON_RIGHT;
258 if (GPIOB_PIN(1) & 1<<1) 258 if (GPIOB_PIN(1) & 1<<1)
259 btn |= BUTTON_HOME; 259 btn |= BUTTON_HOME;
260 if (fuzev2_variant == 1) 260 if (amsv2_variant == 1)
261 btn ^= BUTTON_HOME; 261 btn ^= BUTTON_HOME;
262 262
263 if (gpiod6 & 1<<6) 263 if (gpiod6 & 1<<6)