summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-06-20 18:37:29 +0000
committerJens Arnold <amiconn@rockbox.org>2009-06-20 18:37:29 +0000
commitb76faecd60ddb414c442db0636c68a24b7c8c045 (patch)
tree51fa8a0469911149e219f15bbc76eff2193e5df4
parent96904ba7c3a32083b4e49a6291891fbbc3442b88 (diff)
downloadrockbox-b76faecd60ddb414c442db0636c68a24b7c8c045.tar.gz
rockbox-b76faecd60ddb414c442db0636c68a24b7c8c045.zip
Make ATA poweroff an advanced build option for the Player.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21409 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config-player.h4
-rwxr-xr-xtools/configure15
2 files changed, 15 insertions, 4 deletions
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h
index 3071a09be8..9d4696797b 100644
--- a/firmware/export/config-player.h
+++ b/firmware/export/config-player.h
@@ -60,10 +60,6 @@
60/* Define this if you have a SH7034 */ 60/* Define this if you have a SH7034 */
61#define CONFIG_CPU SH7034 61#define CONFIG_CPU SH7034
62 62
63/* Uncomment this if you want to enable ATA power-off control.
64 * Attention, some players crash when ATA power-off is enabled! */
65//#define HAVE_ATA_POWER_OFF
66
67/* Define this if you control ata power player style 63/* Define this if you control ata power player style
68 (with PB4, new player only) */ 64 (with PB4, new player only) */
69#define ATA_POWER_PLAYERSTYLE 65#define ATA_POWER_PLAYERSTYLE
diff --git a/tools/configure b/tools/configure
index e90a884602..e543919ca6 100755
--- a/tools/configure
+++ b/tools/configure
@@ -321,6 +321,9 @@ whichadvanced () {
321 if [ "$memory" = "2" ]; then 321 if [ "$memory" = "2" ]; then
322 printf ", (8)MB MOD" 322 printf ", (8)MB MOD"
323 fi 323 fi
324 if [ "$modelname" = "player" ]; then
325 printf ", Use (A)TA poweroff"
326 fi
324 if [ "$t_model" = "ondio" ]; then 327 if [ "$t_model" = "ondio" ]; then
325 printf ", (B)acklight MOD" 328 printf ", (B)acklight MOD"
326 fi 329 fi
@@ -375,6 +378,14 @@ whichadvanced () {
375 cont=0 378 cont=0
376 fi 379 fi
377 ;; 380 ;;
381 [Aa])
382 if [ "$modelname" = "player" ]; then
383 have_ata_poweroff="#define HAVE_ATA_POWEROFF"
384 echo "ATA poweroff enabled"
385 else
386 cont=0
387 fi
388 ;;
378 [Bb]) 389 [Bb])
379 if [ "$t_model" = "ondio" ]; then 390 if [ "$t_model" = "ondio" ]; then
380 have_backlight="#define HAVE_BACKLIGHT" 391 have_backlight="#define HAVE_BACKLIGHT"
@@ -2551,6 +2562,7 @@ sed > autoconf.h \
2551 -e "s,@RBDIR@,${rbdir},g" \ 2562 -e "s,@RBDIR@,${rbdir},g" \
2552 -e "s,@have_backlight@,$have_backlight,g" \ 2563 -e "s,@have_backlight@,$have_backlight,g" \
2553 -e "s,@have_fmradio_in@,$have_fmradio_in,g" \ 2564 -e "s,@have_fmradio_in@,$have_fmradio_in,g" \
2565 -e "s,@have_ata_poweroff@,$have_ata_poweroff,g" \
2554<<EOF 2566<<EOF
2555/* This header was made by configure */ 2567/* This header was made by configure */
2556#ifndef __BUILD_AUTOCONF_H 2568#ifndef __BUILD_AUTOCONF_H
@@ -2568,6 +2580,9 @@ sed > autoconf.h \
2568/* optional define for FM radio mod for iAudio M5 */ 2580/* optional define for FM radio mod for iAudio M5 */
2569@have_fmradio_in@ 2581@have_fmradio_in@
2570 2582
2583/* optional define for ATA poweroff on Player */
2584@have_ata_poweroff@
2585
2571/* optional defines for RTC mod for h1x0 */ 2586/* optional defines for RTC mod for h1x0 */
2572@config_rtc@ 2587@config_rtc@
2573@have_rtc_alarm@ 2588@have_rtc_alarm@