mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
board: sama5d2_ptc_ek: add pda detect call at init time
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
This commit is contained in:
parent
67f551af89
commit
cc1bdd23c0
2 changed files with 11 additions and 0 deletions
|
@ -151,6 +151,7 @@ config TARGET_SAMA5D2_PTC_EK
|
||||||
bool "SAMA5D2 PTC EK board"
|
bool "SAMA5D2 PTC EK board"
|
||||||
select BOARD_EARLY_INIT_F
|
select BOARD_EARLY_INIT_F
|
||||||
select SAMA5D2
|
select SAMA5D2
|
||||||
|
select BOARD_LATE_INIT
|
||||||
|
|
||||||
config TARGET_SAMA5D2_XPLAINED
|
config TARGET_SAMA5D2_XPLAINED
|
||||||
bool "SAMA5D2 Xplained board"
|
bool "SAMA5D2 Xplained board"
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#include <asm/arch/sama5d2.h>
|
#include <asm/arch/sama5d2.h>
|
||||||
#include <asm/arch/sama5d2_smc.h>
|
#include <asm/arch/sama5d2_smc.h>
|
||||||
|
|
||||||
|
extern void at91_pda_detect(void);
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#ifdef CONFIG_NAND_ATMEL
|
#ifdef CONFIG_NAND_ATMEL
|
||||||
|
@ -65,6 +67,14 @@ static void board_nand_hw_init(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BOARD_LATE_INIT
|
||||||
|
int board_late_init(void)
|
||||||
|
{
|
||||||
|
at91_pda_detect();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void board_usb_hw_init(void)
|
static void board_usb_hw_init(void)
|
||||||
{
|
{
|
||||||
atmel_pio4_set_pio_output(AT91_PIO_PORTB, 12, ATMEL_PIO_PUEN_MASK);
|
atmel_pio4_set_pio_output(AT91_PIO_PORTB, 12, ATMEL_PIO_PUEN_MASK);
|
||||||
|
|
Loading…
Add table
Reference in a new issue