Skip to content

mips: Add initial Octeon MIPS64 base support

Stefan Roese u-boot 9 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v34 patches 0 repliesSuperseded
  3. v2 posting 6/60 of 12 patches 0 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v2 posting 5/60 of 12 patches0 repliesSuperseded
v2 posting 4/60 of 12 patches0 repliesSuperseded
v2 posting 3/60 of 12 patches0 repliesSuperseded
v2 posting 2/60 of 12 patches0 repliesSuperseded
v2 posting 1/612 patches0 repliesSuperseded
v110 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Remove custom clock API
- Remove bitfield and use GENMASK etc
- Add ioremap and use physical addresses
- Remove CONFIG_BOARD_SIZE_LIMIT

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sysreset: Add Octeon sysreset driverdrivers/sysreset/Kconfig drivers/sysreset/Makefile drivers/sysreset/sysreset_octeon.c+60 -00 replies
2/4mips: octeon: Initial minimal support for the Marvell Octeon SoCMAINTAINERS arch/mips/Kconfig arch/mips/Makefile +11 more+312 -10 replies
3/4mips: octeon: dts: Add Octeon 3 cn73xx base dtsi fileMAINTAINERS arch/mips/dts/mrvl,cn73xx.dtsi+65 -00 replies
4/4mips: octeon: Add minimal Octeon 3 EBB7304 EVK supportarch/mips/dts/Makefile arch/mips/dts/mrvl,octeon-ebb7304.dts arch/mips/mach-octeon/Kconfig +7 more+230 -01 reply
4/4mips: octeon: Add minimal Octeon 3 EBB7304 EVK supportconfigs/octeon_ebb7304_defconfig+1 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchDaniel Schwierzeck
1/4R-b
2/4
3/4
4/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] mips: Add initial Octeon MIPS64 base support

This patch adds very basic support for the Octeon III SoCs. Only CFI parallel UART, reset and NOR flash are supported for now.

Please note that the basic Octeon port does not include the DDR3/4 initialization yet. This will be added in some follow-up patches later. To still use U-Boot on with this port, the L2 cache (4MiB on Octeon III CN73xx) is used as RAM. This way, U-Boot can boot to the prompt on such boards.

v3:
This version is based on the MIPS start.S rework and Linux header sync from Daniel using this branch: u-boot-mips/header_sync_v2

I removed the very early copy to to L2 cache for now to make the integration into mainline easier. With all the patches already applied and the Linux header sync, the resulting patchset is much smaller.

Thanks,
Stefan

Changes in v4:
- Remove custom clock API
- Remove bitfield and use GENMASK etc
- Add ioremap and use physical addresses
- Remove CONFIG_BOARD_SIZE_LIMIT

Changes in v3:
- Don't "relocate" to L2 cache for now
- Remove inclusion of "common.h"
- Remove inclusion of "common.h"
- Slightly change some copyright messages (adjust year)

Changes in v2:
- Remove custom start.S and use common start.S. Minimal custom lowlevel init code is currently added in the custom lowlevel_init.S. This needs to be extended with necessary code, like errata handling etc. But for a very first basic port, this seems to be all thats needed to boot on the EBB7304 to the prompt.
- Removed select CREATE_ARCH_SYMLINK
- Removed Octeon II support, as its currently no added in this patchset
- Added cache.c to add the platform specific cache functions as no-ops for Octeon as the platform is cache coherent
- Removed CONFIG_MIPS_CACHE_COHERENT
- Added CONFIG_CPU_CAVIUM_OCTEON to Kconfig and selected it for Octeon to enable better sync with the Linux files in the future
- Add get_tbclk() -> no need to define CONFIG_SYS_MIPS_TIMER_FREQ any more
- Removed CONFIG_SYS_MIPS_TIMER_FREQ

Aaron Williams (1):
mips: octeon: Initial minimal support for the Marvell Octeon SoC

Stefan Roese (3):
sysreset: Add Octeon sysreset driver
mips: octeon: dts: Add Octeon 3 cn73xx base dtsi file
mips: octeon: Add minimal Octeon 3 EBB7304 EVK support

 MAINTAINERS                                   |  7 ++
 arch/mips/Kconfig                             | 41 ++++++++
 arch/mips/Makefile                            |  3 +
 arch/mips/dts/Makefile                        |  1 +
 arch/mips/dts/mrvl,cn73xx.dtsi                | 64 +++++++++++++
 arch/mips/dts/mrvl,octeon-ebb7304.dts         | 96 +++++++++++++++++++
 arch/mips/mach-octeon/Kconfig                 | 60 ++++++++++++
 arch/mips/mach-octeon/Makefile                | 10 ++
 arch/mips/mach-octeon/cache.c                 | 20 ++++
 arch/mips/mach-octeon/clock.c                 | 14 +++
 arch/mips/mach-octeon/cpu.c                   | 66 +++++++++++++
 arch/mips/mach-octeon/dram.c                  | 28 ++++++
 arch/mips/mach-octeon/include/ioremap.h       | 30 ++++++
 arch/mips/mach-octeon/include/mach/cavm-reg.h | 17 ++++
 arch/mips/mach-octeon/include/mach/clock.h    | 12 +++
 arch/mips/mach-octeon/lowlevel_init.S         | 19 ++++
 board/Marvell/octeon_ebb7304/Kconfig          | 19 ++++
 board/Marvell/octeon_ebb7304/MAINTAINERS      |  7 ++
 board/Marvell/octeon_ebb7304/Makefile         |  8 ++
 board/Marvell/octeon_ebb7304/board.c          |  9 ++
 configs/octeon_ebb7304_defconfig              | 37 +++++++
 drivers/sysreset/Kconfig                      |  7 ++
 drivers/sysreset/Makefile                     |  1 +
 drivers/sysreset/sysreset_octeon.c            | 52 ++++++++++
 include/configs/octeon_common.h               | 19 ++++
 include/configs/octeon_ebb7304.h              | 20 ++++
 scripts/config_whitelist.txt                  |  1 -
 27 files changed, 667 insertions(+), 1 deletion(-)
 create mode 100644 arch/mips/dts/mrvl,cn73xx.dtsi
 create mode 100644 arch/mips/dts/mrvl,octeon-ebb7304.dts
 create mode 100644 arch/mips/mach-octeon/Kconfig
 create mode 100644 arch/mips/mach-octeon/Makefile
 create mode 100644 arch/mips/mach-octeon/cache.c
 create mode 100644 arch/mips/mach-octeon/clock.c
 create mode 100644 arch/mips/mach-octeon/cpu.c
 create mode 100644 arch/mips/mach-octeon/dram.c
 create mode 100644 arch/mips/mach-octeon/include/ioremap.h
 create mode 100644 arch/mips/mach-octeon/include/mach/cavm-reg.h
 create mode 100644 arch/mips/mach-octeon/include/mach/clock.h
 create mode 100644 arch/mips/mach-octeon/lowlevel_init.S
 create mode 100644 board/Marvell/octeon_ebb7304/Kconfig
 create mode 100644 board/Marvell/octeon_ebb7304/MAINTAINERS
 create mode 100644 board/Marvell/octeon_ebb7304/Makefile
 create mode 100644 board/Marvell/octeon_ebb7304/board.c
 create mode 100644 configs/octeon_ebb7304_defconfig
 create mode 100644 drivers/sysreset/sysreset_octeon.c
 create mode 100644 include/configs/octeon_common.h
 create mode 100644 include/configs/octeon_ebb7304.h
Signature · 1 line
2.27.0