diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2011-07-02 02:21:06 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2011-07-02 02:21:06 +0000 |
commit | 88f75d096eb153101f47c3fc75d4ad9cbdbd3de4 (patch) | |
tree | 1093708fb5936b0e0b01c8e8628503588d0b8fe8 | |
parent | 82ecc75e68ee3edc22514c8a33aa7774e02fd4d4 (diff) | |
download | rockbox-88f75d096eb153101f47c3fc75d4ad9cbdbd3de4.tar.gz rockbox-88f75d096eb153101f47c3fc75d4ad9cbdbd3de4.zip |
imx233/fuze+: don't compile {touchpad code,sd} in bootloader mode, fix style in mmc
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30112 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/SOURCES | 2 | ||||
-rw-r--r-- | firmware/export/config/sansafuzeplus.h | 16 | ||||
-rw-r--r-- | firmware/target/arm/imx233/mmc-imx233.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | 9 |
4 files changed, 19 insertions, 10 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index 85d9a28f1b..12774b051f 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -1447,8 +1447,10 @@ target/arm/as3525/lcd-as-e200v2-fuze-fuzev2.S | |||
1447 | 1447 | ||
1448 | #ifdef SANSA_FUZEPLUS | 1448 | #ifdef SANSA_FUZEPLUS |
1449 | #ifndef SIMULATOR | 1449 | #ifndef SIMULATOR |
1450 | #ifndef BOOTLOADER | ||
1450 | drivers/generic_i2c.c | 1451 | drivers/generic_i2c.c |
1451 | drivers/synaptics-rmi.c | 1452 | drivers/synaptics-rmi.c |
1453 | #endif | ||
1452 | target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 1454 | target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c |
1453 | target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c | 1455 | target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c |
1454 | target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | 1456 | target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c |
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index 5a78d37056..491867ec63 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h | |||
@@ -116,9 +116,13 @@ | |||
116 | #define HAVE_FLASH_STORAGE | 116 | #define HAVE_FLASH_STORAGE |
117 | 117 | ||
118 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | 118 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ |
119 | #define CONFIG_STORAGE (STORAGE_SD | STORAGE_MMC) | 119 | #ifdef BOOTLOADER |
120 | 120 | # define CONFIG_STORAGE STORAGE_MMC | |
121 | #define NUM_DRIVES 2 | 121 | #else |
122 | # define CONFIG_STORAGE (STORAGE_SD | STORAGE_MMC) | ||
123 | # define NUM_DRIVES 2 | ||
124 | # define HAVE_HOTSWAP | ||
125 | #endif | ||
122 | 126 | ||
123 | /* todo */ | 127 | /* todo */ |
124 | #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ | 128 | #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ |
@@ -158,12 +162,6 @@ | |||
158 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | 162 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 |
159 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | 163 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 |
160 | 164 | ||
161 | #ifndef BOOTLOADER | ||
162 | #define HAVE_MULTIDRIVE | ||
163 | #define NUM_DRIVES 2 | ||
164 | #define HAVE_HOTSWAP | ||
165 | #endif | ||
166 | |||
167 | /* USB On-the-go */ | 165 | /* USB On-the-go */ |
168 | #define CONFIG_USBOTG USBOTG_ARC | 166 | #define CONFIG_USBOTG USBOTG_ARC |
169 | 167 | ||
diff --git a/firmware/target/arm/imx233/mmc-imx233.c b/firmware/target/arm/imx233/mmc-imx233.c index dafe63f3d3..b0f1f36c26 100644 --- a/firmware/target/arm/imx233/mmc-imx233.c +++ b/firmware/target/arm/imx233/mmc-imx233.c | |||
@@ -69,7 +69,7 @@ int mmc_init(void) | |||
69 | imx233_ssp_set_bus_width(MMC_SSP, 1); | 69 | imx233_ssp_set_bus_width(MMC_SSP, 1); |
70 | imx233_ssp_set_block_size(MMC_SSP, 9); | 70 | imx233_ssp_set_block_size(MMC_SSP, 9); |
71 | /* go to idle state */ | 71 | /* go to idle state */ |
72 | int ret = imx233_ssp_sd_mmc_transfer(MMC_SSP, SD_GO_IDLE_STATE, 0, SSP_NO_RESP, NULL, 0, false, false, NULL); | 72 | int ret = imx233_ssp_sd_mmc_transfer(MMC_SSP, 0, 0, SSP_NO_RESP, NULL, 0, false, false, NULL); |
73 | if(ret != 0) | 73 | if(ret != 0) |
74 | return -1; | 74 | return -1; |
75 | /* send op cond until the card respond with busy bit set; it must complete within 1sec */ | 75 | /* send op cond until the card respond with busy bit set; it must complete within 1sec */ |
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c index b6de9f73d8..f6efe6d6a8 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "lcd.h" | 27 | #include "lcd.h" |
28 | #include "string.h" | 28 | #include "string.h" |
29 | 29 | ||
30 | #ifndef BOOTLOADER | ||
30 | static void i2c_scl_dir(bool out) | 31 | static void i2c_scl_dir(bool out) |
31 | { | 32 | { |
32 | imx233_enable_gpio_output(0, 30, out); | 33 | imx233_enable_gpio_output(0, 30, out); |
@@ -251,6 +252,14 @@ void button_init_device(void) | |||
251 | RMI_2D_GESTURE_FLICK_TIME_700MS << RMI_2D_GESTURE_FLICK_TIME_BP); | 252 | RMI_2D_GESTURE_FLICK_TIME_700MS << RMI_2D_GESTURE_FLICK_TIME_BP); |
252 | } | 253 | } |
253 | 254 | ||
255 | #else | ||
256 | |||
257 | void button_init_device(void) | ||
258 | { | ||
259 | } | ||
260 | |||
261 | #endif | ||
262 | |||
254 | int button_read_device(void) | 263 | int button_read_device(void) |
255 | { | 264 | { |
256 | int res = 0; | 265 | int res = 0; |