Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <linus.walleij@linaro.org>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

authored by

Linus Walleij and committed by
Boris Brezillon
2acc717b 871e7c01

-16
-16
drivers/mtd/maps/physmap_of_gemini.c
··· 43 43 44 44 #define FLASH_PARALLEL_HIGH_PIN_CNT (1 << 20) /* else low pin cnt */ 45 45 46 - /* Miscellaneous Control Register */ 47 - #define GLOBAL_MISC_CTRL 0x30 48 - #define FLASH_PADS_MASK 0x07 49 - #define NAND_PADS_DISABLE BIT(2) 50 - #define PFLASH_PADS_DISABLE BIT(1) 51 - #define SFLASH_PADS_DISABLE BIT(0) 52 - 53 46 static const struct of_device_id syscon_match[] = { 54 47 { .compatible = "cortina,gemini-syscon" }, 55 48 { }, ··· 93 100 if (map->bankwidth != 1) 94 101 dev_warn(dev, "flash hardware say flash is 8 bit wide but DT says it is %d bits wide\n", 95 102 map->bankwidth * 8); 96 - } 97 - 98 - /* Activate parallel (NOR flash) mode */ 99 - ret = regmap_update_bits(rmap, GLOBAL_MISC_CTRL, 100 - FLASH_PADS_MASK, 101 - SFLASH_PADS_DISABLE | NAND_PADS_DISABLE); 102 - if (ret) { 103 - dev_err(dev, "unable to set up physmap pads\n"); 104 - return -ENODEV; 105 103 } 106 104 107 105 dev_info(&pdev->dev, "initialized Gemini-specific physmap control\n");