From: Frank Li Date: Thu, 19 Sep 2024 04:01:21 +0000 (+0800) Subject: imx9: soc: imx9: soc: Align UID endianness with ROM X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24style.Permalink%20%7D%7D?a=commitdiff_plain;h=0c2fbbaa1c82362243a48ef1976ea89e25e825bc;p=u-boot.git 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 ... [sudo] uuu -lsusb can list known devices with serial# informaiton. Signed-off-by: Frank Li Reviewed-by: Ye Li Signed-off-by: Peng Fan --- diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 06032f2ff5..6dcf0c4612 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