Files
u-boot/include/configs
Pali Rohár a675eb14bd arm: mvebu: Espressobin: Enable 'mtd' command and define SPI NOR partitions
U-Boot now supports parsing SPI NOR partitions from Device Tree. So enable
'mtd' command support for Espressobin board and define partition layout in
U-Boot Espressobin DTS file. Access to SPI NOR via 'sf' command is old
method and 'mtd' command is now preferred variant.

From include file remove '#define CONFIG_MTD_PARTITIONS' as this option is
now defined and enabled in defconfig file. This change is required to fix
compile error:

      CC      arch/arm/lib/asm-offsets.s
    In file included from include/config.h:4,
                     from include/common.h:16,
                     from lib/asm-offsets.c:14:
    include/configs/mvebu_armada-37xx.h:63: warning: "CONFIG_MTD_PARTITIONS" redefined
     #define CONFIG_MTD_PARTITIONS  /* required for UBI partition support */

    In file included from ././include/linux/kconfig.h:4,
                     from <command-line>:
    include/generated/autoconf.h:44: note: this is the location of the previous definition
     #define CONFIG_MTD_PARTITIONS 1

After enabling support for mtd command, output from 'mtd list' on
Espressobin board is:

    => mtd list
    List of MTD devices:
    * w25q32dw
      - device: spi-flash@0
      - parent: spi@10600
      - driver: jedec_spi_nor
      - path: /soc/internal-regs/spi@10600/spi-flash@0
      - type: NOR flash
      - block size: 0x1000 bytes
      - min I/O: 0x1 bytes
      - 0x000000000000-0x000000400000 : "w25q32dw"
              - 0x000000000000-0x0000003f0000 : "firmware"
              - 0x0000003f0000-0x000000400000 : "u-boot-env"
    =>

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Konstantin Porotchkin <kostap@marvell.com>
Reviewed-by: Stefan Roese <sr@denx.de>
2021-07-19 09:05:30 +02:00
..
2020-04-28 15:57:58 -04:00
2021-06-09 13:34:09 +02:00
2020-12-18 16:16:36 +05:30
2020-07-28 16:18:10 -04:00
2020-01-14 22:15:21 +01:00
2020-04-28 15:57:58 -04:00
2021-04-10 07:59:30 -04:00
2020-04-28 15:57:58 -04:00
2020-01-14 22:15:21 +01:00
2020-04-28 15:57:58 -04:00
2020-10-22 11:26:14 -04:00
2019-12-23 14:06:47 +05:30
2020-04-28 15:57:58 -04:00
2021-02-04 20:37:56 +05:30
2020-06-29 22:36:35 +02:00
2020-06-26 10:29:06 -04:00
2020-07-17 08:47:29 -04:00
2021-03-01 10:21:36 +01:00
2021-03-01 10:21:36 +01:00
2021-05-13 09:55:04 +03:00
2021-04-22 14:09:45 -04:00
2020-04-28 15:57:58 -04:00
2021-05-14 16:20:49 +08:00
2020-04-28 15:57:58 -04:00
2019-12-23 14:06:47 +05:30
2019-12-23 14:06:47 +05:30
2021-04-08 20:29:54 +02:00
2020-06-26 10:29:05 -04:00
2020-09-23 00:14:56 +02:00
2020-06-26 10:29:06 -04:00
2020-07-17 08:47:29 -04:00