]> git.dujemihanovic.xyz Git - u-boot.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)
commitda16d72efd004e046b8b4f98a662afd4bef09206
tree2e7fa2d2c4e8030a76391802aa153438e34168f6
parentee7296bbcd6bae3ded087cb56c786da10aa6fc6a
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