mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
usb: rename board_usb_init_type to usb_init_type
This will be used by usb_lowlevel_init so it will no longer be used by only board specific functions. Move definition of enum usb_init_type higher in file so that it will be available for usb_low_level_init. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
This commit is contained in:
parent
ea02b653c2
commit
bba679144d
11 changed files with 31 additions and 31 deletions
|
@ -129,6 +129,16 @@ struct usb_device {
|
|||
unsigned int slot_id;
|
||||
};
|
||||
|
||||
/*
|
||||
* You can initialize platform's USB host or device
|
||||
* ports by passing this enum as an argument to
|
||||
* board_usb_init().
|
||||
*/
|
||||
enum usb_init_type {
|
||||
USB_INIT_HOST,
|
||||
USB_INIT_DEVICE
|
||||
};
|
||||
|
||||
/**********************************************************************
|
||||
* this is how the lowlevel part communicate with the outer world
|
||||
*/
|
||||
|
@ -169,16 +179,6 @@ extern void udc_disconnect(void);
|
|||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* You can initialize platform's USB host or device
|
||||
* ports by passing this enum as an argument to
|
||||
* board_usb_init().
|
||||
*/
|
||||
enum board_usb_init_type {
|
||||
USB_INIT_HOST,
|
||||
USB_INIT_DEVICE
|
||||
};
|
||||
|
||||
/*
|
||||
* board-specific hardware initialization, called by
|
||||
* usb drivers and u-boot commands
|
||||
|
@ -186,16 +186,16 @@ enum board_usb_init_type {
|
|||
* @param index USB controller number
|
||||
* @param init initializes controller as USB host or device
|
||||
*/
|
||||
int board_usb_init(int index, enum board_usb_init_type init);
|
||||
int board_usb_init(int index, enum usb_init_type init);
|
||||
|
||||
/*
|
||||
* can be used to clean up after failed USB initialization attempt
|
||||
* vide: board_usb_init()
|
||||
*
|
||||
* @param index USB controller number for selective cleanup
|
||||
* @param init board_usb_init_type passed to board_usb_init()
|
||||
* @param init usb_init_type passed to board_usb_init()
|
||||
*/
|
||||
int board_usb_cleanup(int index, enum board_usb_init_type init);
|
||||
int board_usb_cleanup(int index, enum usb_init_type init);
|
||||
|
||||
#ifdef CONFIG_USB_STORAGE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue