| // SPDX-License-Identifier: GPL-2.0+ |
| * Board init file for QCS404-EVB |
| * (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org> |
| #include <asm/global_data.h> |
| #include <asm/arch/dram.h> |
| return fdtdec_setup_mem_size_base(); |
| struct udevice *pmic_gpio; |
| struct gpio_desc usb_vbus_boost_pin; |
| ret = uclass_get_device_by_name(UCLASS_GPIO, |
| printf("Failed to find pms405_gpios@c000 node.\n"); |
| node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(pmic_gpio), |
| printf("Failed to find usb_hub_reset_pm dt node.\n"); |
| ret = gpio_request_by_name_nodev(offset_to_ofnode(node), "gpios", 0, |
| printf("Failed to request usb_hub_reset_pm gpio.\n"); |
| dm_gpio_set_dir_flags(&usb_vbus_boost_pin, |
| GPIOD_IS_OUT | GPIOD_IS_OUT_ACTIVE); |