From: david regan Date: Wed, 13 Nov 2024 06:27:14 +0000 (-0800) Subject: mtd: rawnand: brcmnand: Default bcmbca parameter_page_big_endian to zero X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=a4f72e8b6ef25530e7fe6a8b25920126f2a5d81f;p=u-boot.git mtd: rawnand: brcmnand: Default bcmbca parameter_page_big_endian to zero Set parameter_page_big_endian to zero for bcmbca Signed-off-by: david regan Reviewed-by: William Zhang Reviewed-by: Anand Gore --- diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 749553c9df..7fd9e1855d 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -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__