diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-07-03 14:49:51 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-07-03 16:51:58 -0400 |
commit | e2fb4ecd5c6395ec6bf6524cc4a54ad878a15b13 (patch) | |
tree | adac5da0ab6b6d88217591fdfefe061dfec32f2e | |
parent | 80b91277279105d49fdf5a967d88f6a1abc38bb3 (diff) | |
download | rockbox-e2fb4ecd5c6395ec6bf6524cc4a54ad878a15b13.tar.gz rockbox-e2fb4ecd5c6395ec6bf6524cc4a54ad878a15b13.zip |
xduoox3: Completely strip USB support out of the bootloader.
Change-Id: I7167e051a56a3be3c285c209b1c8fca7de251b09
-rw-r--r-- | bootloader/xduoox3.c | 19 | ||||
-rw-r--r-- | firmware/SOURCES | 2 | ||||
-rw-r--r-- | firmware/export/config/xduoox3.h | 4 |
3 files changed, 4 insertions, 21 deletions
diff --git a/bootloader/xduoox3.c b/bootloader/xduoox3.c index ff6b81aa25..ac2d648e61 100644 --- a/bootloader/xduoox3.c +++ b/bootloader/xduoox3.c | |||
@@ -160,25 +160,6 @@ static int boot_rockbox(void) | |||
160 | } | 160 | } |
161 | } | 161 | } |
162 | 162 | ||
163 | #if 0 | ||
164 | static void reset_configuration(void) | ||
165 | { | ||
166 | int rc; | ||
167 | |||
168 | rc = disk_mount_all(); | ||
169 | if (rc <= 0) | ||
170 | { | ||
171 | verbose = true; | ||
172 | error(EDISK,rc, true); | ||
173 | } | ||
174 | |||
175 | if(rename(ROCKBOX_DIR "/config.cfg", ROCKBOX_DIR "/config.old") == 0) | ||
176 | show_splash(HZ/2, "Configuration reset successfully!"); | ||
177 | else | ||
178 | show_splash(HZ/2, "Couldn't reset configuration!"); | ||
179 | } | ||
180 | #endif | ||
181 | |||
182 | int main(void) | 163 | int main(void) |
183 | { | 164 | { |
184 | int rc; | 165 | int rc; |
diff --git a/firmware/SOURCES b/firmware/SOURCES index 75ea8b136e..4e6fcbf70c 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -1646,9 +1646,9 @@ target/mips/ingenic_jz47xx/kernel-jz4760.c | |||
1646 | target/mips/ingenic_jz47xx/i2c-jz4760.c | 1646 | target/mips/ingenic_jz47xx/i2c-jz4760.c |
1647 | target/mips/ingenic_jz47xx/lcd-jz4760.c | 1647 | target/mips/ingenic_jz47xx/lcd-jz4760.c |
1648 | target/mips/ingenic_jz47xx/system-jz4760.c | 1648 | target/mips/ingenic_jz47xx/system-jz4760.c |
1649 | target/mips/ingenic_jz47xx/usb-jz4760.c | ||
1650 | target/mips/ingenic_jz47xx/timer-jz4760.c | 1649 | target/mips/ingenic_jz47xx/timer-jz4760.c |
1651 | #ifndef BOOTLOADER | 1650 | #ifndef BOOTLOADER |
1651 | target/mips/ingenic_jz47xx/usb-jz4760.c | ||
1652 | target/mips/ingenic_jz47xx/codec-jz4760.c | 1652 | target/mips/ingenic_jz47xx/codec-jz4760.c |
1653 | target/mips/ingenic_jz47xx/pcm-jz4760.c | 1653 | target/mips/ingenic_jz47xx/pcm-jz4760.c |
1654 | #endif /* BOOTLOADER */ | 1654 | #endif /* BOOTLOADER */ |
diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h index 46e1a61712..0d413ad372 100644 --- a/firmware/export/config/xduoox3.h +++ b/firmware/export/config/xduoox3.h | |||
@@ -174,6 +174,7 @@ | |||
174 | /* Type of LCD */ | 174 | /* Type of LCD */ |
175 | #define CONFIG_LCD LCD_XDUOOX3 | 175 | #define CONFIG_LCD LCD_XDUOOX3 |
176 | 176 | ||
177 | #ifndef BOOTLOADER | ||
177 | /* USB On-the-go */ | 178 | /* USB On-the-go */ |
178 | #define CONFIG_USBOTG USBOTG_JZ4760 | 179 | #define CONFIG_USBOTG USBOTG_JZ4760 |
179 | 180 | ||
@@ -189,6 +190,7 @@ | |||
189 | 190 | ||
190 | #define USB_NUM_ENDPOINTS 3 | 191 | #define USB_NUM_ENDPOINTS 3 |
191 | #define USB_DEVBSS_ATTR IBSS_ATTR | 192 | #define USB_DEVBSS_ATTR IBSS_ATTR |
193 | #endif /* !BOOTLOADER */ | ||
192 | 194 | ||
193 | #define BOOTFILE_EXT "x3" | 195 | #define BOOTFILE_EXT "x3" |
194 | #define BOOTFILE "rockbox." BOOTFILE_EXT | 196 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
@@ -198,7 +200,7 @@ | |||
198 | 200 | ||
199 | #define ICODE_ATTR_TREMOR_NOT_MDCT | 201 | #define ICODE_ATTR_TREMOR_NOT_MDCT |
200 | 202 | ||
201 | #endif /* SIMULATOR */ | 203 | #endif /* !SIMULATOR */ |
202 | 204 | ||
203 | /** Port-specific settings **/ | 205 | /** Port-specific settings **/ |
204 | 206 | ||