]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: rawnand: brcmnand: Default bcmbca parameter_page_big_endian to zero
authordavid regan <dregan@broadcom.com>
Wed, 13 Nov 2024 06:27:14 +0000 (22:27 -0800)
committerMichael Trimarchi <michael@amarulasolutions.com>
Tue, 26 Nov 2024 20:14:44 +0000 (21:14 +0100)
Set parameter_page_big_endian to zero for bcmbca

Signed-off-by: david regan <dregan@broadcom.com>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Anand Gore <anand.gore@broadcom.com>
drivers/mtd/nand/raw/brcmnand/brcmnand.c

index 749553c9df90968735509f3a5fe32c34d56e83c7..7fd9e1855d1e0ce727f152151c04f3e284e6c9ed 100644 (file)
@@ -2793,9 +2793,17 @@ int brcmnand_probe(struct udevice *dev, struct brcmnand_soc *soc)
        nand_hw_control_init(&ctrl->controller);
        INIT_LIST_HEAD(&ctrl->host_list);
 
+#ifdef CONFIG_NAND_BRCMNAND_BCMBCA
+       /*
+        * BCMBCA platform does not use non-linux parameter-page-big-endian dts property,
+        * param page data is little endian
+        */
+       ctrl->parameter_page_big_endian = 0;
+#else
        /* Is parameter page in big endian ? */
        ctrl->parameter_page_big_endian =
            dev_read_u32_default(dev, "parameter-page-big-endian", 1);
+#endif
 
        /* NAND register range */
 #ifndef __UBOOT__