]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: spi-nor-core: Make CFRx reg fields generic
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Fri, 20 Jan 2023 03:28:22 +0000 (12:28 +0900)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 26 Jan 2023 15:28:09 +0000 (20:58 +0530)
commit9946a1beda313f377cda75829a15d4afd4aeebe1
tree2e7fa2d2c4e8030a76391802aa153438e34168f6
parent6521b0283d9ad8a759d2962736ec0690c8007fd3
mtd: spi-nor-core: Make CFRx reg fields generic

Cypress defines two flavors of configuration registers, volatile and
non volatile, and both use the same bit fields. Rename the bitfields in
the configuration registers so that they can be used for both flavors.

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>
drivers/mtd/spi/spi-nor-core.c
include/linux/mtd/spi-nor.h