1 // SPDX-License-Identifier: GPL-2.0+
3 * K3: Common Architecture initialization
5 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
6 * Lokesh Vutla <lokeshvutla@ti.com>
13 #include <remoteproc.h>
14 #include <linux/soc/ti/ti_sci_protocol.h>
16 struct ti_sci_handle *get_ti_sci_handle(void)
21 ret = uclass_get_device_by_name(UCLASS_FIRMWARE, "dmsc", &dev);
23 panic("Failed to get SYSFW (%d)\n", ret);
25 return (struct ti_sci_handle *)ti_sci_get_handle_from_sysfw(dev);
28 #ifdef CONFIG_SYS_K3_SPL_ATF
29 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
34 * It is assumed that remoteproc device 1 is the corresponding
35 * Cortex-A core which runs ATF. Make sure DT reflects the same.
37 ret = rproc_dev_init(1);
39 panic("%s: ATF failed to initialize on rproc (%d)\n", __func__,
42 ret = rproc_load(1, spl_image->entry_point, 0x200);
44 panic("%s: ATF failed to load on rproc (%d)\n", __func__, ret);
46 /* Add an extra newline to differentiate the ATF logs from SPL */
47 printf("Starting ATF on ARM64 core...\n\n");
51 panic("%s: ATF failed to start on rproc (%d)\n", __func__, ret);
53 debug("ATF started. Waiting indefinitely...\n");