mtd: physmap_of: Retire Gemini pad control
PATCH 1/1 mtd: physmap_of: Retire Gemini pad control
I wrote a proper pin control driver for the Gemini. Retire this SoC-specific pad control and rely on the pin controller to manage this.
Signed-off-by Linus Walleij <[email protected]>
--- drivers/mtd/maps/physmap_of_gemini.c | 16 ---------------- 1 file changed, 16 deletions(-)
drivers/mtd/maps/physmap_of_gemini.c +0 -16
@@ -43,13 +43,6 @@#define FLASH_PARALLEL_HIGH_PIN_CNT (1 << 20)/* else low pin cnt */ -/* Miscellaneous Control Register */ -#define GLOBAL_MISC_CTRL 0x30 -#define FLASH_PADS_MASK 0x07 -#define NAND_PADS_DISABLE BIT(2) -#define PFLASH_PADS_DISABLE BIT(1) -#define SFLASH_PADS_DISABLE BIT(0) -static const struct of_device_id syscon_match[] = { { .compatible ="cortina,gemini-syscon" }, { },
@@ -102,15 +95,6 @@ int of_flash_probe_gemini(struct platform_device *pdev, map->bankwidth * 8); } -/* Activate parallel (NOR flash) mode */ - ret =regmap_update_bits (rmap,GLOBAL_MISC_CTRL , -FLASH_PADS_MASK , -SFLASH_PADS_DISABLE |NAND_PADS_DISABLE ); -if (ret) { -dev_err (dev,"unable to set up physmap pads\n" ); -return -ENODEV ; - } -dev_info (&pdev->dev,"initialized Gemini-specific physmap control\n" );return 0 ;
Signature · 1 line
2.9.4
PATCH 1/1 mtd: physmap_of: Retire Gemini pad control
Quoted 5 lines · Linus Walleij
I wrote a proper pin control driver for the Gemini. Retire this SoC-specific pad control and rely on the pin controller to manage this.
Signed-off-by Linus Walleij <[email protected]>
Reviewed-by Marek Vasut <[email protected]>
Thanks!
Quoted 39 lines
--- drivers/mtd/maps/physmap_of_gemini.c | 16 ---------------- 1 file changed, 16 deletions(-)drivers/mtd/maps/physmap_of_gemini.c +0
-16@@ -43,13 +43,6 @@#define FLASH_PARALLEL_HIGH_PIN_CNT (1 << 20)/* else low pin cnt */ -/* Miscellaneous Control Register */ -#define GLOBAL_MISC_CTRL 0x30 -#define FLASH_PADS_MASK 0x07 -#define NAND_PADS_DISABLE BIT(2) -#define PFLASH_PADS_DISABLE BIT(1) -#define SFLASH_PADS_DISABLE BIT(0) -static const struct of_device_id syscon_match[] = { { .compatible ="cortina,gemini-syscon" }, { },@@ -102,15 +95,6 @@ int of_flash_probe_gemini(struct platform_device *pdev, map->bankwidth * 8); } -/* Activate parallel (NOR flash) mode */ - ret =regmap_update_bits (rmap,GLOBAL_MISC_CTRL , -FLASH_PADS_MASK , -SFLASH_PADS_DISABLE |NAND_PADS_DISABLE ); -if (ret) { -dev_err (dev,"unable to set up physmap pads\n" ); -return -ENODEV ; - } -dev_info (&pdev->dev,"initialized Gemini-specific physmap control\n" );return 0 ;
Signature · 2 lines
Best regards, Marek Vasut
Boris Brezillon
AppliedPATCH 1/1 mtd: physmap_of: Retire Gemini pad control
In reply to Linus WalleijLe Tue, 8 Aug 2017 21:05:10 +0200,
Linus Walleij <[email protected]> a ?crit :
Quoted 4 lines
I wrote a proper pin control driver for the Gemini. Retire this SoC-specific pad control and rely on the pin controller to manage this.
Applied to l2-mtd/master.
Thanks,
Boris
Quoted 39 lines
Signed-off-by Linus Walleij <[email protected]>--- drivers/mtd/maps/physmap_of_gemini.c | 16 ---------------- 1 file changed, 16 deletions(-)drivers/mtd/maps/physmap_of_gemini.c +0
-16@@ -43,13 +43,6 @@#define FLASH_PARALLEL_HIGH_PIN_CNT (1 << 20)/* else low pin cnt */ -/* Miscellaneous Control Register */ -#define GLOBAL_MISC_CTRL 0x30 -#define FLASH_PADS_MASK 0x07 -#define NAND_PADS_DISABLE BIT(2) -#define PFLASH_PADS_DISABLE BIT(1) -#define SFLASH_PADS_DISABLE BIT(0) -static const struct of_device_id syscon_match[] = { { .compatible ="cortina,gemini-syscon" }, { },@@ -102,15 +95,6 @@ int of_flash_probe_gemini(struct platform_device *pdev, map->bankwidth * 8); } -/* Activate parallel (NOR flash) mode */ - ret =regmap_update_bits (rmap,GLOBAL_MISC_CTRL , -FLASH_PADS_MASK , -SFLASH_PADS_DISABLE |NAND_PADS_DISABLE ); -if (ret) { -dev_err (dev,"unable to set up physmap pads\n" ); -return -ENODEV ; - } -dev_info (&pdev->dev,"initialized Gemini-specific physmap control\n" );return 0 ;