]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: spi-nor-core: Consider reserved bits in CFR5 register
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Fri, 20 Jan 2023 03:28:21 +0000 (12:28 +0900)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 26 Jan 2023 15:27:39 +0000 (20:57 +0530)
commit6521b0283d9ad8a759d2962736ec0690c8007fd3
treef4692f9fe3ece6107e1000f26d8ce12462a0c00e
parent86bd070ae61aa500f154e3a989705de78ca018e8
mtd: spi-nor-core: Consider reserved bits in CFR5 register

CFR5[6] is reserved bit and must be always 1. Set it to comply with flash
requirements. While fixing SPINOR_REG_CYPRESS_CFR5V_OCT_DTR_EN definition,
stop using magic numbers and describe the missing bit fields in CFR5
register. This is useful for both readability and future possible addition
of Octal STR mode support.

Fixes: 547069b1a501 ("mtd: spi-nor-core: Add support for Cypress Semper flash")
Suggested-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
include/linux/mtd/spi-nor.h