summaryrefslogtreecommitdiffstats
path: root/apps/main.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-15 19:40:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch)
tree98ec96946eeb2ae709cb0528cc6998e21bb9b290 /apps/main.c
parent17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff)
downloadrockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz
rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.bz2
rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/main.c b/apps/main.c
index 208dced923..fe15675c69 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -418,10 +418,6 @@ static void init(void)
{
int rc;
bool mounted = false;
-#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
- /* if nobody initialized ATA before, I consider this a cold start */
- bool coldstart = (PACR2 & 0x4000) != 0; /* starting from Flash */
-#endif
system_init();
core_allocator_init();
@@ -528,24 +524,6 @@ static void init(void)
viewportmanager_init();
CHART("<viewportmanager_init");
-#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
- /* charger_inserted() can't be used here because power_thread()
- hasn't checked power_input_status() yet */
- if (coldstart && (power_input_status() & POWER_INPUT_MAIN_CHARGER)
- && !global_settings.car_adapter_mode
-#ifdef ATA_POWER_PLAYERSTYLE
- && !ide_powered() /* relies on probing result from bootloader */
-#endif
- )
- {
- rc = charging_screen(); /* display a "charging" screen */
- if (rc == 1) /* charger removed */
- power_off();
- /* "On" pressed or USB connected: proceed */
- show_logo(); /* again, to provide better visual feedback */
- }
-#endif
-
CHART(">storage_init");
rc = storage_init();
CHART("<storage_init");