diff options
| author | Tom Rini <[email protected]> | 2023-10-23 11:39:38 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-10-23 11:39:38 -0400 |
| commit | cedc74123117cb0388766c4056c7d51846779f72 (patch) | |
| tree | 3a31e16543d6ed29eb766f6315e1bbc57e611286 /include | |
| parent | a8f6dab0d41caaa985241d4d79690b8bcef40720 (diff) | |
| parent | 27347893f02d4457b80357a38c194a726a43533a (diff) | |
Merge tag 'u-boot-at91-2024.01-b' of https://source.denx.de/u-boot/custodians/u-boot-at91
Second set of u-boot-at91 features for the 2024.01 cycle
This feature set a new board named Conclusive KSTR sama5d27 with some
small prerequisites patches.
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/kstr-sama5d27.h | 15 | ||||
| -rw-r--r-- | include/event.h | 9 | ||||
| -rw-r--r-- | include/init.h | 14 |
3 files changed, 38 insertions, 0 deletions
diff --git a/include/configs/kstr-sama5d27.h b/include/configs/kstr-sama5d27.h new file mode 100644 index 00000000000..772a073ba20 --- /dev/null +++ b/include/configs/kstr-sama5d27.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2021-2023 Conclusive Engineering Sp. z o. o. + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +#include "at91-sama5_common.h" + +/* SDRAM */ +#define CFG_SYS_SDRAM_BASE 0x20000000 +#define CFG_SYS_SDRAM_SIZE 0x10000000 + +#endif diff --git a/include/event.h b/include/event.h index c5646b713ad..a8f046da3c3 100644 --- a/include/event.h +++ b/include/event.h @@ -105,6 +105,15 @@ enum event_t { EVT_FSP_INIT_F, /** + * @EVT_SETTINGS_R: + * This event is triggered post-relocation and before console init. + * This gives an option to perform any platform-dependent setup, which + * needs to take place before show_board_info() (e.g. readout of EEPROM + * stored settings). + */ + EVT_SETTINGS_R, + + /** * @EVT_LAST_STAGE_INIT: * This event is triggered just before jumping to the main loop. * Some boards need to perform initialisation immediately before control diff --git a/include/init.h b/include/init.h index 4e7fe26c200..d57a24fd00d 100644 --- a/include/init.h +++ b/include/init.h @@ -271,6 +271,20 @@ void board_init_r(struct global_data *id, ulong dest_addr) int cpu_init_r(void); int mac_read_from_eeprom(void); + +/** + * serial_read_from_eeprom - read the serial number from EEPROM + * + * This function reads the serial number from the EEPROM and sets the + * appropriate environment variable. + * + * The environment variable is only set if it has not been set + * already. This ensures that any user-saved variables are never + * overwritten. + * + * This function must be called after relocation. + */ +int serial_read_from_eeprom(int devnum); int set_cpu_clk_info(void); int update_flash_size(int flash_size); int arch_early_init_r(void); |
