0f5ef3a09a434b290012530c9f639ed07d9e5f39
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
8 #include <dm/pinctrl.h>
9 #include <dm/uclass-internal.h>
10 #include <asm/arch-rockchip/periph.h>
11 #include <power/regulator.h>
18 ret
= regulators_enable_boot_on(false);
20 debug("%s: Cannot enable boot on regulator\n", __func__
);
25 void spl_board_init(void)
27 struct udevice
*pinctrl
;
30 ret
= uclass_get_device(UCLASS_PINCTRL
, 0, &pinctrl
);
32 debug("%s: Cannot find pinctrl device\n", __func__
);
36 /* Enable debug UART */
37 ret
= pinctrl_request_noflags(pinctrl
, PERIPH_ID_UART_DBG
);
39 debug("%s: Failed to set up console UART\n", __func__
);
43 preloader_console_init();
46 printf("%s: Error %d\n", __func__
, ret
);
48 /* No way to report error here */