diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-08-14 16:28:30 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-08-14 16:29:39 -0400 |
commit | 04fe77a4654d43bf4fe07831d25c8ab92f054b65 (patch) | |
tree | 85e5868961b42acf72d496af63c2bf8947a46ac3 /firmware | |
parent | 786d06742a379df667b0fd14df0b2dbc045f312c (diff) |
Remove the (very) incomplete port for the Tatung TPJ-1102
It was barely even a stub, and hasn't seen any development since 2009
Change-Id: I0aa15d9a7b90ae8c771924d9f401380d4cc0fab9
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/SOURCES | 8 | ||||
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/config/tatungtpj1022.h | 151 | ||||
-rw-r--r-- | firmware/target/arm/pp/system-pp502x.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/pp/system-target.h | 8 | ||||
-rw-r--r-- | firmware/target/arm/pp/usb-fw-pp502x.c | 6 | ||||
-rw-r--r-- | firmware/target/arm/tatung/app.lds | 2 | ||||
-rw-r--r-- | firmware/target/arm/tatung/boot.lds | 2 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/adc-target.h | 35 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/backlight-target.h | 31 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c | 46 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/button-target.h | 51 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/button-tpj1022.c | 49 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/lcd-tpj1022.c | 85 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/power-tpj1022.c | 63 | ||||
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/powermgmt-tpj1022.c | 62 |
16 files changed, 0 insertions, 605 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index e2f7e26f84..87db67d8fd 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -1301,14 +1301,6 @@ target/arm/olympus/mrobe-100/power-mr100.c target/arm/olympus/mrobe-100/powermgmt-mr100.c #endif /* MROBE_100 */ -#ifdef TATUNG_TPJ1022 -target/arm/tatung/tpj1022/backlight-tpj1022.c -target/arm/tatung/tpj1022/button-tpj1022.c -target/arm/tatung/tpj1022/lcd-tpj1022.c -target/arm/tatung/tpj1022/power-tpj1022.c -target/arm/tatung/tpj1022/powermgmt-tpj1022.c -#endif /* TATUNG_TPJ1022 */ - #ifdef IPOD_4G target/arm/ipod/backlight-4g_color.c target/arm/ipod/button-clickwheel.c diff --git a/firmware/export/config.h b/firmware/export/config.h index 383677865f..5700fad37f 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -105,7 +105,6 @@ #define IRIVER_H10_PAD 12 #define SANSA_E200_PAD 13 #define SANSA_C200_PAD 14 -#define TATUNG_TPJ1022_PAD 15 #define MROBE100_PAD 17 #define MROBE500_PAD 18 #define GIGABEAT_S_PAD 19 @@ -224,7 +223,6 @@ #define LCD_GIGABEAT 12 #define LCD_H10_20GB 13 /* as used by iriver H10 20Gb */ #define LCD_H10_5GB 14 /* as used by iriver H10 5Gb */ -#define LCD_TPJ1022 15 /* as used by Tatung Elio TPJ-1022 */ #define LCD_C200 17 /* as used by Sandisk Sansa c200 */ #define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */ #define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */ @@ -425,8 +423,6 @@ Lyre prototype 1 */ #include "config/sansae200.h" #elif defined(SANSA_C200) #include "config/sansac200.h" -#elif defined(TATUNG_TPJ1022) -#include "config/tatungtpj1022.h" #elif defined(MROBE_100) #include "config/mrobe100.h" #elif defined(MROBE_500) diff --git a/firmware/export/config/tatungtpj1022.h b/firmware/export/config/tatungtpj1022.h deleted file mode 100644 index 3865e8f87f..0000000000 --- a/firmware/export/config/tatungtpj1022.h +++ /dev/null @@ -1,151 +0,0 @@ -/* - * This config file is for the Tatung Elio TPJ-1022 - */ - -#define MODEL_NAME "Tatung Elio TPJ-1022" - -/* For Rolo and boot loader */ -#define MODEL_NUMBER 15 - -/* define this if you use an ATA controller */ -#define CONFIG_STORAGE STORAGE_ATA - -/*define this if the ATA controller and method of USB access support LBA48 */ -#define HAVE_LBA48 - -/* define this if you have recording possibility */ -/*#define HAVE_RECORDING*/ /* TODO: add support for this */ - -/* define the bitmask of hardware sample rates */ -#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ - SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) - -/* define the bitmask of recording sample rates -#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ - SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */ - - - - -/* define this if you have a colour LCD */ -#define HAVE_LCD_COLOR - -/* define this if you have access to the quickscreen */ -#define HAVE_QUICKSCREEN - -/* LCD dimensions */ -#define LCD_WIDTH 220 -#define LCD_HEIGHT 176 -/* sqrt(220^2 + 176^2) / 2.2 = 128.1 */ -#define LCD_DPI 128 -#define LCD_DEPTH 16 /* 65536 colours */ -#define LCD_PIXELFORMAT RGB565 - -/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ - -#define CONFIG_KEYPAD TATUNG_TPJ1022_PAD - - - - -/* define this if you have a real-time clock */ -#ifndef BOOTLOADER -//#define CONFIG_RTC RTC_E8564 -#endif - -/* Define this if you have a software controlled poweroff */ -#define HAVE_SW_POWEROFF - -/* The number of bytes reserved for loadable codecs */ -#define CODEC_SIZE 0x100000 - -/* The number of bytes reserved for loadable plugins */ -#define PLUGIN_BUFFER_SIZE 0x80000 - -/* Define this if you have the WM8731 audio codec */ -#define HAVE_WM8731 - -#define AB_REPEAT_ENABLE - -/* define this if you have a disk storage, i.e. something - that needs spinups and can cause skips when shaked */ -#define HAVE_DISK_STORAGE - -/* Define this for LCD backlight available */ -#define HAVE_BACKLIGHT - -#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity - TODO: check this, probably different - for different models too */ -#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ -#define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */ -#define BATTERY_CAPACITY_INC 10 /* capacity increment */ -#define BATTERY_TYPES_COUNT 1 /* only one type */ - -#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE - -/* Hardware controlled charging? FIXME */ -#define CONFIG_CHARGING CHARGING_SIMPLE - -/* define this if the unit can be powered or charged via USB */ -/*#define HAVE_USB_POWER*/ - -/* Define this if you have a PortalPlayer PP5020 */ -#define CONFIG_CPU PP5020 - -/* Define this if you want to use the PP5020 i2c interface */ -#define CONFIG_I2C I2C_PP5020 - -/* define this if the hardware can be powered off while charging */ -/* TODO: should this be set for the H10? */ -//#define HAVE_POWEROFF_WHILE_CHARGING - -/* The start address index for ROM builds */ -#define ROM_START 0x00000000 - -/* Define this to the CPU frequency */ -/* TODO: this is probably wrong */ -#define CPU_FREQ 11289600 - -/* Type of LCD */ -#define CONFIG_LCD LCD_TPJ1022 - -#define DEFAULT_CONTRAST_SETTING 19 - -/* Offset ( in the firmware file's header ) to the file length */ -#define FIRMWARE_OFFSET_FILE_LENGTH 0 - -/* Offset ( in the firmware file's header ) to the file CRC */ -#define FIRMWARE_OFFSET_FILE_CRC 0 - -/* Offset ( in the firmware file's header ) to the real data */ -#define FIRMWARE_OFFSET_FILE_DATA 8 - -/* USB On-the-go */ -#define CONFIG_USBOTG USBOTG_ARC - -/* define this if the unit can be powered or charged via USB */ -#define HAVE_USB_POWER - -/* enable these for the experimental usb stack ROOLKU */ -#define HAVE_USBSTACK -#define USB_VENDOR_ID 0x07B4 -#define USB_PRODUCT_ID 0x0280 - -/* Define this if you have adjustable CPU frequency */ -#define HAVE_ADJUSTABLE_CPU_FREQ - -#define BOOTFILE_EXT "elio" -#define BOOTFILE "rockbox." BOOTFILE_EXT -#define BOOTDIR "/.rockbox" - - -/* DMA is used only for reading on PP502x because although reads are ~8x faster - * writes appear to be ~25% slower. - */ -#ifndef BOOTLOADER -#define HAVE_ATA_DMA -#endif - -/* Define this if a programmable hotkey is mapped */ -//#define HAVE_HOTKEY diff --git a/firmware/target/arm/pp/system-pp502x.c b/firmware/target/arm/pp/system-pp502x.c index d6dfad1b24..fb6fe28d91 100644 --- a/firmware/target/arm/pp/system-pp502x.c +++ b/firmware/target/arm/pp/system-pp502x.c @@ -559,8 +559,6 @@ void system_init(void) /* to be done */ #elif defined (MROBE_100) /* to be done */ -#elif defined (TATUNG_TPJ1022) - /* to be done */ #elif defined(PBELL_VIBE500) /* reset all allowed devices */ DEV_RS = 0x3ffffef8; diff --git a/firmware/target/arm/pp/system-target.h b/firmware/target/arm/pp/system-target.h index 1e947195bd..b00374e40e 100644 --- a/firmware/target/arm/pp/system-target.h +++ b/firmware/target/arm/pp/system-target.h @@ -175,14 +175,6 @@ extern unsigned char probed_ramsize; int battery_default_capacity(void); #endif - -#ifdef BOOTLOADER -#if defined(TATUNG_TPJ1022) - /* Some targets don't like yielding in the bootloader - force - * yield() to return without a context switch. */ -#define YIELD_KERNEL_HOOK() true -#endif - #ifdef HAVE_BOOTLOADER_USB_MODE void tick_stop(void); void system_prepare_fw_start(void); diff --git a/firmware/target/arm/pp/usb-fw-pp502x.c b/firmware/target/arm/pp/usb-fw-pp502x.c index b0fcfb83a4..a4d8e28a06 100644 --- a/firmware/target/arm/pp/usb-fw-pp502x.c +++ b/firmware/target/arm/pp/usb-fw-pp502x.c @@ -81,12 +81,6 @@ #define USB_GPIO_MASK 0x10 #define USB_GPIO_VAL 0x10 -#elif defined(TATUNG_TPJ1022) - /* GPIO ? bit ? is usb detect (dummy value)*/ -#define USB_GPIO GPIOD -#define USB_GPIO_MASK 0x10 -#define USB_GPIO_VAL 0x10 - #elif defined(PBELL_VIBE500) /* GPIO L bit 3 is usb detect */ #define USB_GPIO GPIOL diff --git a/firmware/target/arm/tatung/app.lds b/firmware/target/arm/tatung/app.lds deleted file mode 100644 index 856cc52bb0..0000000000 --- a/firmware/target/arm/tatung/app.lds +++ /dev/null @@ -1,2 +0,0 @@ -#include "config.h" -#include "../pp/app-pp.lds" diff --git a/firmware/target/arm/tatung/boot.lds b/firmware/target/arm/tatung/boot.lds deleted file mode 100644 index 33b826bec8..0000000000 --- a/firmware/target/arm/tatung/boot.lds +++ /dev/null @@ -1,2 +0,0 @@ -#include "config.h" -#include "../pp/boot-pp.lds" diff --git a/firmware/target/arm/tatung/tpj1022/adc-target.h b/firmware/target/arm/tatung/tpj1022/adc-target.h deleted file mode 100644 index 026bb58089..0000000000 --- a/firmware/target/arm/tatung/tpj1022/adc-target.h +++ /dev/null @@ -1,35 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2006 by Barry Wardell - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ -#ifndef _ADC_TARGET_H_ -#define _ADC_TARGET_H_ - -#define NUM_ADC_CHANNELS 4 - -#define ADC_BATTERY 0 -#define ADC_UNKNOWN_1 1 -#define ADC_UNKNOWN_2 2 -#define ADC_SCROLLPAD 3 -#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ - -/* Force a scan now */ -unsigned short adc_scan(int channel); - -#endif diff --git a/firmware/target/arm/tatung/tpj1022/backlight-target.h b/firmware/target/arm/tatung/tpj1022/backlight-target.h deleted file mode 100644 index 4a5e677599..0000000000 --- a/firmware/target/arm/tatung/tpj1022/backlight-target.h +++ /dev/null @@ -1,31 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2006 by Barry Wardell - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -/* Taken from the x5's implementation */ - -#ifndef BACKLIGHT_TARGET_H -#define BACKLIGHT_TARGET_H - -#define backlight_hw_init() true -void backlight_hw_on(void); -void backlight_hw_off(void); - -#endif diff --git a/firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c b/firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c deleted file mode 100644 index d63387728b..0000000000 --- a/firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2006 by Barry Wardell - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -/* The H10 display (and hence backlight) possibly identical to that of the X5, - so that code was used here but left #if 0'ed out for the moment */ - -#include "config.h" -#include "cpu.h" -#include "system.h" -#include "backlight.h" - -void backlight_hw_on(void) -{ -#if 0 - int level = disable_irq_save(); - pcf50606_write(0x38, 0xb0); /* Backlight ON, GPO1INV=1, GPO1ACT=011 */ - restore_irq(level); -#endif -} - -void backlight_hw_off(void) -{ -#if 0 - int level = disable_irq_save(); - pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=000 */ - restore_irq(level); -#endif -} diff --git a/firmware/target/arm/tatung/tpj1022/button-target.h b/firmware/target/arm/tatung/tpj1022/button-target.h deleted file mode 100644 index 1143c1b1da..0000000000 --- a/firmware/target/arm/tatung/tpj1022/button-target.h +++ /dev/null @@ -1,51 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2006 by Robert Kukla - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -#ifndef _BUTTON_TARGET_H_ -#define _BUTTON_TARGET_H_ - -#define HAS_BUTTON_HOLD - -/* Main unit's buttons */ - -#define BUTTON_VOL_DOWN 0x00000001 - -/* bit position in GPIOA */ -#define BUTTON_REW 0x00000002 -#define BUTTON_FF 0x00000004 -#define BUTTON_POWER 0x00000008 -#define BUTTON_UP 0x00000010 -#define BUTTON_DOWN 0x00000020 -#define BUTTON_AB 0x00000040 -#define BUTTON_RIGHT 0x00000080 - -/* still unknown */ -#define BUTTON_MENU 0x00000100 -#define BUTTON_REC 0x00000200 -#define BUTTON_VOL_UP 0x00000400 -#define BUTTON_LEFT 0x00000800 - -#define BUTTON_MAIN 0x00000FFF - -#define POWEROFF_BUTTON BUTTON_POWER -#define POWEROFF_COUNT 10 - -#endif /* _BUTTON_TARGET_H_ */ diff --git a/firmware/target/arm/tatung/tpj1022/button-tpj1022.c b/firmware/target/arm/tatung/tpj1022/button-tpj1022.c deleted file mode 100644 index ce9d7ab24d..0000000000 --- a/firmware/target/arm/tatung/tpj1022/button-tpj1022.c +++ /dev/null @@ -1,49 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2006 by Robert Kukla - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -#include "system.h" -#include "button.h" - -bool button_hold(void) -{ - return (GPIOK_INPUT_VAL & 0x40) ? true : false; -} - -int button_read_device(void) -{ - int btn = BUTTON_NONE; - - if (!button_hold()) - { - btn = (GPIOA_INPUT_VAL & 0xfe) ^ 0xfe; - - if ((GPIOK_INPUT_VAL & 0x20) == 0) btn |= BUTTON_VOL_DOWN; - - /* to be found - if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_MENU; - if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_REC; - if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_VOL_UP; - if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_LEFT; - */ - } - - return btn; -} diff --git a/firmware/target/arm/tatung/tpj1022/lcd-tpj1022.c b/firmware/target/arm/tatung/tpj1022/lcd-tpj1022.c deleted file mode 100644 index bf29ba092e..0000000000 --- a/firmware/target/arm/tatung/tpj1022/lcd-tpj1022.c +++ /dev/null @@ -1,85 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2006 by Barry Wardell - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ -#include "config.h" -#include "cpu.h" -#include "lcd.h" -#include "kernel.h" -#include "system.h" - -/*** hardware configuration ***/ - -void lcd_set_contrast(int val) -{ - /* TODO: Implement lcd_set_contrast() */ - (void)val; -} - -void lcd_set_invert_display(bool yesno) -{ - /* TODO: Implement lcd_set_invert_display() */ - (void)yesno; -} - -/* turn the display upside down (call lcd_update() afterwards) */ -void lcd_set_flip(bool yesno) -{ - /* TODO: Implement lcd_set_flip() */ - (void)yesno; -} - -/* LCD init */ -void lcd_init_device(void) -{ - -} - -/*** update functions ***/ - -/* Performance function to blit a YUV bitmap directly to the LCD */ -void lcd_blit_yuv(unsigned char * const src[3], - int src_x, int src_y, int stride, - int x, int y, int width, int height) -{ - (void)src; - (void)src_x; - (void)src_y; - (void)stride; - (void)x; - (void)y; - (void)width; - (void)height; -} - -/* Update a fraction of the display. */ -void lcd_update_rect(int x0, int y0, int width, int height) -{ - (void)x0; - (void)y0; - (void)width; - (void)height; -} - -/* Update the display. - This must be called after all other LCD functions that change the display. */ -void lcd_update(void) -{ - lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); -} diff --git a/firmware/target/arm/tatung/tpj1022/power-tpj1022.c b/firmware/target/arm/tatung/tpj1022/power-tpj1022.c deleted file mode 100644 index fa46f34daa..0000000000 --- a/firmware/target/arm/tatung/tpj1022/power-tpj1022.c +++ /dev/null @@ -1,63 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2006 by Barry Wardell - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -/* Created from power.c using some iPod code, and some custom stuff based on - GPIO analysis -*/ - -#include "config.h" -#include "cpu.h" -#include <stdbool.h> -#include "kernel.h" -#include "system.h" -#include "power.h" -#include "logf.h" -#include "usb.h" - -void power_init(void) -{ -} - -unsigned int power_input_status(void) -{ - return POWER_INPUT_NONE; -} - -void ide_power_enable(bool on) -{ - (void)on; - /* We do nothing on the iPod */ -} - - -bool ide_powered(void) -{ - /* pretend we are always powered - we don't turn it off on the ipod */ - return true; -} - -void power_off(void) -{ - /* Give things a second to settle before cutting power */ - sleep(HZ); - - //GPIOF_OUTPUT_VAL &=~ 0x20; -} diff --git a/firmware/target/arm/tatung/tpj1022/powermgmt-tpj1022.c b/firmware/target/arm/tatung/tpj1022/powermgmt-tpj1022.c deleted file mode 100644 index cc91012fcd..0000000000 --- a/firmware/target/arm/tatung/tpj1022/powermgmt-tpj1022.c +++ /dev/null @@ -1,62 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2002 by Heikki Hannikainen, Uwe Freese - * Revisions copyright (C) 2005 by Gerald Van Baren - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -#include "config.h" -#include "adc.h" -#include "powermgmt.h" - -/* FIXME: All voltages copied from H10 according to the battery type given - * in config-tpj1022.h at the time of splitting. This probably needs changing - * if that port ever gets up to speed. */ - -const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = -{ - 3760 -}; - -const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = -{ - 3650 -}; - -/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ -const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = -{ - { 3760, 3800, 3850, 3870, 3900, 3950, 4020, 4070, 4110, 4180, 4240 } -}; - -#if CONFIG_CHARGING -/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short percent_to_volt_charge[11] = -{ - 3990, 4030, 4060, 4080, 4100, 4120, 4150, 4180, 4220, 4260, 4310 -}; -#endif /* CONFIG_CHARGING */ - -#define BATTERY_SCALE_FACTOR 6000 -/* full-scale ADC readout (2^10) in millivolt */ - -/* Returns battery voltage from ADC [millivolts] */ -int _battery_voltage(void) -{ - return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10; -} |