mips: octeon: MIPS Octeon misc updates: NIC23, AHCI, serial-remote tools etc
cover mips: octeon: MIPS Octeon misc updates: NIC23, AHCI, serial-remote tools etc
This patchset adds the following updates / fixes for Marvell MIPS Octeon:
- MIPS Octeon NIC23 base support
- Add serial_octeon_pcie_console to support the Marvell remote tool "oct-remote-console"
- Add serial_octeon_bootcmd to support the Marvell remote tools "oct-remote-load" & "oct-remote-bootcmd"
- Fix AHCI driver to support big-endian platforms
- Misc minor updates & fixes to the MIPS Octeon platform code
- EBB7304: Enable USB storage support
- EBB7304: Add I2C support (devices & commands)
This patchset requires the MIPS Octeon serdes & PCIe patchset which was posted to the list 2020-12-11.
Thanks,
Stefan
Aaron Williams (2):
mips: octeon: dts/dtsi: Change UART DT node to use clocks property
mips: octeon: ebb7304: Add support for some I2C devices
Stefan Roese (13):
mips: octeon: Move CVMX_SYNC from octeon_ddr.h to cvmx-regs.h
mips: octeon: cvmx-bootmem: Fix compare in "if" statement
mips: octeon: cvmx-coremask.h: Fix cvmx_coremask_dprint() with DEBUG
defined
serial: serial_octeon_pcie_console.c: Add PCI remote console support
serial: serial_octeon_bootcmd.c: Add PCI remote console support
mips: octeon: cpu.c: Add arch_misc_init() for pci-console &
pci-bootcmd
mips: octeon: cpu.c: Enable AHCI/SATA support
sata: ahci_mvebu.c: Enable AHCI/SATA driver for MIPS Octeon
ata: ahci: Fix usage on big-endian platforms
scsi: Add ata_swap_buf_le16() to support big-endian platforms
mips: octeon: mrvl,cn73xx.dtsi: Add AHCI/SATA DT node
mips: octeon: Add Octeon III NIC23 board support
mips: octeon: octeon_ebb7304_defconfig: Enable USB storage support
arch/mips/dts/Makefile | 1 + arch/mips/dts/mrvl,cn73xx.dtsi | 21 + arch/mips/dts/mrvl,octeon-ebb7304.dts | 15 +- arch/mips/dts/mrvl,octeon-nic23.dts | 162 ++++++++ arch/mips/mach-octeon/Kconfig | 7 + arch/mips/mach-octeon/cpu.c | 348 ++++++++++++++++- arch/mips/mach-octeon/cvmx-bootmem.c | 4 +- .../mach-octeon/include/mach/cvmx-coremask.h | 5 +- .../mips/mach-octeon/include/mach/cvmx-regs.h | 1 + .../mach-octeon/include/mach/octeon_ddr.h | 2 - board/Marvell/octeon_nic23/Kconfig | 19 + board/Marvell/octeon_nic23/MAINTAINERS | 7 + board/Marvell/octeon_nic23/Makefile | 8 + board/Marvell/octeon_nic23/board.c | 106 +++++ board/Marvell/octeon_nic23/board_ddr.h | 269 +++++++++++++ configs/octeon_ebb7304_defconfig | 9 +- configs/octeon_nic23_defconfig | 70 ++++ drivers/ata/Kconfig | 2 +- drivers/ata/ahci.c | 23 +- drivers/ata/ahci_mvebu.c | 3 +- drivers/scsi/scsi.c | 6 + drivers/serial/Kconfig | 24 ++ drivers/serial/Makefile | 2 + drivers/serial/serial_octeon_bootcmd.c | 182 +++++++++ drivers/serial/serial_octeon_pcie_console.c | 365 ++++++++++++++++++ include/configs/octeon_nic23.h | 21 + 26 files changed, 1656 insertions(+), 26 deletions(-) create mode 100644 arch/mips/dts/mrvl,octeon-nic23.dts create mode 100644 board/Marvell/octeon_nic23/Kconfig create mode 100644 board/Marvell/octeon_nic23/MAINTAINERS create mode 100644 board/Marvell/octeon_nic23/Makefile create mode 100644 board/Marvell/octeon_nic23/board.c create mode 100644 board/Marvell/octeon_nic23/board_ddr.h create mode 100644 configs/octeon_nic23_defconfig create mode 100644 drivers/serial/serial_octeon_bootcmd.c create mode 100644 drivers/serial/serial_octeon_pcie_console.c create mode 100644 include/configs/octeon_nic23.h
Signature · 1 line
2.31.1
PATCH 1/15 mips: octeon: Move CVMX_SYNC from octeon_ddr.h to cvmx-regs.h
This makes is easier to use this macro from non-DDR related files.
---
arch/mips/mach-octeon/include/mach/cvmx-regs.h | 1 + arch/mips/mach-octeon/include/mach/octeon_ddr.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
arch/mips/mach-octeon/include/mach/cvmx-regs.h +1 -0
@@ -68,6 +68,7 @@#define CVMX_POP (result, input) \ asm("pop %[rd],%[rs]" : [rd] "=d"(result) : [rs] "d"(input)) +#define CVMX_SYNC asm volatile("sync\n" : : : "memory")#define CVMX_SYNCW asm volatile("syncw\nsyncw\n" : : : "memory")#define CVMX_SYNCS asm volatile("syncs\n" : : : "memory")#define CVMX_SYNCWS asm volatile("syncws\n" : : : "memory")
arch/mips/mach-octeon/include/mach/octeon_ddr.h +0 -2
@@ -120,8 +120,6 @@ static inline int ddr_verbose(void)#define CVMX_TMP_STR (x) CVMX_TMP_STR2(x)#define CVMX_TMP_STR2 (x) #x -#define CVMX_SYNC asm volatile ("sync" : : : "memory") -#define CVMX_CACHE (op, address, offset) \ asm volatile ("cache " CVMX_TMP_STR(op) ", " \ CVMX_TMP_STR(offset) "(%[rbase])" \
Signature · 1 line
2.31.1
PATCH 2/15 mips: octeon: cvmx-bootmem: Fix compare in "if" statement
In reply to Stefan RoeseWhile porting from the Marvell source, I introduced a bug by misplacing the parenthesis. This patch fixes this issue.
---
arch/mips/mach-octeon/cvmx-bootmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/mach-octeon/cvmx-bootmem.c +2 -2
@@ -283,8 +283,8 @@ static int __cvmx_bootmem_check_version(int exact_match)int major_version; major_version =CVMX_BOOTMEM_DESC_GET_FIELD (major_version); -if (major_version >3 || - (exact_match && major_version) != exact_match) { +if ((major_version >3 ) || + (exact_match && major_version != exact_match)) { debug("ERROR: Incompatible bootmem descriptor version: %d.%d at addr: 0x%llx\n", major_version, (int)CVMX_BOOTMEM_DESC_GET_FIELD(minor_version),
Signature · 1 line
2.31.1
PATCH 3/15 mips: octeon: cvmx-coremask.h: Fix cvmx_coremask_dprint() with DEBUG defined
In reply to Stefan RoeseAs DEBUG is no Kconfig symbol, we can't use the IS_ENABLED() macros. This patch switches to the unfortunately necessary #ifdef usage again to make it work correctly.
---
arch/mips/mach-octeon/include/mach/cvmx-coremask.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/mips/mach-octeon/include/mach/cvmx-coremask.h +3 -2
@@ -741,8 +741,9 @@ void cvmx_coremask_print(const struct cvmx_coremask *pcm);static inline void cvmx_coremask_dprint (const struct cvmx_coremask *pcm) { -if (IS_ENABLED (DEBUG )) -cvmx_coremask_print (pcm); +#if defined(DEBUG ) +cvmx_coremask_print (pcm); +#endif }struct cvmx_coremask *octeon_get_available_coremask (struct cvmx_coremask *pcm);
Signature · 1 line
2.31.1
PATCH 4/15 serial: serial_octeon_pcie_console.c: Add PCI remote console support
In reply to Stefan RoeseThis patch adds the PCI remote console feature for MIPS Octeon, which will be used by the upcoming Octeon III NIC23 board support. It enables the use of the "oct-remote-console" tool on host PC's to communicate with the PCIe target.
---
drivers/serial/Kconfig | 13 + drivers/serial/Makefile | 1 + drivers/serial/serial_octeon_pcie_console.c | 365 ++++++++++++++++++++ 3 files changed, 379 insertions(+) create mode 100644 drivers/serial/serial_octeon_pcie_console.c
drivers/serial/Kconfig +13 -0
@@ -788,6 +788,19 @@ config MSM_SERIAL for example APQ8016 and MSM8916. Single baudrate is supported in current implementation (115200). +config OCTEON_SERIAL_PCIE_CONSOLE + bool "MIPS Octeon PCIe remote console" + depends on ARCH_OCTEON + depends on (DM_SERIAL && DM_STDIO) + select SYS_STDIO_DEREGISTER + select SYS_CONSOLE_IS_IN_ENV + select CONSOLE_MUX + help + This driver supports remote console over the PCIe bus when the + Octeon is running in PCIe target mode. The host program + 'oct-remote-console' can be used to connect to this console. + The console number will likely be 0 or 1. + config OMAP_SERIAL bool "Support for OMAP specific UART" depends on DM_SERIAL
drivers/serial/Makefile +1 -0
@@ -66,6 +66,7 @@ obj-$(CONFIG_MSM_SERIAL) += serial_msm.o obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o +obj-$(CONFIG_OCTEON_SERIAL_PCIE_CONSOLE) += serial_octeon_pcie_console.o obj-$(CONFIG_OWL_SERIAL) += serial_owl.o obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o obj-$(CONFIG_MTK_SERIAL) += serial_mtk.o
drivers/serial/serial_octeon_pcie_console.c new file +365 -0
365 lines not on this page · raw message
Signature · 1 line
2.31.1
PATCH 5/15 serial: serial_octeon_bootcmd.c: Add PCI remote console support
In reply to Stefan RoeseThis patch adds the PCI bootcmd feature for MIPS Octeon, which will be used by the upcoming Octeon III NIC23 board support. It enables the use of the "oct-remote-load" and "oct-remote-bootcmd" on host PC's to communicate with the PCIe target and load images into the onboard memory and issue commands.
---
drivers/serial/Kconfig | 11 ++ drivers/serial/Makefile | 1 + drivers/serial/serial_octeon_bootcmd.c | 182 +++++++++++++++++++++++++ 3 files changed, 194 insertions(+) create mode 100644 drivers/serial/serial_octeon_bootcmd.c
drivers/serial/Kconfig +11 -0
@@ -788,6 +788,17 @@ config MSM_SERIAL for example APQ8016 and MSM8916. Single baudrate is supported in current implementation (115200). +config OCTEON_SERIAL_BOOTCMD + bool "MIPS Octeon PCI remote bootcmd input" + depends on ARCH_OCTEON + depends on DM_SERIAL + select SYS_IS_IN_ENV + select CONSOLE_MUX + help + This driver supports remote input over the PCIe bus from a host + to U-Boot for entering commands. It is utilized by the host + commands 'oct-remote-load' and 'oct-remote-bootcmd'. + config OCTEON_SERIAL_PCIE_CONSOLE bool "MIPS Octeon PCIe remote console" depends on ARCH_OCTEON
drivers/serial/Makefile +1 -0
@@ -66,6 +66,7 @@ obj-$(CONFIG_MSM_SERIAL) += serial_msm.o obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o +obj-$(CONFIG_OCTEON_SERIAL_BOOTCMD) += serial_octeon_bootcmd.o obj-$(CONFIG_OCTEON_SERIAL_PCIE_CONSOLE) += serial_octeon_pcie_console.o obj-$(CONFIG_OWL_SERIAL) += serial_owl.o obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o
drivers/serial/serial_octeon_bootcmd.c new file +182 -0
182 lines not on this page · raw message
Signature · 1 line
2.31.1
PATCH 6/15 mips: octeon: cpu.c: Add arch_misc_init() for pci-console & pci-bootcmd
In reply to Stefan RoeseThis patch adds the necessary platform infrastructure code, so that the MIPS Octeon drivers "serial_octeon_pcie_console" & "serial_bootcmd" can be used. This is e.g. the bootmem initialization in a compatible way to the Marvell 2013 U-Boot, so that the exisiting PC remote tools like "oct-remote-console" & "oct-remote-load" can be used. This is be done in the newly introduced arch_misc_init(), which calls the necessary init functions when enabled.
These patches are in preparation for the MIPS Octeon NIC23 board support, which is a desktop PCIe target board enabling these features.
---
arch/mips/mach-octeon/cpu.c | 327 ++++++++++++++++++++++++++++++++++++ 1 file changed, 327 insertions(+)
arch/mips/mach-octeon/cpu.c +327 -0
@@ -3,6 +3,10 @@* Copyright (C) 2020 Marvell International Ltd. */ +#include <dm.h> +#include <dm/uclass.h> +#include <env.h> +#include <iomux.h> #include <asm/global_data.h> #include <linux/bitfield.h> #include <linux/bitops.h>
@@ -10,9 +14,24 @@#include <linux/io.h> #include <mach/clock.h> #include <mach/cavm-reg.h> +#include <mach/cvmx-bootmem.h> DECLARE_GLOBAL_DATA_PTR ; +/* +* Important: +* This address cannot be changed as the PCI console tool relies on exactly +* this value! +*/ +#define BOOTLOADER_BOOTMEM_DESC_ADDR 0x6c100 +#define BOOTLOADER_BOOTMEM_DESC_SPACE (BOOTLOADER_BOOTMEM_DESC_ADDR + 0x8) + +#define OCTEON_RESERVED_LOW_BOOT_MEM_SIZE (1024 * 1024) + +#define BOOTCMD_NAME "pci-bootcmd" +#define CONSOLE_NAME "pci-console at 0" +#define OCTEON_BOOTLOADER_LOAD_MEM_NAME "__tmp_load" +/* * TRUE for devices having registers with little-endian byte * order, FALSE for registers with native-endian byte order.
@@ -85,3 +104,311 @@ int print_cpuinfo(void)return 0 ; } + +static int octeon_bootmem_init (void ) +{ +int ret; + +/* Call old single-node func: it uses only gd->ram_size */ + ret =cvmx_bootmem_phy_mem_list_init (gd->ram_size, +OCTEON_RESERVED_LOW_BOOT_MEM_SIZE , + (void *)CKSEG0ADDR (BOOTLOADER_BOOTMEM_DESC_SPACE )); +if (!ret) { +printf ("FATAL: Error initializing bootmem list\n" ); +return -ENOSPC ; + } + +/* +* Put bootmem descriptor address in known location for host. +* Make sure it is not in kseg0, as we want physical address +*/ +writeq ((u64 )__cvmx_bootmem_internal_get_desc_ptr () &0x7fffffffull , + (void *)CKSEG0ADDR (BOOTLOADER_BOOTMEM_DESC_ADDR )); + +debug ("Reserving first 1MB of memory\n" ); + ret =cvmx_bootmem_reserve_memory (0 ,OCTEON_RESERVED_LOW_BOOT_MEM_SIZE , +"__low_reserved" ,0 ); +if (!ret) +puts ("Error reserving low 1MB of memory\n" ); + +#ifdef DEBUG +cvmx_bootmem_phy_list_print (); +#endif + +return 0 ; +} + +static int octeon_configure_load_memory (void ) +{ +char *eptr; +u32 addr; +u32 size; +int ret; + + eptr =env_get ("octeon_reserved_mem_load_size" ); +if (!eptr || !strcmp ("auto" , eptr)) { +/* +* Pick a size that we think is appropriate. +* Please note that for small memory boards this guess +* will likely not be ideal. +* Please pick a specific size for boards/applications +* that require it. +*/ +if (gd->ram_size <= (256 <<20 )) { + size =min_t (u64, (128 <<20 ), + ((gd->ram_size *2 ) /5 ) & ~0xFFFFF ); + }else { + size =min_t (u64, (256 <<20 ), + ((gd->ram_size - (256 <<20 )) /3 ) & ~0xFFFFF ); + } + }else { + size =simple_strtol (eptr,NULL ,16 ); +debug ("octeon_reserved_mem_load_size=0x%08x\n" , size); + } + +if (size) { +debug ("Linux reserved load size 0x%08x\n" , size); + eptr =env_get ("octeon_reserved_mem_load_base" ); +if (!eptr || !strcmp ("auto" , eptr)) { +u64 mem_top; +/* +* Leave some room for previous allocations that +* are made starting@the top of the low +* 256 Mbytes of DRAM +*/ +int adjust = (1 <<20 ); + +if (gd->ram_size <= (512 <<20 )) + adjust = (17 <<20 ); + +/* Put block@the top of DDR0, or bottom of DDR2 */ +if ((gd->ram_size <= (256 <<20 )) || + (size > (gd->ram_size - (256 <<20 )))) { + mem_top =min_t (u64, gd->ram_size - adjust, + (256 <<20 ) - adjust); + }else if ((gd->ram_size <= (512 <<20 )) || + (size > (gd->ram_size - (512 <<20 )))) { + mem_top =min_t (u64, gd->ram_size - adjust, + (512 <<20 ) - adjust); + }else { +/* +* We have enough room, so set +* mem_top so that the block is +*@the base of the DDR2 +* segment +*/ + mem_top = (512 <<20 ) + size; + } + +/* +* Adjust for boot bus memory hole on OCTEON II +* and later. +*/ +if ((gd->ram_size > (256 <<20 ))) + mem_top += (256 <<20 ); + +debug ("Adjusted memory top is 0x%llx\n" , mem_top); + addr = mem_top - size; +if (addr > (512 <<20 )) + addr = (512 <<20 ); +if ((addr >= (256 <<20 )) && addr < (512 <<20 )) { +/* +* The address landed in the boot-bus +* memory hole. Dig it out of the hole. +*/ + addr = (512 <<20 ); + } + }else { + addr =simple_strtol (eptr,NULL ,16 ); + } + + ret =cvmx_bootmem_phy_named_block_alloc (size, addr, + addr + size,0 , +OCTEON_BOOTLOADER_LOAD_MEM_NAME , +0 ); +if (ret <0 ) { +printf ("ERROR: Unable to allocate bootloader reserved memory (addr: 0x%x, size: 0x%x).\n" , + addr, size); + }else { +/* +* Set default load address to base of memory +* reserved for loading. The setting of the +* env. variable also sets the load_addr global +* variable. +* This environment variable is overridden each +* boot if a reserved block is created. +*/ +char str[20 ]; + +snprintf (str,sizeof (str),"0x%x" , addr); +env_set ("loadaddr" , str); +debug ("Setting load address to 0x%08x, size 0x%x\n" , + addr, size); + } +return 0 ; + } + +printf ("WARNING: No reserved memory for image loading.\n" ); +return -1 ; +} + +static int init_pcie_console (void ) +{ +char *stdinname =env_get ("stdin" ); +char *stdoutname =env_get ("stdout" ); +char *stderrname =env_get ("stderr" ); +struct udevice *pcie_console_dev =NULL ; +bool stdin_set, stdout_set, stderr_set; +char iomux_name[128 ]; +int ret =0 ; + +debug ("%s: stdin: %s, stdout: %s, stderr: %s\n" , __func__, stdinname, + stdoutname, stderrname); +if (!stdinname) { +env_set ("stdin" ,"serial" ); + stdinname =env_get ("stdin" ); + } +if (!stdoutname) { +env_set ("stdout" ,"serial" ); + stdoutname =env_get ("stdout" ); + } +if (!stderrname) { +env_set ("stderr" ,"serial" ); + stderrname =env_get ("stderr" ); + } + +if (!stdinname || !stdoutname || !stderrname) { +printf ("%s: Error setting environment variables for serial\n" , + __func__); +return -1 ; + } + + stdin_set = !!strstr (stdinname,CONSOLE_NAME ); + stdout_set = !!strstr (stdoutname,CONSOLE_NAME ); + stderr_set = !!strstr (stderrname,CONSOLE_NAME ); + +log_debug ("stdin: %d, \"%s\", stdout: %d, \"%s\", stderr: %d, \"%s\"\n" , + stdin_set, stdinname, stdout_set, stdoutname, + stderr_set, stderrname); + ret =uclass_get_device_by_name (UCLASS_SERIAL ,CONSOLE_NAME , + &pcie_console_dev); +if (ret || !pcie_console_dev) { +debug ("%s: No PCI console device %s found\n" , __func__, +CONSOLE_NAME ); +return 0 ; + } + +if (stdin_set) +strncpy (iomux_name, stdinname,sizeof (iomux_name)); +else +snprintf (iomux_name,sizeof (iomux_name),"%s,%s" , + stdinname, pcie_console_dev->name); + + ret =iomux_doenv (stdin, iomux_name); +if (ret) { +log_err ("%s: Error setting I/O stdin MUX to %s\n" , + __func__, iomux_name); +return ret; + } + +if (!stdin_set) +env_set ("stdin" , iomux_name); + +if (stdout_set) +strncpy (iomux_name, stdoutname,sizeof (iomux_name)); +else +snprintf (iomux_name,sizeof (iomux_name),"%s,%s" , stdoutname, + pcie_console_dev->name); + + ret =iomux_doenv (stdout, iomux_name); +if (ret) { +log_err ("%s: Error setting I/O stdout MUX to %s\n" , + __func__, iomux_name); +return ret; + } +if (!stdout_set) +env_set ("stdout" , iomux_name); + +if (stderr_set) +strncpy (iomux_name, stderrname,sizeof (iomux_name)); +else +snprintf (iomux_name,sizeof (iomux_name),"%s,%s" , stderrname, + pcie_console_dev->name); + + ret =iomux_doenv (stderr, iomux_name); +if (ret) { +log_err ("%s: Error setting I/O stderr MUX to %s\n" , + __func__, iomux_name); +return ret; + } + +if (!stderr_set) +env_set ("stderr" , iomux_name); + +debug ("%s: stdin: %s, stdout: %s, stderr: %s, ret: %d\n" , + __func__,env_get ("stdin" ),env_get ("stdout" ), +env_get ("stderr" ), ret); + +return ret; +} + +static int init_bootcmd_console (void ) +{ +char *stdinname =env_get ("stdin" ); +struct udevice *bootcmd_dev =NULL ; +bool stdin_set; +char iomux_name[128 ]; +int ret =0 ; + +debug ("%s: stdin before: %s\n" , __func__, + stdinname ? stdinname :"NONE" ); +if (!stdinname) { +env_set ("stdin" ,"serial" ); + stdinname =env_get ("stdin" ); + } + stdin_set = !!strstr (stdinname,BOOTCMD_NAME ); + ret =uclass_get_device_by_driver (UCLASS_SERIAL , +DM_DRIVER_GET (octeon_bootcmd), + &bootcmd_dev); +if (ret) { +log_err ("%s: Error getting %s serial class\n" , __func__, +BOOTCMD_NAME ); + }else if (bootcmd_dev) { +if (stdin_set) +strncpy (iomux_name, stdinname,sizeof (iomux_name)); +else +snprintf (iomux_name,sizeof (iomux_name),"%s,%s" , + stdinname, bootcmd_dev->name); + ret =iomux_doenv (stdin, iomux_name); +if (ret) +log_err ("%s: Error %d enabling the PCI bootcmd input console \"%s\"\n" , + __func__, ret, iomux_name); +if (!stdin_set) +env_set ("stdin" , iomux_name); + } + +debug ("%s: Set iomux and stdin to %s (ret: %d)\n" , + __func__, iomux_name, ret); +return ret; +} + +int arch_misc_init (void ) +{ +int ret; + + ret =octeon_bootmem_init (); +if (ret) +return ret; + + ret =octeon_configure_load_memory (); +if (ret) +return ret; + +if (CONFIG_IS_ENABLED (OCTEON_SERIAL_PCIE_CONSOLE )) +init_pcie_console (); + +if (CONFIG_IS_ENABLED (OCTEON_SERIAL_BOOTCMD )) +init_bootcmd_console (); + +return 0 ; +}
Signature · 1 line
2.31.1
PATCH 7/15 mips: octeon: cpu.c: Enable AHCI/SATA support
In reply to Stefan RoeseFor easy AHCI/ SATA integration, this patch adds board_ahci_enable() for the MVEBU AHCI driver, which will be used by this platform. This platform specific "enable" function will setup the proper endian swapping in the AHCI controller so that it can be used by the common AHCI code.
Additionally the endian swizzle entry for AHCI in octeon_should_swizzle_table[] is removed, as this enabled the original lowlevel code function, e.g. octeon_configure_qlm(), for the QLM setup to work correctly.
---
arch/mips/mach-octeon/cpu.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
arch/mips/mach-octeon/cpu.c +20 -1
@@ -15,6 +15,8 @@#include <mach/clock.h> #include <mach/cavm-reg.h> #include <mach/cvmx-bootmem.h> +#include <mach/cvmx-regs.h> +#include <mach/cvmx-sata-defs.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -49,7 +51,6 @@ const bool octeon_should_swizzle_table[256] = { [0x1e] = true, /* PCI mmio window */ [0x68] = true, /* OCTEON III USB */ [0x69] = true, /* OCTEON III USB */ - [0x6c] = true, /* OCTEON III SATA */ [0x6f] = true, /* OCTEON II USB */ };
@@ -412,3 +413,21 @@ int arch_misc_init(void)return 0 ; } + +int board_ahci_enable (void ) +{ +cvmx_sata_uctl_shim_cfg_t shim_cfg; + +/* +* Configure proper endian swapping for the AHCI port so that the +* common AHCI code can be used +*/ + shim_cfg.u64 =csr_rd (CVMX_SATA_UCTL_SHIM_CFG ); + shim_cfg.s.dma_endian_mode =1 ; +/* Use 1 for LE mode when running BE, or 3 for BE mode running BE */ + shim_cfg.s.csr_endian_mode =3 ;/* Don't byte swap */ + shim_cfg.s.dma_read_cmd =1 ;/* No allocate L2C */ +csr_wr (CVMX_SATA_UCTL_SHIM_CFG , shim_cfg.u64); + +return 0 ; +}
Signature · 1 line
2.31.1
PATCH 8/15 sata: ahci_mvebu.c: Enable AHCI/SATA driver for MIPS Octeon
In reply to Stefan RoeseThis patch enables the usage of the MVEBU AHCI/SATA driver. The only changes necessary to support MIPS Octeon via DT based probing are, to add the compatible DT property and the use of dev_remap_addr() so that the correct mapped address is used in the Octeon case (phys != virt).
Please note that this driver supports the usage of the "scsi" command and not the "sata" command, since it does not provide an own "scan" function, which is needed for the "sata" cmd support.
---
drivers/ata/Kconfig | 2 +- drivers/ata/ahci_mvebu.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/ata/Kconfig +1 -1
@@ -121,7 +121,7 @@ config SUNXI_AHCI config AHCI_MVEBU bool "Marvell EBU AHCI SATA support" - depends on ARCH_MVEBU + depends on ARCH_MVEBU || ARCH_OCTEON depends on AHCI select SCSI_AHCI select DM_SCSI
drivers/ata/ahci_mvebu.c +2 -1
@@ -39,7 +39,7 @@ static int mvebu_ahci_probe(struct udevice *dev)*/ board_ahci_enable (); -ahci_probe_scsi (dev,dev_read_addr (dev)); +ahci_probe_scsi (dev, (ulong )dev_remap_addr (dev));return 0 ; }
@@ -48,6 +48,7 @@ static const struct udevice_id mvebu_ahci_ids[] = { { .compatible = "marvell,armada-380-ahci" }, { .compatible = "marvell,armada-3700-ahci" }, { .compatible = "marvell,armada-8k-ahci" }, + { .compatible = "cavium,octeon-7130-ahci" }, { } };
Signature · 1 line
2.31.1
PATCH 9/15 ata: ahci: Fix usage on big-endian platforms
In reply to Stefan RoeseThis patch adds a few missing virt_to_phys() to use the correct physical address for DMA operations in the common AHCI code. This is done to support the big-endian MIPS Octeon platform.
Additionally the code a cleaned up a bit (remove some empty lines) and made a bit better readable.
---
drivers/ata/ahci.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-)
drivers/ata/ahci.c +11 -12
@@ -500,6 +500,7 @@ static int ahci_fill_sg(struct ahci_uc_priv *uc_priv, u8 port, {struct ahci_ioports *pp = &(uc_priv->port[port]);struct ahci_sg *ahci_sg = pp->cmd_tbl_sg; +phys_addr_t pa =virt_to_phys (buf);u32 sg_count;int i;
@@ -510,9 +511,6 @@ static int ahci_fill_sg(struct ahci_uc_priv *uc_priv, u8 port, }for (i =0 ; i < sg_count; i++) { -/* We assume virt=phys */ -phys_addr_t pa = (unsigned long )buf + i *MAX_DATA_BYTE_COUNT ; - ahci_sg->addr =cpu_to_le32 (lower_32_bits (pa)); ahci_sg->addr_hi =cpu_to_le32 (upper_32_bits (pa));if (ahci_sg->addr_hi && !(uc_priv->cap &AHCI_CAP_S64A )) {
@@ -520,25 +518,26 @@ static int ahci_fill_sg(struct ahci_uc_priv *uc_priv, u8 port,return -1 ; } ahci_sg->flags_size =cpu_to_le32 (0x3fffff & - (buf_len <MAX_DATA_BYTE_COUNT - ? (buf_len -1 ) - : (MAX_DATA_BYTE_COUNT -1 ))); + (buf_len <MAX_DATA_BYTE_COUNT ? + (buf_len -1 ) : + (MAX_DATA_BYTE_COUNT -1 ))); ahci_sg++; buf_len -=MAX_DATA_BYTE_COUNT ; + pa +=MAX_DATA_BYTE_COUNT ; }return sg_count; } -static void ahci_fill_cmd_slot (struct ahci_ioports *pp,u32 opts) { +phys_addr_t pa =virt_to_phys ((void *)pp->cmd_tbl); + pp->cmd_slot->opts =cpu_to_le32 (opts); pp->cmd_slot->status =0 ; - pp->cmd_slot->tbl_addr =cpu_to_le32 ((u32 )pp->cmd_tbl &0xffffffff ); + pp->cmd_slot->tbl_addr =cpu_to_le32 (lower_32_bits (pa));#ifdef CONFIG_PHYS_64BIT - pp->cmd_slot->tbl_addr_hi = -cpu_to_le32 ((u32)(((pp->cmd_tbl) >>16 ) >>16 )); + pp->cmd_slot->tbl_addr_hi =cpu_to_le32 (upper_32_bits (pa));#endif }
@@ -674,12 +673,12 @@ static int ahci_device_data_io(struct ahci_uc_priv *uc_priv, u8 port, u8 *fis,ahci_dcache_invalidate_range ((unsigned long )buf, (unsigned long )buf_len); -debug ("%s: %d byte transferred.\n" , __func__, pp->cmd_slot->status); +debug ("%s: %d byte transferred.\n" , __func__, +le32_to_cpu (pp->cmd_slot->status));return 0 ; } -static char *ata_id_strcpy (u16 *target,u16 *src,int len) {int i;
Signature · 1 line
2.31.1
PATCH 10/15 scsi: Add ata_swap_buf_le16() to support big-endian platforms
In reply to Stefan RoeseOtherwise the output will look like this on MIPS Octeon NIC23:
Device 0: (0:0) Vendor: ATA Prod.: aSDnsi klUrt aII Rev: 4X11
Type: Hard Disk
Capacity: 457862.8 MB = 447.1 GB (937703088 x 512)
instead of this version:
Device 0: (0:0) Vendor: TA Prod.: SanDisk Ultra II Rev: X411
Type: Hard Disk
Capacity: 457862.8 MB = 447.1 GB (937703088 x 512)
---
drivers/scsi/scsi.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/scsi/scsi.c +6 -0
@@ -9,6 +9,7 @@#include <bootstage.h> #include <dm.h> #include <env.h> +#include <libata.h> #include <log.h> #include <part.h> #include <pci.h>
@@ -594,6 +595,11 @@ static int do_scsi_scan_one(struct udevice *dev, int id, int lun, bool verbose)memcpy (&bdesc->vendor, &bd.vendor,sizeof (bd.vendor));memcpy (&bdesc->product, &bd.product,sizeof (bd.product));memcpy (&bdesc->revision, &bd.revision,sizeof (bd.revision)); +if (IS_ENABLED (CONFIG_SYS_BIG_ENDIAN )) { +ata_swap_buf_le16 ((u16 *)&bdesc->vendor,sizeof (bd.vendor) /2 ); +ata_swap_buf_le16 ((u16 *)&bdesc->product,sizeof (bd.product) /2 ); +ata_swap_buf_le16 ((u16 *)&bdesc->revision,sizeof (bd.revision) /2 ); + }if (verbose) {printf (" Device %d: " , bdesc->devnum);
Signature · 1 line
2.31.1
PATCH 11/15 mips: octeon: mrvl, cn73xx.dtsi: Add AHCI/SATA DT node
In reply to Stefan RoeseAdd the AHCI compatible SATA DT node to the Octeon CN73xx dtsi file.
---
arch/mips/dts/mrvl,cn73xx.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/mips/dts/mrvl,cn73xx.dtsi +19 -0
@@ -246,5 +246,24 @@ 0x02000000 0x00000000 0xe0000000 0x00011b00 0xe0000000 0x00000000 0x10000000 /* non-prefetchable memory */ 0x43000000 0x00011c00 0x00000000 0x00011c00 0x00000000 0x00000010 0x00000000>;/* prefetchable memory */ }; + + uctl at 118006c000000 { + compatible = "cavium,octeon-7130-sata-uctl", "simple-bus"; + reg = <0x11800 0x6c000000 0x0 0x100>; + ranges; /* Direct mapping */ + #address-cells = <2>; + #size-cells = <2>; + portmap = <0x3>; + staggered-spinup; + cavium,qlm-trim = "4,sata"; + + sata: sata at 16c0000000000 { + compatible = "cavium,octeon-7130-ahci"; + reg = <0x16c00 0x00000000 0x0 0x200>; + #address-cells = <2>; + #size-cells = <2>; + interrupts = <0x6c010 4>; + }; + }; }; };
Signature · 1 line
2.31.1
PATCH 12/15 mips: octeon: Add Octeon III NIC23 board support
In reply to Stefan RoeseThis patch adds the basic support for the PCIe target board equipped with the Octeon III CN2350 SoC.
---
arch/mips/dts/Makefile | 1 + arch/mips/dts/mrvl,octeon-nic23.dts | 162 +++++++++++++++ arch/mips/mach-octeon/Kconfig | 7 + board/Marvell/octeon_nic23/Kconfig | 19 ++ board/Marvell/octeon_nic23/MAINTAINERS | 7 + board/Marvell/octeon_nic23/Makefile | 8 + board/Marvell/octeon_nic23/board.c | 106 ++++++++++ board/Marvell/octeon_nic23/board_ddr.h | 269 +++++++++++++++++++++++++ configs/octeon_nic23_defconfig | 70 +++++++ include/configs/octeon_nic23.h | 21 ++ 10 files changed, 670 insertions(+) create mode 100644 arch/mips/dts/mrvl,octeon-nic23.dts create mode 100644 board/Marvell/octeon_nic23/Kconfig create mode 100644 board/Marvell/octeon_nic23/MAINTAINERS create mode 100644 board/Marvell/octeon_nic23/Makefile create mode 100644 board/Marvell/octeon_nic23/board.c create mode 100644 board/Marvell/octeon_nic23/board_ddr.h create mode 100644 configs/octeon_nic23_defconfig create mode 100644 include/configs/octeon_nic23.h
arch/mips/dts/Makefile +1 -0
@@ -20,6 +20,7 @@ dtb-$(CONFIG_BOARD_MT7628_RFB) += mediatek,mt7628-rfb.dtb dtb-$(CONFIG_BOARD_GARDENA_SMART_GATEWAY_MT7688) += gardena-smart-gateway-mt7688.dtb dtb-$(CONFIG_BOARD_LINKIT_SMART_7688) += linkit-smart-7688.dtb dtb-$(CONFIG_TARGET_OCTEON_EBB7304) += mrvl,octeon-ebb7304.dtb +dtb-$(CONFIG_TARGET_OCTEON_NIC23) += mrvl,octeon-nic23.dtb dtb-$(CONFIG_BOARD_NETGEAR_CG3100D) += netgear,cg3100d.dtb dtb-$(CONFIG_BOARD_NETGEAR_DGND3700V2) += netgear,dgnd3700v2.dtb dtb-$(CONFIG_BOARD_SAGEM_FAST1704) += sagem,f at st1704.dtb
arch/mips/dts/mrvl,octeon-nic23.dts new file +162 -0
162 lines not on this page · raw message
arch/mips/mach-octeon/Kconfig +7 -0
@@ -41,6 +41,12 @@ config TARGET_OCTEON_EBB7304 help Choose this for the Octeon EBB7304 board +config TARGET_OCTEON_NIC23 + bool "Marvell Octeon NIC23" + select OCTEON_CN73XX + help + Choose this for the Octeon NIC23 board + endchoice config SYS_DCACHE_SIZE
@@ -60,5 +66,6 @@ config SYS_PCI_64BIT default y source "board/Marvell/octeon_ebb7304/Kconfig" +source "board/Marvell/octeon_nic23/Kconfig" endmenu
board/Marvell/octeon_nic23/Kconfig new file +19 -0
@@ -0,0 +1,19 @@ +if TARGET_OCTEON_NIC23 + +config SYS_BOARD + string + default "octeon_nic23" + +config SYS_VENDOR + string + default "Marvell" + +config SYS_CONFIG_NAME + string + default "octeon_nic23" + +config DEFAULT_DEVICE_TREE + string + default "mrvl,octeon-nic23" + +endif
board/Marvell/octeon_nic23/MAINTAINERS new file +7 -0
@@ -0,0 +1,7 @@ +OCTEON_NIC23 BOARD +M: Aaron Williams <[email protected]> +S: Maintained +F: board/Marvell/octeon_nic23/* +F: configs/octeon_nic23_defconfig +F: include/configs/octeon_nic23.h +F: arch/mips/dts/mrvl,octeon-nic23.dts
board/Marvell/octeon_nic23/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# +# Copyright (C) 2021 Stefan Roese <[email protected]> +# Copyright (C) 2019-2020 Marvell International Ltd. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := board.o
board/Marvell/octeon_nic23/board.c new file +106 -0
106 lines not on this page · raw message
board/Marvell/octeon_nic23/board_ddr.h new file +269 -0
269 lines not on this page · raw message
configs/octeon_nic23_defconfig new file +70 -0
70 lines not on this page · raw message
include/configs/octeon_nic23.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright (C) 2019-2020 +* Marvell <www.marvell.com> +*/ + +#ifndef __CONFIG_H__ +#define __CONFIG_H__ + +/* +* SATA/SCSI/AHCI configuration +*/ +/* AHCI support Definitions */ +/** Enable 48-bit SATA addressing */ +#define CONFIG_LBA48 +/** Enable 64-bit addressing */ +#define CONFIG_SYS_64BIT_LBA + +#include "octeon_common.h" + +#endif /* __CONFIG_H__ */
Signature · 1 line
2.31.1
PATCH 13/15 mips: octeon: dts/dtsi: Change UART DT node to use clocks property
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
We already have a clock driver for MIPS Octeon. This patch changes the Octeon DT nodes to supply the clock property via the clock driver instead of using an hard-coded value, which is not correct in all cases.
---
arch/mips/dts/mrvl,cn73xx.dtsi | 2 ++ arch/mips/dts/mrvl,octeon-ebb7304.dts | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-)
arch/mips/dts/mrvl,cn73xx.dtsi +2 -0
@@ -97,6 +97,7 @@ uart0: serial at 1180000000800 { compatible = "cavium,octeon-3860-uart","ns16550"; reg = <0x11800 0x00000800 0x0 0x400>; + clocks = <&clk OCTEON_CLK_IO>; clock-frequency = <0>; current-speed = <115200>; reg-shift = <3>;
@@ -106,6 +107,7 @@ uart1: serial at 1180000000c00 { compatible = "cavium,octeon-3860-uart","ns16550"; reg = <0x11800 0x00000c00 0x0 0x400>; + clocks = <&clk OCTEON_CLK_IO>; clock-frequency = <0>; current-speed = <115200>; reg-shift = <3>;
arch/mips/dts/mrvl,octeon-ebb7304.dts +0 -4
@@ -112,10 +112,6 @@ }; }; -&uart0 { - clock-frequency = <1200000000>; -}; - &i2c0 { u-boot,dm-pre-reloc; /* Needed early for DDR SPD EEPROM */ clock-frequency = <100000>;
Signature · 1 line
2.31.1
PATCH 14/15 mips: octeon: ebb7304: Add support for some I2C devices
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
This patch adds support for the following I2C devices connected to I2C bus 0 on the Octeon EBB7304:
- Dallas DS1337 RTC
- TLV EEPROM
---
arch/mips/dts/mrvl,octeon-ebb7304.dts | 11 +++++++++++ configs/octeon_ebb7304_defconfig | 4 ++++ 2 files changed, 15 insertions(+)
arch/mips/dts/mrvl,octeon-ebb7304.dts +11 -0
@@ -115,6 +115,17 @@ &i2c0 { u-boot,dm-pre-reloc; /* Needed early for DDR SPD EEPROM */ clock-frequency = <100000>; + + rtc at 68 { + compatible = "dallas,ds1337"; + reg = <0x68>; + }; + + tlv-eeprom at 56 { + compatible = "atmel,24c256", "microchip,24lc256"; + reg = <0x56>; + pagesize = <64>; + }; }; &i2c1 {
configs/octeon_ebb7304_defconfig +4 -0
@@ -9,6 +9,7 @@ CONFIG_DEBUG_UART_CLOCK=1200000000 CONFIG_ARCH_OCTEON=y # CONFIG_MIPS_CACHE_SETUP is not set # CONFIG_MIPS_CACHE_DISABLE is not set +CONFIG_MIPS_RELOCATION_TABLE_SIZE=0xc000 CONFIG_DEBUG_UART=y CONFIG_OF_BOARD_FIXUP=y CONFIG_SYS_CONSOLE_INFO_QUIET=y
@@ -23,6 +24,7 @@ CONFIG_CMD_PCI=y CONFIG_CMD_USB=y CONFIG_CMD_DHCP=y CONFIG_CMD_PING=y +CONFIG_CMD_RTC=y CONFIG_CMD_TIME=y CONFIG_CMD_EXT4=y CONFIG_CMD_FAT=y
@@ -57,6 +59,8 @@ CONFIG_DM_REGULATOR_FIXED=y CONFIG_RAM=y CONFIG_RAM_OCTEON=y CONFIG_RAM_OCTEON_DDR4=y +CONFIG_DM_RTC=y +CONFIG_RTC_DS1307=y CONFIG_DEBUG_UART_SHIFT=3 CONFIG_DEBUG_UART_ANNOUNCE=y CONFIG_SYS_NS16550=y
Signature · 1 line
2.31.1
PATCH 15/15 mips: octeon: octeon_ebb7304_defconfig: Enable USB storage support
In reply to Stefan RoeseThis patch enables USB storage support with the necessary partition support on the MIPS Octeon EBB7304.
---
configs/octeon_ebb7304_defconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
configs/octeon_ebb7304_defconfig +4 -1
@@ -29,7 +29,9 @@ CONFIG_CMD_TIME=y CONFIG_CMD_EXT4=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y -# CONFIG_DOS_PARTITION is not set +CONFIG_AMIGA_PARTITION=y +CONFIG_EFI_PARTITION=y +CONFIG_PARTITION_TYPE_GUID=y CONFIG_ENV_IS_IN_FLASH=y CONFIG_ENV_ADDR=0x1FBFE000 CONFIG_CLK=y
@@ -72,6 +74,7 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_STORAGE=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y
Signature · 1 line
2.31.1
cover mips: octeon: MIPS Octeon misc updates: NIC23, AHCI, serial-remote tools etc
In reply to Stefan RoeseAm Mittwoch, den 07.04.2021, 09:12 +0200 schrieb Stefan Roese:
Quoted 34 lines
This patchset adds the following updates / fixes for Marvell MIPS Octeon:
- MIPS Octeon NIC23 base support
- Addserial_octeon_pcie_consoleto support the Marvell remote tool "oct-remote-console"
- Addserial_octeon_bootcmdto support the Marvell remote tools "oct-remote-load" & "oct-remote-bootcmd"
- Fix AHCI driver to support big-endian platforms
- Misc minor updates & fixes to the MIPS Octeon platform code
- EBB7304: Enable USB storage support
- EBB7304: Add I2C support (devices & commands)This patchset requires the MIPS Octeon serdes & PCIe patchset which was
posted to the list 2020-12-11.Thanks,
StefanAaron Williams (2):
mips: octeon: dts/dtsi: Change UART DT node to use clocks property
mips: octeon: ebb7304: Add support for some I2C devicesStefan Roese (13):
mips: octeon: MoveCVMX_SYNCfromocteon_ddr.htocvmx-regs.h
mips: octeon: cvmx-bootmem: Fix compare in "if" statement
mips: octeon:cvmx-coremask.h: Fixcvmx_coremask_dprint()with
DEBUG
defined
serial:serial_octeon_pcie_console.c: Add PCI remote console
support
serial:serial_octeon_bootcmd.c: Add PCI remote console support
mips: octeon:cpu.c: Addarch_misc_init()for pci-console &
Quoted 8 lines
pci-bootcmd
mips: octeon:cpu.c: Enable AHCI/SATA support
sata:ahci_mvebu.c: Enable AHCI/SATA driver for MIPS Octeon
ata: ahci: Fix usage on big-endian platforms
scsi: Addata_swap_buf_le16()to support big-endian platforms
mips: octeon: mrvl,cn73xx.dtsi: Add AHCI/SATA DT node
mips: octeon: Add Octeon III NIC23 board support
mips: octeon:octeon_ebb7304_defconfig: Enable USB storage support
series applied to u-boot-mips, thanks.
Quoted 41 lines
arch/mips/dts/Makefile | 1 + arch/mips/dts/mrvl,cn73xx.dtsi | 21 + arch/mips/dts/mrvl,octeon-ebb7304.dts | 15 +- arch/mips/dts/mrvl,octeon-nic23.dts | 162 ++++++++ arch/mips/mach-octeon/Kconfig | 7 + arch/mips/mach-octeon/cpu.c | 348 ++++++++++++++++- arch/mips/mach-octeon/cvmx-bootmem.c | 4 +- .../mach-octeon/include/mach/cvmx-coremask.h | 5 +- .../mips/mach-octeon/include/mach/cvmx-regs.h | 1 + .../mach-octeon/include/mach/octeon_ddr.h | 2 - board/Marvell/octeon_nic23/Kconfig | 19 + board/Marvell/octeon_nic23/MAINTAINERS | 7 + board/Marvell/octeon_nic23/Makefile | 8 + board/Marvell/octeon_nic23/board.c | 106 +++++ board/Marvell/octeon_nic23/board_ddr.h | 269 +++++++++++++ configs/octeon_ebb7304_defconfig | 9 +- configs/octeon_nic23_defconfig | 70 ++++ drivers/ata/Kconfig | 2 +- drivers/ata/ahci.c | 23 +- drivers/ata/ahci_mvebu.c | 3 +- drivers/scsi/scsi.c | 6 + drivers/serial/Kconfig | 24 ++ drivers/serial/Makefile | 2 + drivers/serial/serial_octeon_bootcmd.c | 182 +++++++++ drivers/serial/serial_octeon_pcie_console.c | 365 ++++++++++++++++++ include/configs/octeon_nic23.h | 21 + 26 files changed, 1656 insertions(+), 26 deletions(-) create mode 100644 arch/mips/dts/mrvl,octeon-nic23.dts create mode 100644 board/Marvell/octeon_nic23/Kconfig create mode 100644 board/Marvell/octeon_nic23/MAINTAINERS create mode 100644 board/Marvell/octeon_nic23/Makefile create mode 100644 board/Marvell/octeon_nic23/board.c create mode 100644 board/Marvell/octeon_nic23/board_ddr.h create mode 100644 configs/octeon_nic23_defconfig create mode 100644 drivers/serial/serial_octeon_bootcmd.c create mode 100644 drivers/serial/serial_octeon_pcie_console.c create mode 100644 include/configs/octeon_nic23.h
Signature · 1 line
- Daniel