1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
12 #include <env_internal.h>
14 #include <generic-phy.h>
24 #include <remoteproc.h>
31 #include <asm/arch/stm32.h>
32 #include <asm/arch/sys_proto.h>
33 #include <jffs2/load_kernel.h>
34 #include <linux/err.h>
35 #include <power/regulator.h>
36 #include <usb/dwc2_udc.h>
38 /* SYSCFG registers */
39 #define SYSCFG_BOOTR 0x00
40 #define SYSCFG_PMCSETR 0x04
41 #define SYSCFG_IOCTRLSETR 0x18
42 #define SYSCFG_ICNR 0x1C
43 #define SYSCFG_CMPCR 0x20
44 #define SYSCFG_CMPENSETR 0x24
45 #define SYSCFG_PMCCLRR 0x44
47 #define SYSCFG_BOOTR_BOOT_MASK GENMASK(2, 0)
48 #define SYSCFG_BOOTR_BOOTPD_SHIFT 4
50 #define SYSCFG_IOCTRLSETR_HSLVEN_TRACE BIT(0)
51 #define SYSCFG_IOCTRLSETR_HSLVEN_QUADSPI BIT(1)
52 #define SYSCFG_IOCTRLSETR_HSLVEN_ETH BIT(2)
53 #define SYSCFG_IOCTRLSETR_HSLVEN_SDMMC BIT(3)
54 #define SYSCFG_IOCTRLSETR_HSLVEN_SPI BIT(4)
56 #define SYSCFG_CMPCR_SW_CTRL BIT(1)
57 #define SYSCFG_CMPCR_READY BIT(8)
59 #define SYSCFG_CMPENSETR_MPU_EN BIT(0)
61 #define SYSCFG_PMCSETR_ETH_CLK_SEL BIT(16)
62 #define SYSCFG_PMCSETR_ETH_REF_CLK_SEL BIT(17)
64 #define SYSCFG_PMCSETR_ETH_SELMII BIT(20)
66 #define SYSCFG_PMCSETR_ETH_SEL_MASK GENMASK(23, 21)
67 #define SYSCFG_PMCSETR_ETH_SEL_GMII_MII 0
68 #define SYSCFG_PMCSETR_ETH_SEL_RGMII BIT(21)
69 #define SYSCFG_PMCSETR_ETH_SEL_RMII BIT(23)
72 * Get a global data pointer
74 DECLARE_GLOBAL_DATA_PTR;
76 #define USB_LOW_THRESHOLD_UV 200000
77 #define USB_WARNING_LOW_THRESHOLD_UV 660000
78 #define USB_START_LOW_THRESHOLD_UV 1230000
79 #define USB_START_HIGH_THRESHOLD_UV 2150000
87 const char *fdt_compat;
90 if (IS_ENABLED(CONFIG_STM32MP1_OPTEE))
91 mode = "trusted with OP-TEE";
92 else if (IS_ENABLED(TFABOOT))
97 printf("Board: stm32mp1 in %s mode", mode);
98 fdt_compat = fdt_getprop(gd->fdt_blob, 0, "compatible",
100 if (fdt_compat && fdt_compat_len)
101 printf(" (%s)", fdt_compat);
104 /* display the STMicroelectronics board identification */
105 if (CONFIG_IS_ENABLED(CMD_STBOARD)) {
106 ret = uclass_get_device_by_driver(UCLASS_MISC,
107 DM_GET_DRIVER(stm32mp_bsec),
110 ret = misc_read(dev, STM32_BSEC_SHADOW(BSEC_OTP_BOARD),
113 printf("Board: MB%04x Var%d.%d Rev.%c-%02d\n",
117 ((otp >> 8) & 0xF) - 1 + 'A',
124 static void board_key_check(void)
126 #if defined(CONFIG_FASTBOOT) || defined(CONFIG_CMD_STM32PROG)
128 struct gpio_desc gpio;
129 enum forced_boot_mode boot_mode = BOOT_NORMAL;
131 node = ofnode_path("/config");
132 if (!ofnode_valid(node)) {
133 debug("%s: no /config node?\n", __func__);
136 #ifdef CONFIG_FASTBOOT
137 if (gpio_request_by_name_nodev(node, "st,fastboot-gpios", 0,
138 &gpio, GPIOD_IS_IN)) {
139 debug("%s: could not find a /config/st,fastboot-gpios\n",
142 if (dm_gpio_get_value(&gpio)) {
143 puts("Fastboot key pressed, ");
144 boot_mode = BOOT_FASTBOOT;
147 dm_gpio_free(NULL, &gpio);
150 #ifdef CONFIG_CMD_STM32PROG
151 if (gpio_request_by_name_nodev(node, "st,stm32prog-gpios", 0,
152 &gpio, GPIOD_IS_IN)) {
153 debug("%s: could not find a /config/st,stm32prog-gpios\n",
156 if (dm_gpio_get_value(&gpio)) {
157 puts("STM32Programmer key pressed, ");
158 boot_mode = BOOT_STM32PROG;
160 dm_gpio_free(NULL, &gpio);
164 if (boot_mode != BOOT_NORMAL) {
165 puts("entering download mode...\n");
166 clrsetbits_le32(TAMP_BOOT_CONTEXT,
167 TAMP_BOOT_FORCED_MASK,
173 #if defined(CONFIG_USB_GADGET) && defined(CONFIG_USB_GADGET_DWC2_OTG)
175 /* STMicroelectronics STUSB1600 Type-C controller */
176 #define STUSB1600_CC_CONNECTION_STATUS 0x0E
178 /* STUSB1600_CC_CONNECTION_STATUS bitfields */
179 #define STUSB1600_CC_ATTACH BIT(0)
181 static int stusb1600_init(struct udevice **dev_stusb1600)
184 struct udevice *dev, *bus;
188 *dev_stusb1600 = NULL;
190 /* if node stusb1600 is present, means DK1 or DK2 board */
191 node = ofnode_by_compatible(ofnode_null(), "st,stusb1600");
192 if (!ofnode_valid(node))
195 ret = ofnode_read_u32(node, "reg", &chip_addr);
199 ret = uclass_get_device_by_ofnode(UCLASS_I2C, ofnode_get_parent(node),
202 printf("bus for stusb1600 not found\n");
206 ret = dm_i2c_probe(bus, chip_addr, 0, &dev);
208 *dev_stusb1600 = dev;
213 static int stusb1600_cable_connected(struct udevice *dev)
217 if (dm_i2c_read(dev, STUSB1600_CC_CONNECTION_STATUS, &status, 1))
220 return status & STUSB1600_CC_ATTACH;
223 #include <usb/dwc2_udc.h>
224 int g_dnl_board_usb_cable_connected(void)
226 struct udevice *stusb1600;
227 struct udevice *dwc2_udc_otg;
230 if (!stusb1600_init(&stusb1600))
231 return stusb1600_cable_connected(stusb1600);
233 ret = uclass_get_device_by_driver(UCLASS_USB_GADGET_GENERIC,
234 DM_GET_DRIVER(dwc2_udc_otg),
237 debug("dwc2_udc_otg init failed\n");
239 return dwc2_udc_B_session_valid(dwc2_udc_otg);
242 #define STM32MP1_G_DNL_DFU_PRODUCT_NUM 0xdf11
243 #define STM32MP1_G_DNL_FASTBOOT_PRODUCT_NUM 0x0afb
245 int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
247 if (!strcmp(name, "usb_dnl_dfu"))
248 put_unaligned(STM32MP1_G_DNL_DFU_PRODUCT_NUM, &dev->idProduct);
249 else if (!strcmp(name, "usb_dnl_fastboot"))
250 put_unaligned(STM32MP1_G_DNL_FASTBOOT_PRODUCT_NUM,
253 put_unaligned(CONFIG_USB_GADGET_PRODUCT_NUM, &dev->idProduct);
258 #endif /* CONFIG_USB_GADGET */
261 static int get_led(struct udevice **dev, char *led_string)
266 led_name = fdtdec_get_config_string(gd->fdt_blob, led_string);
268 pr_debug("%s: could not find %s config string\n",
269 __func__, led_string);
272 ret = led_get_by_label(led_name, dev);
274 debug("%s: get=%d\n", __func__, ret);
281 static int setup_led(enum led_state_t cmd)
286 ret = get_led(&dev, "u-boot,boot-led");
290 ret = led_set_state(dev, cmd);
295 static void __maybe_unused led_error_blink(u32 nb_blink)
307 ret = get_led(&led, "u-boot,error-led");
309 /* make u-boot,error-led blinking */
310 /* if U32_MAX and 125ms interval, for 17.02 years */
311 for (i = 0; i < 2 * nb_blink; i++) {
312 led_set_state(led, LEDST_TOGGLE);
319 /* infinite: the boot process must be stopped */
320 if (nb_blink == U32_MAX)
325 static int board_check_usb_power(void)
327 struct ofnode_phandle_args adc_args;
332 int min_uV = USB_START_HIGH_THRESHOLD_UV;
333 int ret, uV, adc_count;
336 node = ofnode_path("/config");
337 if (!ofnode_valid(node)) {
338 debug("%s: no /config node?\n", __func__);
343 * Retrieve the ADC channels devices and get measurement
346 adc_count = ofnode_count_phandle_with_args(node, "st,adc_usb_pd",
347 "#io-channel-cells");
349 if (adc_count == -ENOENT)
352 pr_err("%s: can't find adc channel (%d)\n", __func__,
358 for (i = 0; i < adc_count; i++) {
359 if (ofnode_parse_phandle_with_args(node, "st,adc_usb_pd",
360 "#io-channel-cells", 0, i,
362 pr_debug("%s: can't find /config/st,adc_usb_pd\n",
367 ret = uclass_get_device_by_ofnode(UCLASS_ADC, adc_args.node,
371 pr_err("%s: Can't get adc device(%d)\n", __func__,
376 ret = adc_channel_single_shot(adc->name, adc_args.args[0],
379 pr_err("%s: single shot failed for %s[%d]!\n",
380 __func__, adc->name, adc_args.args[0]);
384 if (!adc_raw_to_uV(adc, raw, &uV)) {
389 pr_debug("%s: %s[%02d] = %u, %d uV\n", __func__,
390 adc->name, adc_args.args[0], raw, uV);
392 pr_err("%s: Can't get uV value for %s[%d]\n",
393 __func__, adc->name, adc_args.args[0]);
398 * If highest value is inside 1.23 Volts and 2.10 Volts, that means
399 * board is plugged on an USB-C 3A power supply and boot process can
402 if (max_uV > USB_START_LOW_THRESHOLD_UV &&
403 max_uV <= USB_START_HIGH_THRESHOLD_UV &&
404 min_uV <= USB_LOW_THRESHOLD_UV)
407 pr_err("****************************************************\n");
410 * If highest and lowest value are either both below
411 * USB_LOW_THRESHOLD_UV or both above USB_LOW_THRESHOLD_UV, that
412 * means USB TYPE-C is in unattached mode, this is an issue, make
413 * u-boot,error-led blinking and stop boot process.
415 if ((max_uV > USB_LOW_THRESHOLD_UV &&
416 min_uV > USB_LOW_THRESHOLD_UV) ||
417 (max_uV <= USB_LOW_THRESHOLD_UV &&
418 min_uV <= USB_LOW_THRESHOLD_UV)) {
419 pr_err("* ERROR USB TYPE-C connection in unattached mode *\n");
420 pr_err("* Check that USB TYPE-C cable is correctly plugged *\n");
421 /* with 125ms interval, led will blink for 17.02 years ....*/
425 if (max_uV > USB_LOW_THRESHOLD_UV &&
426 max_uV <= USB_WARNING_LOW_THRESHOLD_UV &&
427 min_uV <= USB_LOW_THRESHOLD_UV) {
428 pr_err("* WARNING 500mA power supply detected *\n");
432 if (max_uV > USB_WARNING_LOW_THRESHOLD_UV &&
433 max_uV <= USB_START_LOW_THRESHOLD_UV &&
434 min_uV <= USB_LOW_THRESHOLD_UV) {
435 pr_err("* WARNING 1.5mA power supply detected *\n");
440 * If highest value is above 2.15 Volts that means that the USB TypeC
441 * supplies more than 3 Amp, this is not compliant with TypeC specification
443 if (max_uV > USB_START_HIGH_THRESHOLD_UV) {
444 pr_err("* USB TYPE-C charger not compliant with *\n");
445 pr_err("* specification *\n");
446 pr_err("****************************************************\n\n");
447 /* with 125ms interval, led will blink for 17.02 years ....*/
450 pr_err("* Current too low, use a 3A power supply! *\n");
451 pr_err("****************************************************\n\n");
454 led_error_blink(nb_blink);
458 #endif /* CONFIG_ADC */
460 static void sysconf_init(void)
462 #ifndef CONFIG_TFABOOT
464 #ifdef CONFIG_DM_REGULATOR
465 struct udevice *pwr_dev;
466 struct udevice *pwr_reg;
473 syscfg = (u8 *)syscon_get_first_range(STM32MP_SYSCON_SYSCFG);
475 /* interconnect update : select master using the port 1 */
478 /* today information is hardcoded in U-Boot */
479 writel(BIT(9), syscfg + SYSCFG_ICNR);
481 /* disable Pull-Down for boot pin connected to VDD */
482 bootr = readl(syscfg + SYSCFG_BOOTR);
483 bootr &= ~(SYSCFG_BOOTR_BOOT_MASK << SYSCFG_BOOTR_BOOTPD_SHIFT);
484 bootr |= (bootr & SYSCFG_BOOTR_BOOT_MASK) << SYSCFG_BOOTR_BOOTPD_SHIFT;
485 writel(bootr, syscfg + SYSCFG_BOOTR);
487 #ifdef CONFIG_DM_REGULATOR
488 /* High Speed Low Voltage Pad mode Enable for SPI, SDMMC, ETH, QSPI
489 * and TRACE. Needed above ~50MHz and conditioned by AFMUX selection.
490 * The customer will have to disable this for low frequencies
491 * or if AFMUX is selected but the function not used, typically for
492 * TRACE. Otherwise, impact on power consumption.
495 * enabling High Speed mode while VDD>2.7V
496 * with the OTP product_below_2v5 (OTP 18, BIT 13)
497 * erroneously set to 1 can damage the IC!
498 * => U-Boot set the register only if VDD < 2.7V (in DT)
499 * but this value need to be consistent with board design
501 ret = uclass_get_device_by_driver(UCLASS_PMIC,
502 DM_GET_DRIVER(stm32mp_pwr_pmic),
505 ret = uclass_get_device_by_driver(UCLASS_MISC,
506 DM_GET_DRIVER(stm32mp_bsec),
509 pr_err("Can't find stm32mp_bsec driver\n");
513 ret = misc_read(dev, STM32_BSEC_SHADOW(18), &otp, 4);
517 /* get VDD = vdd-supply */
518 ret = device_get_supply_regulator(pwr_dev, "vdd-supply",
521 /* check if VDD is Low Voltage */
523 if (regulator_get_value(pwr_reg) < 2700000) {
524 writel(SYSCFG_IOCTRLSETR_HSLVEN_TRACE |
525 SYSCFG_IOCTRLSETR_HSLVEN_QUADSPI |
526 SYSCFG_IOCTRLSETR_HSLVEN_ETH |
527 SYSCFG_IOCTRLSETR_HSLVEN_SDMMC |
528 SYSCFG_IOCTRLSETR_HSLVEN_SPI,
529 syscfg + SYSCFG_IOCTRLSETR);
532 pr_err("product_below_2v5=0: HSLVEN protected by HW\n");
535 pr_err("product_below_2v5=1: HSLVEN update is destructive, no update as VDD>2.7V\n");
538 debug("VDD unknown");
543 /* activate automatic I/O compensation
544 * warning: need to ensure CSI enabled and ready in clock driver
546 writel(SYSCFG_CMPENSETR_MPU_EN, syscfg + SYSCFG_CMPENSETR);
548 while (!(readl(syscfg + SYSCFG_CMPCR) & SYSCFG_CMPCR_READY))
550 clrbits_le32(syscfg + SYSCFG_CMPCR, SYSCFG_CMPCR_SW_CTRL);
554 #ifdef CONFIG_DM_REGULATOR
555 /* Fix to make I2C1 usable on DK2 for touchscreen usage in kernel */
556 static int dk2_i2c1_fix(void)
559 struct gpio_desc hdmi, audio;
562 node = ofnode_path("/soc/i2c@40012000/hdmi-transmitter@39");
563 if (!ofnode_valid(node)) {
564 pr_debug("%s: no hdmi-transmitter@39 ?\n", __func__);
568 if (gpio_request_by_name_nodev(node, "reset-gpios", 0,
569 &hdmi, GPIOD_IS_OUT)) {
570 pr_debug("%s: could not find reset-gpios\n",
575 node = ofnode_path("/soc/i2c@40012000/cs42l51@4a");
576 if (!ofnode_valid(node)) {
577 pr_debug("%s: no cs42l51@4a ?\n", __func__);
581 if (gpio_request_by_name_nodev(node, "reset-gpios", 0,
582 &audio, GPIOD_IS_OUT)) {
583 pr_debug("%s: could not find reset-gpios\n",
588 /* before power up, insure that HDMI and AUDIO IC is under reset */
589 ret = dm_gpio_set_value(&hdmi, 1);
591 pr_err("%s: can't set_value for hdmi_nrst gpio", __func__);
594 ret = dm_gpio_set_value(&audio, 1);
596 pr_err("%s: can't set_value for audio_nrst gpio", __func__);
600 /* power-up audio IC */
601 regulator_autoset_by_name("v1v8_audio", NULL);
603 /* power-up HDMI IC */
604 regulator_autoset_by_name("v1v2_hdmi", NULL);
605 regulator_autoset_by_name("v3v3_hdmi", NULL);
611 static bool board_is_dk2(void)
613 if (CONFIG_IS_ENABLED(TARGET_ST_STM32MP15x) &&
614 of_machine_is_compatible("st,stm32mp157c-dk2"))
621 /* board dependent setup after realloc */
626 /* address of boot parameters */
627 gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
629 /* probe all PINCTRL for hog */
630 for (uclass_first_device(UCLASS_PINCTRL, &dev);
632 uclass_next_device(&dev)) {
633 pr_debug("probe pincontrol = %s\n", dev->name);
638 #ifdef CONFIG_DM_REGULATOR
642 regulators_enable_boot_on(_DEBUG);
647 if (CONFIG_IS_ENABLED(LED))
653 int board_late_init(void)
656 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
657 const void *fdt_compat;
664 fdt_compat = fdt_getprop(gd->fdt_blob, 0, "compatible",
666 if (fdt_compat && fdt_compat_len) {
667 if (strncmp(fdt_compat, "st,", 3) != 0)
668 env_set("board_name", fdt_compat);
670 env_set("board_name", fdt_compat + 3);
672 ret = uclass_get_device_by_driver(UCLASS_MISC,
673 DM_GET_DRIVER(stm32mp_bsec),
677 ret = misc_read(dev, STM32_BSEC_SHADOW(BSEC_OTP_BOARD),
680 snprintf(buf, sizeof(buf), "0x%04x", otp >> 16);
681 env_set("board_id", buf);
683 snprintf(buf, sizeof(buf), "0x%04x",
684 ((otp >> 8) & 0xF) - 1 + 0xA);
685 env_set("board_rev", buf);
690 /* for DK1/DK2 boards */
691 board_check_usb_power();
692 #endif /* CONFIG_ADC */
694 /* Check the boot-source to disable bootdelay */
695 boot_device = env_get("boot_device");
696 if (!strcmp(boot_device, "serial") || !strcmp(boot_device, "usb"))
697 env_set("bootdelay", "0");
702 void board_quiesce_devices(void)
705 setup_led(LEDST_OFF);
709 /* eth init function : weak called in eqos driver */
710 int board_interface_eth_init(struct udevice *dev,
711 phy_interface_t interface_type)
715 bool eth_clk_sel_reg = false;
716 bool eth_ref_clk_sel_reg = false;
718 /* Gigabit Ethernet 125MHz clock selection. */
719 eth_clk_sel_reg = dev_read_bool(dev, "st,eth_clk_sel");
721 /* Ethernet 50Mhz RMII clock selection */
722 eth_ref_clk_sel_reg =
723 dev_read_bool(dev, "st,eth_ref_clk_sel");
725 syscfg = (u8 *)syscon_get_first_range(STM32MP_SYSCON_SYSCFG);
730 switch (interface_type) {
731 case PHY_INTERFACE_MODE_MII:
732 value = SYSCFG_PMCSETR_ETH_SEL_GMII_MII |
733 SYSCFG_PMCSETR_ETH_REF_CLK_SEL;
734 debug("%s: PHY_INTERFACE_MODE_MII\n", __func__);
736 case PHY_INTERFACE_MODE_GMII:
738 value = SYSCFG_PMCSETR_ETH_SEL_GMII_MII |
739 SYSCFG_PMCSETR_ETH_CLK_SEL;
741 value = SYSCFG_PMCSETR_ETH_SEL_GMII_MII;
742 debug("%s: PHY_INTERFACE_MODE_GMII\n", __func__);
744 case PHY_INTERFACE_MODE_RMII:
745 if (eth_ref_clk_sel_reg)
746 value = SYSCFG_PMCSETR_ETH_SEL_RMII |
747 SYSCFG_PMCSETR_ETH_REF_CLK_SEL;
749 value = SYSCFG_PMCSETR_ETH_SEL_RMII;
750 debug("%s: PHY_INTERFACE_MODE_RMII\n", __func__);
752 case PHY_INTERFACE_MODE_RGMII:
753 case PHY_INTERFACE_MODE_RGMII_ID:
754 case PHY_INTERFACE_MODE_RGMII_RXID:
755 case PHY_INTERFACE_MODE_RGMII_TXID:
757 value = SYSCFG_PMCSETR_ETH_SEL_RGMII |
758 SYSCFG_PMCSETR_ETH_CLK_SEL;
760 value = SYSCFG_PMCSETR_ETH_SEL_RGMII;
761 debug("%s: PHY_INTERFACE_MODE_RGMII\n", __func__);
764 debug("%s: Do not manage %d interface\n",
765 __func__, interface_type);
766 /* Do not manage others interfaces */
770 /* clear and set ETH configuration bits */
771 writel(SYSCFG_PMCSETR_ETH_SEL_MASK | SYSCFG_PMCSETR_ETH_SELMII |
772 SYSCFG_PMCSETR_ETH_REF_CLK_SEL | SYSCFG_PMCSETR_ETH_CLK_SEL,
773 syscfg + SYSCFG_PMCCLRR);
774 writel(value, syscfg + SYSCFG_PMCSETR);
779 enum env_location env_get_location(enum env_operation op, int prio)
781 u32 bootmode = get_bootmode();
786 switch (bootmode & TAMP_BOOT_DEVICE_MASK) {
787 #ifdef CONFIG_ENV_IS_IN_EXT4
789 case BOOT_FLASH_EMMC:
792 #ifdef CONFIG_ENV_IS_IN_UBI
793 case BOOT_FLASH_NAND:
796 #ifdef CONFIG_ENV_IS_IN_SPI_FLASH
798 return ENVL_SPI_FLASH;
805 #if defined(CONFIG_ENV_IS_IN_EXT4)
806 const char *env_ext4_get_intf(void)
808 u32 bootmode = get_bootmode();
810 switch (bootmode & TAMP_BOOT_DEVICE_MASK) {
812 case BOOT_FLASH_EMMC:
819 const char *env_ext4_get_dev_part(void)
821 static char *const dev_part[] = {"0:auto", "1:auto", "2:auto"};
822 u32 bootmode = get_bootmode();
824 return dev_part[(bootmode & TAMP_BOOT_INSTANCE_MASK) - 1];
828 #if defined(CONFIG_OF_BOARD_SETUP)
829 int ft_board_setup(void *blob, bd_t *bd)
831 #ifdef CONFIG_FDT_FIXUP_PARTITIONS
832 struct node_info nodes[] = {
833 { "st,stm32f469-qspi", MTD_DEV_TYPE_NOR, },
834 { "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },
836 fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
843 static void board_copro_image_process(ulong fw_image, size_t fw_size)
845 int ret, id = 0; /* Copro id fixed to 0 as only one coproc on mp1 */
847 if (!rproc_is_initialized())
849 printf("Remote Processor %d initialization failed\n",
854 ret = rproc_load(id, fw_image, fw_size);
855 printf("Load Remote Processor %d with data@addr=0x%08lx %u bytes:%s\n",
856 id, fw_image, fw_size, ret ? " Failed!" : " Success!");
862 U_BOOT_FIT_LOADABLE_HANDLER(IH_TYPE_COPRO, board_copro_image_process);