Skip to content

Commit

Permalink
Fix naming in loader
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingMarco committed Jul 12, 2024
1 parent 71534dc commit b759a09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions target/linux/ath79/image/lzma-loader/src/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,18 @@ static inline void mr18_init(void) { }
#endif

#if defined(CONFIG_BOARD_HUAWEI_AP5030DN) || defined(CONFIG_BOARD_HUAWEI_AP6010DN)
static inline void huawei_apXXXXdn_init(void)
static inline void huawei_ap_init(void)
{
const unsigned int apXXXXdn_watchdog_gpio = 15;
const unsigned int watchdog_gpio = 15;
unsigned int gpiobase, reg;

gpiobase = KSEG1ADDR(AR71XX_GPIO_BASE);

printf("Huawei APXXXXDN\n");
printf("Huawei AP\n");

reg = READREG(gpiobase + AR71XX_GPIO_REG_OE);
WRITEREG(gpiobase + AR71XX_GPIO_REG_OE,
reg & ~(1 << apXXXXdn_watchdog_gpio));
reg & ~(1 << watchdog_gpio));

/* Set GPIO15 MUX to output CLK_OBS5 (= CPU_CLK/4)
* or CLK_OBS4 (= AHB_CLK/2) to keep the watchdog happy
Expand All @@ -210,12 +210,12 @@ static inline void huawei_apXXXXdn_init(void)
#endif
}
#else
static inline void huawei_apXXXXdn_init(void) {}
static inline void huawei_ap_init(void) {}
#endif

void board_init(void)
{
tlwr1043nd_init();
mr18_init();
huawei_apXXXXdn_init();
huawei_ap_init();
}

0 comments on commit b759a09

Please sign in to comment.