diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-ondavx747.h | 8 | ||||
-rw-r--r-- | firmware/export/nand_id.h | 38 |
2 files changed, 41 insertions, 5 deletions
diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h index c61ee17648..96057710c0 100644 --- a/firmware/export/config-ondavx747.h +++ b/firmware/export/config-ondavx747.h | |||
@@ -69,7 +69,6 @@ | |||
69 | 69 | ||
70 | #define CONFIG_KEYPAD ONDAVX747_PAD | 70 | #define CONFIG_KEYPAD ONDAVX747_PAD |
71 | #define HAS_BUTTON_HOLD | 71 | #define HAS_BUTTON_HOLD |
72 | //#define HAVE_HEADPHONE_DETECTION | ||
73 | #define HAVE_TOUCHPAD | 72 | #define HAVE_TOUCHPAD |
74 | #define HAVE_BUTTON_DATA | 73 | #define HAVE_BUTTON_DATA |
75 | 74 | ||
@@ -77,7 +76,7 @@ | |||
77 | #define CONFIG_CODEC SWCODEC | 76 | #define CONFIG_CODEC SWCODEC |
78 | 77 | ||
79 | /* define this if you have a real-time clock */ | 78 | /* define this if you have a real-time clock */ |
80 | //#define CONFIG_RTC RTC_RX5X348AB | 79 | #define CONFIG_RTC RTC_JZ47XX |
81 | 80 | ||
82 | /* Define this for LCD backlight available */ | 81 | /* Define this for LCD backlight available */ |
83 | #define HAVE_BACKLIGHT | 82 | #define HAVE_BACKLIGHT |
@@ -92,7 +91,6 @@ | |||
92 | 91 | ||
93 | /* Define this if you have a software controlled poweroff */ | 92 | /* Define this if you have a software controlled poweroff */ |
94 | //#define HAVE_SW_POWEROFF | 93 | //#define HAVE_SW_POWEROFF |
95 | //TODO: enable this back | ||
96 | 94 | ||
97 | /* The number of bytes reserved for loadable codecs */ | 95 | /* The number of bytes reserved for loadable codecs */ |
98 | #define CODEC_SIZE 0x80000 | 96 | #define CODEC_SIZE 0x80000 |
@@ -101,7 +99,7 @@ | |||
101 | #define PLUGIN_BUFFER_SIZE 0x100000 | 99 | #define PLUGIN_BUFFER_SIZE 0x100000 |
102 | 100 | ||
103 | /* Define this if you have the */ | 101 | /* Define this if you have the */ |
104 | //#define HAVE_TLV320 | 102 | //#define HAVE_INGENIC_CODEC |
105 | 103 | ||
106 | #define CONFIG_I2C I2C_JZ47XX | 104 | #define CONFIG_I2C I2C_JZ47XX |
107 | 105 | ||
@@ -129,7 +127,7 @@ | |||
129 | #define HAVE_POWEROFF_WHILE_CHARGING | 127 | #define HAVE_POWEROFF_WHILE_CHARGING |
130 | 128 | ||
131 | /* Define this to the CPU frequency */ | 129 | /* Define this to the CPU frequency */ |
132 | #define CPU_FREQ 16934400 | 130 | #define CPU_FREQ 3686400 |
133 | 131 | ||
134 | /* define this if you have a flash memory storage */ | 132 | /* define this if you have a flash memory storage */ |
135 | #define HAVE_FLASH_STORAGE | 133 | #define HAVE_FLASH_STORAGE |
diff --git a/firmware/export/nand_id.h b/firmware/export/nand_id.h new file mode 100644 index 0000000000..a47a38eea2 --- /dev/null +++ b/firmware/export/nand_id.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: ata.h 17847 2008-06-28 18:10:04Z bagder $ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Alan Korr | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef __NAND_ID_H__ | ||
22 | #define __NAND_ID_H__ | ||
23 | |||
24 | struct nand_info | ||
25 | { | ||
26 | unsigned char dev_id; | ||
27 | unsigned char dev_id2; | ||
28 | unsigned short pages_per_block; | ||
29 | unsigned short blocks_per_bank; | ||
30 | unsigned short page_size; | ||
31 | unsigned short spare_size; | ||
32 | unsigned short col_cycles; | ||
33 | unsigned short row_cycles; | ||
34 | }; | ||
35 | |||
36 | struct nand_info* nand_identify(unsigned char data[5]); | ||
37 | |||
38 | #endif /* __NAND_ID_H__ */ | ||