mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
boot v0.1
This commit is contained in:
parent
d8c84cd5fe
commit
d9bd706408
24 changed files with 2734 additions and 2568 deletions
|
@ -146,12 +146,12 @@ void fATSR(void *arg)
|
|||
#if CONFIG_UART_XMODEM
|
||||
void fATSY(void *arg)
|
||||
{
|
||||
#ifdef RTL8710AF
|
||||
OTU_FW_Update(0, 0, 115200);
|
||||
#else
|
||||
// use xmodem to update, RX: PA_6, TX: PA_7, baudrate: 1M
|
||||
OTU_FW_Update(0, 2, 115200);
|
||||
#endif
|
||||
if (HalGetChipId() < CHIP_ID_8195AM) {
|
||||
OTU_FW_Update(0, 0, 115200);
|
||||
} else {
|
||||
// use xmodem to update, RX: PA_6, TX: PA_7, baudrate: 1M
|
||||
OTU_FW_Update(0, 2, 115200);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1166,17 +1166,18 @@ void fATSL(void *arg) {
|
|||
#if CONFIG_UART_XMODEM
|
||||
void fATSX(void *arg)
|
||||
{
|
||||
#ifdef RTL8710AF
|
||||
// use xmodem to update, RX: PC_0, TX: PC_3, baudrate: 1M
|
||||
if (HalGetChipId() < CHIP_ID_8195AM) {
|
||||
|
||||
// use xmodem to update, RX: PC_0, TX: PC_3, baudrate: 1M
|
||||
OTU_FW_Update(0, 0, 115200);
|
||||
// use xmodem to update, RX: PE_3, TX: PE_0, baudrate: 1M
|
||||
// JTAG Off!
|
||||
// OTU_FW_Update(0, 1, 115200);
|
||||
#else
|
||||
//#error "Set OTU_FW_Update UARTx pins!"
|
||||
// use xmodem to update, RX: PA_6, TX: PA_7, baudrate: 1M
|
||||
OTU_FW_Update(0, 2, 115200);
|
||||
#endif
|
||||
// use xmodem to update, RX: PE_3, TX: PE_0, baudrate: 1M
|
||||
// JTAG Off!
|
||||
// OTU_FW_Update(0, 1, 115200);
|
||||
}
|
||||
else {
|
||||
// use xmodem to update, RX: PA_6, TX: PA_7, baudrate: 1M
|
||||
OTU_FW_Update(0, 2, 115200);
|
||||
};
|
||||
at_printf("\r\n[ATSX] OK");
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -226,11 +226,7 @@ u32 xModem_Frame_Img2(char *ptr, unsigned int frame_num, unsigned int frame_siz
|
|||
return rx_len;
|
||||
}
|
||||
*/
|
||||
#ifdef RTL8710AF
|
||||
if (fw_img2_size > (0x80000-0x0B000)) {
|
||||
#else
|
||||
if (fw_img2_size > (2*1024*1024)) {
|
||||
#endif
|
||||
if (fw_img2_size > ((HalGetChipId() < CHIP_ID_8195AM) ? (0x80000-0x0B000) : (2*1024*1024))) {
|
||||
DBG_MISC_ERR("OTU: fw_img2_addr=0x%x fw_img2_size(%d) to Big!\n", fw_img2_addr, fw_img2_size);
|
||||
fw_img1_size = 0;
|
||||
fw_img2_size = 0;
|
||||
|
@ -307,11 +303,7 @@ u32 xModem_Frame_Img2(char *ptr, unsigned int frame_num, unsigned int frame_siz
|
|||
return rx_len;
|
||||
}
|
||||
*/
|
||||
#ifdef RTL8710AF
|
||||
if (fw_img2_size > (0x80000 - fw_img3_addr)) {
|
||||
#else
|
||||
if (fw_img2_size > (2*1024*1024)) {
|
||||
#endif
|
||||
if (fw_img2_size > ((HalGetChipId() < CHIP_ID_8195AM) ? (0x80000 - fw_img3_addr) : (2*1024*1024))) {
|
||||
DBG_MISC_ERR("OTU: fw_img3_addr=0x%x fw_img2_size(%d) to Big!\n", fw_img3_addr, fw_img3_size);
|
||||
fw_img3_size = 0;
|
||||
return rx_len;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "flash_api.h"
|
||||
|
||||
extern u32 ConfigDebugInfo;
|
||||
extern SPIC_INIT_PARA SpicInitParaAllClk[3][CPU_CLK_TYPE_NO];
|
||||
extern SPIC_INIT_PARA SpicInitParaAllClk[SpicMaxMode][CPU_CLK_TYPE_NO]; // SpicMaxMode = 3, CPU_CLK_TYPE_NO = 6 !
|
||||
|
||||
_LONG_CALL_
|
||||
extern VOID SpicWaitBusyDoneRtl8195A(VOID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue