Skip to content

Commit

Permalink
rename clean_syterboot_data to clean_syterkit_data
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Dec 15, 2023
1 parent fce2a8b commit 43ce751
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
10 changes: 9 additions & 1 deletion app/spi_lcd/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,15 @@ int main(void) {

LCD_ShowString(0, 240, "1.0.2", BLACK, WHITE, 32, 0);

abort();
sunxi_spi_disable(&sunxi_spi0);

arm32_mmu_disable();

clean_syterkit_data();

sunxi_clk_reset();

jmp_to_fel();

return 0;
}
4 changes: 2 additions & 2 deletions app/syter_boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ int cmd_boot(int argc, const char **argv) {
}

/* Disable MMU, data cache, instruction cache, interrupts */
clean_syterboot_data();
clean_syterkit_data();

enable_kernel_smp();
printk(LOG_LEVEL_INFO, "enable kernel smp ok...\n");
Expand Down Expand Up @@ -626,7 +626,7 @@ int main(void) {
/* Check rtc fel flag. if set flag, goto fel */
if (rtc_probe_fel_flag()) {
printk(LOG_LEVEL_INFO, "RTC: get fel flag, jump to fel mode.\n");
clean_syterboot_data();
clean_syterkit_data();
rtc_clear_fel_flag();
sunxi_clk_reset();
mdelay(100);
Expand Down
2 changes: 1 addition & 1 deletion include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int raise(int signum);

void show_banner(void);

void clean_syterboot_data(void);
void clean_syterkit_data(void);

void rtc_set_vccio_det_spare(void);

Expand Down
4 changes: 2 additions & 2 deletions src/cli/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ static int cmd_history(int argc, const char **argv) {
}

static int cmd_reset(int argc, const char **argv) {
clean_syterboot_data();
clean_syterkit_data();
uart_puts("Now Reset System...\n\n");
sys_reset();
return 0;
}

static int cmd_efex(int argc, const char **argv) {
clean_syterboot_data();
clean_syterkit_data();
rtc_set_fel_flag();
uart_puts("Now Reset System to efex...\n\n");
sys_reset();
Expand Down
2 changes: 1 addition & 1 deletion src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <reg-ccu.h>
#include <reg-ncat.h>

void clean_syterboot_data(void) {
void clean_syterkit_data(void) {
/* Disable MMU, data cache, instruction cache, interrupts */
arm32_mmu_disable();
printk(LOG_LEVEL_INFO, "disable mmu ok...\n");
Expand Down

0 comments on commit 43ce751

Please sign in to comment.