diff options
| author | Frank Li <[email protected]> | 2024-09-19 12:01:21 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2024-09-19 00:12:41 -0300 |
| commit | 0c2fbbaa1c82362243a48ef1976ea89e25e825bc (patch) | |
| tree | 88466b8e294283d9cc6a3d30637dc033a3e85e24 | |
| parent | 7ddb2c91c1082252041285e82e76febc816e566f (diff) | |
imx9: soc: imx9: soc: Align UID endianness with ROM
ROM use UID[0] and UID[1] as serial number with big endian when usb serial
download.
After update this, uuu(>1.6) can use below command to filter out devices
when multi boards connected.
uuu -ms <serial#> ...
[sudo] uuu -lsusb can list known devices with serial# informaiton.
Signed-off-by: Frank Li <[email protected]>
Reviewed-by: Ye Li <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
| -rw-r--r-- | arch/arm/mach-imx/imx9/soc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 06032f2ff59..6dcf0c4612d 100644 --- a/arch/arm/mach-imx/imx9/soc.c +++ b/arch/arm/mach-imx/imx9/soc.c @@ -563,8 +563,8 @@ void get_board_serial(struct tag_serialnr *serialnr) printf("UID: 0x%x 0x%x 0x%x 0x%x\n", gd->arch.uid[0], gd->arch.uid[1], gd->arch.uid[2], gd->arch.uid[3]); - serialnr->low = gd->arch.uid[0]; - serialnr->high = gd->arch.uid[3]; + serialnr->low = __be32_to_cpu(gd->arch.uid[1]); + serialnr->high = __be32_to_cpu(gd->arch.uid[0]); } #endif |
