mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 01:20:47 +09:00
arm: stm32mp: stm32prog: add "Device Name" in iproduct during DFU USB enumeration
Add "Device Name" in iproduct during DFU USB enumeration to have this information in STM32CubeProgrammer trace (this tools is compatible with @Name since v2.3) Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
42400228dc
commit
03c4e6224a
@ -197,10 +197,12 @@ bool stm32prog_usb_loop(struct stm32prog_data *data, int dev)
|
|||||||
bool result;
|
bool result;
|
||||||
/* USB download gadget for STM32 Programmer */
|
/* USB download gadget for STM32 Programmer */
|
||||||
char product[128];
|
char product[128];
|
||||||
|
char name[SOC_NAME_SIZE];
|
||||||
|
|
||||||
|
get_soc_name(name);
|
||||||
snprintf(product, sizeof(product),
|
snprintf(product, sizeof(product),
|
||||||
"USB download gadget@Device ID /0x%03X, @Revision ID /0x%04X",
|
"USB download gadget@Device ID /0x%03X, @Revision ID /0x%04X, @Name /%s,",
|
||||||
get_cpu_dev(), get_cpu_rev());
|
get_cpu_dev(), get_cpu_rev(), name);
|
||||||
g_dnl_set_product(product);
|
g_dnl_set_product(product);
|
||||||
|
|
||||||
if (stm32prog_data->phase == PHASE_FLASHLAYOUT) {
|
if (stm32prog_data->phase == PHASE_FLASHLAYOUT) {
|
||||||
|
Loading…
Reference in New Issue
Block a user