mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge branch 'master' of git://git.denx.de/u-boot-usb
This commit is contained in:
@@ -130,7 +130,6 @@
|
||||
#define CONFIG_CMD_BOOTZ
|
||||
#define CONFIG_FAT_WRITE
|
||||
|
||||
|
||||
/* Fastboot and USB OTG */
|
||||
#define CONFIG_USB_FUNCTION_FASTBOOT
|
||||
#define CONFIG_CMD_FASTBOOT
|
||||
@@ -150,23 +149,4 @@
|
||||
#define CONFIG_G_DNL_PRODUCT_NUM 0x0d02 /* nexus one */
|
||||
#define CONFIG_G_DNL_MANUFACTURER "Broadcom Corporation"
|
||||
|
||||
/* Fastboot and USB OTG */
|
||||
#define CONFIG_USB_FUNCTION_FASTBOOT
|
||||
#define CONFIG_CMD_FASTBOOT
|
||||
#define CONFIG_FASTBOOT_FLASH
|
||||
#define CONFIG_FASTBOOT_FLASH_MMC_DEV 0
|
||||
#define CONFIG_SYS_CACHELINE_SIZE 64
|
||||
#define CONFIG_USB_FASTBOOT_BUF_SIZE (CONFIG_SYS_SDRAM_SIZE - SZ_1M)
|
||||
#define CONFIG_USB_FASTBOOT_BUF_ADDR CONFIG_SYS_SDRAM_BASE
|
||||
#define CONFIG_USB_GADGET
|
||||
#define CONFIG_USB_GADGET_DUALSPEED
|
||||
#define CONFIG_USB_GADGET_VBUS_DRAW 0
|
||||
#define CONFIG_USB_GADGET_S3C_UDC_OTG
|
||||
#define CONFIG_USB_GADGET_BCM_UDC_OTG_PHY
|
||||
#define CONFIG_USB_GADGET_DOWNLOAD
|
||||
#define CONFIG_USBID_ADDR 0x34052c46
|
||||
#define CONFIG_G_DNL_VENDOR_NUM 0x18d1 /* google */
|
||||
#define CONFIG_G_DNL_PRODUCT_NUM 0x0d02 /* nexus one */
|
||||
#define CONFIG_G_DNL_MANUFACTURER "Broadcom Corporation"
|
||||
|
||||
#endif /* __BCM28155_AP_H */
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
#define CONFIG_CMD_DFU
|
||||
#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
|
||||
#define DFU_DEFAULT_POLL_TIMEOUT 300
|
||||
#define DFU_MANIFEST_POLL_TIMEOUT 25000
|
||||
|
||||
/* THOR */
|
||||
#define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
|
||||
|
||||
@@ -163,6 +163,31 @@ int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
|
||||
int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
|
||||
int dfu_flush(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
|
||||
|
||||
/*
|
||||
* dfu_defer_flush - pointer to store dfu_entity for deferred flashing.
|
||||
* It should be NULL when not used.
|
||||
*/
|
||||
extern struct dfu_entity *dfu_defer_flush;
|
||||
/**
|
||||
* dfu_get_defer_flush - get current value of dfu_defer_flush pointer
|
||||
*
|
||||
* @return - value of the dfu_defer_flush pointer
|
||||
*/
|
||||
static inline struct dfu_entity *dfu_get_defer_flush(void)
|
||||
{
|
||||
return dfu_defer_flush;
|
||||
}
|
||||
|
||||
/**
|
||||
* dfu_set_defer_flush - set the dfu_defer_flush pointer
|
||||
*
|
||||
* @param dfu - pointer to the dfu_entity, which should be written
|
||||
*/
|
||||
static inline void dfu_set_defer_flush(struct dfu_entity *dfu)
|
||||
{
|
||||
dfu_defer_flush = dfu;
|
||||
}
|
||||
|
||||
/**
|
||||
* dfu_write_from_mem_addr - write data from memory to DFU managed medium
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user