public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/18] Initial support of driver brcmnand (from kernel 4.18)
@ 2019-03-15 14:14 Philippe Reynes
  2019-03-15 14:14 ` [U-Boot] [PATCH 01/18] mtd: add get/set of_node/flash_node helpers Philippe Reynes
                   ` (17 more replies)
  0 siblings, 18 replies; 37+ messages in thread
From: Philippe Reynes @ 2019-03-15 14:14 UTC (permalink / raw)
  To: u-boot

This serie is a port the support of driver brcmnand
from kernel 4.18 to u-boot. I've tried to stay as close as
possible to the kernel. In this first port, I haven't ported
the support of DMA, it's not mandatory in the first step and
it could be added later.

This code has been tested on bcm6838 (mips), bcm63158 (arm)
and bcm6858 (arm64).

In the code, I've used "#ifndef __UBOOT__" to show the
difference between the kernel code.

I've also added a file brcmnand_compat.[hc] to compat
function with the kernel (for example devm_clk_get).

Changes in v1:
- define less function in brcmnand_compat.c/h
  and add more #ifndef __UBOOT__
- port completion.h (function stubbed) from kernel 4.18
- define devm_ioremap for everybody
- remove duplicate SoB
- update text commit
- add support of bcm63158

Boris Brezillon (1):
  mtd: nand: provide several helpers to do common NAND operations

Brian Norris (1):
  mtd: add get/set of_node/flash_node helpers

Marc Gonzalez (1):
  mtd: nand: import nand_hw_control_init()

Philippe Reynes (15):
  arm: asm: io.h: define readX_relaxed and writeX_relaxed
  include: linux: io: define devm_ioremap on board with ioremap
  compat linux: import completion from linux 4.18
  drivers: nand: brcmnand: add initial support
  drivers: nand: brcmnand: add parameter parameter-page-big-endian
  drivers: nand: brcmnand: add an option to read the write-protect from
    device tree
  dt: bcm6838: add nand controller
  dt: bcm968380gerg: enable nand controller
  bcm968380gerg: add nand support
  dt: bcm6858: add nand controller
  dt: bcm968580xref: enable nand controller
  bcm968580xref: add nand support
  dt: bcm63158: add nand controller
  dt: bcm963158: enable nand controller
  bcm963158: add nand support

 arch/arm/dts/bcm63158.dtsi                      |   13 +
 arch/arm/dts/bcm6858.dtsi                       |   13 +
 arch/arm/dts/bcm963158.dts                      |   15 +
 arch/arm/dts/bcm968580xref.dts                  |   15 +
 arch/arm/include/asm/io.h                       |   21 +
 arch/mips/dts/brcm,bcm6838.dtsi                 |   13 +
 arch/mips/dts/brcm,bcm968380gerg.dts            |   12 +
 configs/bcm963158_ram_defconfig                 |    6 +
 configs/bcm968380gerg_ram_defconfig             |    7 +
 configs/bcm968580xref_ram_defconfig             |    7 +
 drivers/mtd/nand/raw/Kconfig                    |   25 +
 drivers/mtd/nand/raw/Makefile                   |    1 +
 drivers/mtd/nand/raw/brcmnand/Makefile          |    7 +
 drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c   |  123 +
 drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c    |  122 +
 drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c    |  123 +
 drivers/mtd/nand/raw/brcmnand/brcmnand.c        | 2805 +++++++++++++++++++++++
 drivers/mtd/nand/raw/brcmnand/brcmnand.h        |   63 +
 drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c |   66 +
 drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h |   15 +
 drivers/mtd/nand/raw/nand_base.c                | 1013 ++++++--
 include/configs/broadcom_bcm963158.h            |    7 +
 include/configs/broadcom_bcm968380gerg.h        |    7 +
 include/configs/broadcom_bcm968580xref.h        |    7 +
 include/linux/completion.h                      |  173 ++
 include/linux/io.h                              |    2 +-
 include/linux/mtd/rawnand.h                     |   49 +
 27 files changed, 4569 insertions(+), 161 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/Makefile
 create mode 100644 drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c
 create mode 100644 drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c
 create mode 100644 drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c
 create mode 100644 drivers/mtd/nand/raw/brcmnand/brcmnand.c
 create mode 100644 drivers/mtd/nand/raw/brcmnand/brcmnand.h
 create mode 100644 drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c
 create mode 100644 drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h
 create mode 100644 include/linux/completion.h

-- 
2.7.4

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2019-04-24 13:27 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-15 14:14 [U-Boot] [PATCH 00/18] Initial support of driver brcmnand (from kernel 4.18) Philippe Reynes
2019-03-15 14:14 ` [U-Boot] [PATCH 01/18] mtd: add get/set of_node/flash_node helpers Philippe Reynes
2019-04-24 13:23   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 02/18] mtd: nand: import nand_hw_control_init() Philippe Reynes
2019-04-24 13:23   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 03/18] mtd: nand: provide several helpers to do common NAND operations Philippe Reynes
2019-04-24 13:23   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 04/18] arm: asm: io.h: define readX_relaxed and writeX_relaxed Philippe Reynes
2019-04-24 13:24   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 05/18] include: linux: io: define devm_ioremap on board with ioremap Philippe Reynes
2019-04-24 13:24   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 06/18] compat linux: import completion from linux 4.18 Philippe Reynes
2019-04-24 13:24   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 07/18] drivers: nand: brcmnand: add initial support Philippe Reynes
2019-04-24 13:24   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 08/18] drivers: nand: brcmnand: add parameter parameter-page-big-endian Philippe Reynes
2019-04-24 13:24   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 09/18] drivers: nand: brcmnand: add an option to read the write-protect from device tree Philippe Reynes
2019-04-24 13:25   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 10/18] dt: bcm6838: add nand controller Philippe Reynes
2019-04-24 13:25   ` [U-Boot] [U-Boot,10/18] " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 11/18] dt: bcm968380gerg: enable " Philippe Reynes
2019-04-24 13:25   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 12/18] bcm968380gerg: add nand support Philippe Reynes
2019-04-24 13:26   ` [U-Boot] [U-Boot,12/18] " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 13/18] dt: bcm6858: add nand controller Philippe Reynes
2019-04-24 13:26   ` [U-Boot] [U-Boot,13/18] " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 14/18] dt: bcm968580xref: enable " Philippe Reynes
2019-04-24 13:26   ` [U-Boot] [U-Boot, " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 15/18] bcm968580xref: add nand support Philippe Reynes
2019-04-24 13:26   ` [U-Boot] [U-Boot,15/18] " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 16/18] dt: bcm63158: add nand controller Philippe Reynes
2019-04-24 13:27   ` [U-Boot] [U-Boot,16/18] " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 17/18] dt: bcm963158: enable " Philippe Reynes
2019-04-24 13:27   ` [U-Boot] [U-Boot,17/18] " Tom Rini
2019-03-15 14:14 ` [U-Boot] [PATCH 18/18] bcm963158: add nand support Philippe Reynes
2019-04-24 13:27   ` [U-Boot] [U-Boot,18/18] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox