1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
7 #include <fdt_support.h>
8 #include <asm/arch/sys_proto.h>
9 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
12 * This function is called right before the kernel is booted. "blob" is the
13 * device tree that will be passed to the kernel.
15 int ft_system_setup(void *blob, bd_t *bd)
20 switch (get_cpu_package()) {
38 do_fixup_by_compat_u32(blob, "st,stm32mp157-pinctrl",
39 "st,package", pkg, false);
40 do_fixup_by_compat_u32(blob, "st,stm32mp157-z-pinctrl",
41 "st,package", pkg, false);