diff options
author | Tom Rini <trini@konsulko.com> | 2021-01-19 07:56:59 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-19 07:56:59 -0500 |
commit | db0dd72e27ce62c5b28f07595b91ed00d0565819 (patch) | |
tree | 912603265aac7ae1fb843c02986dbbb0835b7060 /arch/arm/mach-aspeed/ast2600/spl.c | |
parent | ae3d8b6c403218e68b56bce962ba7737161cc6f4 (diff) | |
parent | ac7a51c0e48f2aa81ae20caf8d6b9fad976675cd (diff) |
Merge branch '2021-01-18-assorted-platform-updates'
- Assorted MediaTek, AST2x00 updates
- Assorted driver fixes for various platforms
- Keymile platform updates
- Add pwm command, mp5416 pmic driver
Diffstat (limited to 'arch/arm/mach-aspeed/ast2600/spl.c')
-rw-r--r-- | arch/arm/mach-aspeed/ast2600/spl.c | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/arm/mach-aspeed/ast2600/spl.c b/arch/arm/mach-aspeed/ast2600/spl.c new file mode 100644 index 00000000000..9201d4a4d44 --- /dev/null +++ b/arch/arm/mach-aspeed/ast2600/spl.c @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) Aspeed Technology Inc. + */ +#include <common.h> +#include <debug_uart.h> +#include <dm.h> +#include <spl.h> +#include <init.h> +#include <asm/io.h> +#include <asm/arch/scu_ast2600.h> + +DECLARE_GLOBAL_DATA_PTR; + +void board_init_f(ulong dummy) +{ + spl_early_init(); + preloader_console_init(); + timer_init(); + dram_init(); +} + +u32 spl_boot_device(void) +{ + return BOOT_DEVICE_RAM; +} + +struct image_header *spl_get_load_buffer(ssize_t offset, size_t size) +{ + /* + * When boot from SPI, AST2600 already remap 0x00000000 ~ 0x0fffffff + * to BMC SPI memory space 0x20000000 ~ 0x2fffffff. The next stage BL + * has been located in SPI for XIP. In this case, the load buffer for + * SPL image loading will be set to the remapped address of the next + * BL instead of the DRAM space CONFIG_SYS_LOAD_ADDR + */ + return (struct image_header *)(CONFIG_SYS_TEXT_BASE); +} + +#ifdef CONFIG_SPL_OS_BOOT +int spl_start_uboot(void) +{ + /* boot linux */ + return 0; +} +#endif + +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match(const char *name) +{ + /* just empty function now - can't decide what to choose */ + debug("%s: %s\n", __func__, name); + return 0; +} +#endif |