mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00
feat(drivers/st/usb): add device driver for STM32MP1
Add a device driver for Synopsis DWC2 USB IP of STM32MP15x, this USB OTG device is only supported in device mode. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I90b21f094f6637b85f3ace23a3a3a2f6fd4e0951
This commit is contained in:
parent
efbd65fa7b
commit
9a138eb5f2
2 changed files with 1107 additions and 0 deletions
1091
drivers/st/usb/stm32mp1_usb.c
Normal file
1091
drivers/st/usb/stm32mp1_usb.c
Normal file
File diff suppressed because it is too large
Load diff
16
include/drivers/st/stm32mp1_usb.h
Normal file
16
include/drivers/st/stm32mp1_usb.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2021, STMicroelectronics - All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef STM32MP1_USB_H
|
||||
#define STM32MP1_USB_H
|
||||
|
||||
#include <drivers/usb_device.h>
|
||||
|
||||
void stm32mp1_usb_init_driver(struct usb_handle *usb_core_handle,
|
||||
struct pcd_handle *pcd_handle,
|
||||
void *base_register);
|
||||
|
||||
#endif /* STM32MP1_USB_H */
|
Loading…
Add table
Reference in a new issue