Move some Octeon support files out of staging.
Subsystems (4)
cover Move some Octeon support files out of staging.
From: David Daney <[email protected]>
First patch:
In preparation for my next set of patches to add device tree support for Octeon, move some files out of drivers/staging/octeon to common location. There are two basic types of files I am moving:
1) Register definition files. Most Octeon register definition files are in arch/mips/include/asm/octeon, put the rest there too.
2) Low level packet port type probing code. This is needed by both the Ethernet driver and the code that fixes up the in-kernel device trees. Although new board pass a device tree to the kernel, support of legacy boards requires that this probing code be used to fix up an in-kernel device tree template.
Second patch:
Update support for legacy boards.
Third patch:
Seperate probing and initialization of packet ports.
Since these are MIPS architecture files we could merge via Ralf's tree if approved.
David Daney (3):
MIPS: Octeon: Move some Ethernet support files out of staging.
MIPS: Octeon: Update bootloader board type constants.
MIPS: Octeon: Rearrange CVMX files in preperation for device tree
arch/mips/cavium-octeon/executive/Makefile | 5 +
.../mips/cavium-octeon/executive}/cvmx-cmd-queue.c | 8 +-
.../mips/cavium-octeon/executive}/cvmx-fpa.c | 0
.../cavium-octeon/executive}/cvmx-helper-board.c | 38 +++--
.../cavium-octeon/executive}/cvmx-helper-fpa.c | 0
.../cavium-octeon/executive}/cvmx-helper-loop.c | 6 +-
.../cavium-octeon/executive}/cvmx-helper-npi.c | 6 +-
.../cavium-octeon/executive}/cvmx-helper-rgmii.c | 17 +-
.../cavium-octeon/executive}/cvmx-helper-sgmii.c | 18 ++-
.../cavium-octeon/executive}/cvmx-helper-spi.c | 20 ++-
.../cavium-octeon/executive}/cvmx-helper-util.c | 16 +-
.../cavium-octeon/executive}/cvmx-helper-xaui.c | 32 ++--
.../mips/cavium-octeon/executive}/cvmx-helper.c | 120 ++++++++++----
.../executive}/cvmx-interrupt-decodes.c | 10 +-
.../cavium-octeon/executive}/cvmx-interrupt-rsl.c | 4 +-
.../mips/cavium-octeon/executive}/cvmx-pko.c | 8 +-
.../mips/cavium-octeon/executive}/cvmx-spi.c | 12 +-
.../mips/include/asm}/octeon/cvmx-address.h | 0
.../mips/include/asm}/octeon/cvmx-asxx-defs.h | 0
arch/mips/include/asm/octeon/cvmx-bootinfo.h | 72 ++++++++-
.../mips/include/asm}/octeon/cvmx-cmd-queue.h | 0
.../mips/include/asm}/octeon/cvmx-config.h | 0
.../mips/include/asm}/octeon/cvmx-dbg-defs.h | 0
.../mips/include/asm}/octeon/cvmx-fau.h | 0
.../mips/include/asm}/octeon/cvmx-fpa-defs.h | 0
.../mips/include/asm}/octeon/cvmx-fpa.h | 0
.../mips/include/asm}/octeon/cvmx-gmxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-helper-board.h | 6 +
.../mips/include/asm}/octeon/cvmx-helper-fpa.h | 0
.../mips/include/asm}/octeon/cvmx-helper-loop.h | 1 +
.../mips/include/asm}/octeon/cvmx-helper-npi.h | 1 +
.../mips/include/asm}/octeon/cvmx-helper-rgmii.h | 1 +
.../mips/include/asm}/octeon/cvmx-helper-sgmii.h | 1 +
.../mips/include/asm}/octeon/cvmx-helper-spi.h | 1 +
.../mips/include/asm}/octeon/cvmx-helper-util.h | 0
.../mips/include/asm}/octeon/cvmx-helper-xaui.h | 1 +
.../mips/include/asm}/octeon/cvmx-helper.h | 1 +
.../mips/include/asm}/octeon/cvmx-ipd.h | 0
.../mips/include/asm}/octeon/cvmx-mdio.h | 0
.../mips/include/asm}/octeon/cvmx-pcsx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pcsxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pip-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pip.h | 0
.../mips/include/asm}/octeon/cvmx-pko-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pko.h | 0
.../mips/include/asm}/octeon/cvmx-pow.h | 0
.../mips/include/asm}/octeon/cvmx-scratch.h | 0
.../mips/include/asm}/octeon/cvmx-spi.h | 0
.../mips/include/asm}/octeon/cvmx-spxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-srxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-stxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-wqe.h | 0
drivers/staging/octeon/Makefile | 5 -
drivers/staging/octeon/cvmx-packet.h | 65 -------
drivers/staging/octeon/cvmx-smix-defs.h | 178 --------------------
drivers/staging/octeon/ethernet-defines.h | 2 +-
drivers/staging/octeon/ethernet-mdio.c | 4 +-
drivers/staging/octeon/ethernet-mem.c | 2 +-
drivers/staging/octeon/ethernet-rgmii.c | 4 +-
drivers/staging/octeon/ethernet-rx.c | 14 +-
drivers/staging/octeon/ethernet-rx.h | 2 +-
drivers/staging/octeon/ethernet-sgmii.c | 4 +-
drivers/staging/octeon/ethernet-spi.c | 6 +-
drivers/staging/octeon/ethernet-tx.c | 12 +-
drivers/staging/octeon/ethernet-xaui.c | 4 +-
drivers/staging/octeon/ethernet.c | 14 +-
66 files changed, 326 insertions(+), 395 deletions(-)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-cmd-queue.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-fpa.c (100%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-board.c (96%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-fpa.c (100%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-loop.c (95%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-npi.c (96%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-rgmii.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-sgmii.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-spi.c (94%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-util.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-xaui.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper.c (93%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-interrupt-decodes.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-interrupt-rsl.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-pko.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-spi.c (99%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-address.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-asxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-cmd-queue.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-config.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-dbg-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-fau.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-fpa-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-fpa.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-gmxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-board.h (96%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-fpa.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-loop.h (96%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-npi.h (96%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-rgmii.h (98%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-sgmii.h (98%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-spi.h (98%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-util.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-xaui.h (98%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper.h (99%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-ipd.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-mdio.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pcsx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pcsxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pip-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pip.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pko-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pko.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pow.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-scratch.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-spi.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-spxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-srxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-stxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-wqe.h (100%)
delete mode 100644 drivers/staging/octeon/cvmx-packet.h
delete mode 100644 drivers/staging/octeon/cvmx-smix-defs.hSignature · 1 line
1.7.2.3
PATCH 1/3 MIPS: Octeon: Move some Ethernet support files out of staging.
From: David Daney <[email protected]>
---
arch/mips/cavium-octeon/executive/Makefile | 5 +
.../mips/cavium-octeon/executive}/cvmx-cmd-queue.c | 8 +-
.../mips/cavium-octeon/executive}/cvmx-fpa.c | 0
.../cavium-octeon/executive}/cvmx-helper-board.c | 18 +--
.../cavium-octeon/executive}/cvmx-helper-fpa.c | 0
.../cavium-octeon/executive}/cvmx-helper-loop.c | 6 +-
.../cavium-octeon/executive}/cvmx-helper-npi.c | 6 +-
.../cavium-octeon/executive}/cvmx-helper-rgmii.c | 17 +-
.../cavium-octeon/executive}/cvmx-helper-sgmii.c | 12 +-
.../cavium-octeon/executive}/cvmx-helper-spi.c | 10 +-
.../cavium-octeon/executive}/cvmx-helper-util.c | 16 +-
.../cavium-octeon/executive}/cvmx-helper-xaui.c | 10 +-
.../mips/cavium-octeon/executive}/cvmx-helper.c | 27 ++--
.../executive}/cvmx-interrupt-decodes.c | 10 +-
.../cavium-octeon/executive}/cvmx-interrupt-rsl.c | 4 +-
.../mips/cavium-octeon/executive}/cvmx-pko.c | 8 +-
.../mips/cavium-octeon/executive}/cvmx-spi.c | 12 +-
.../mips/include/asm}/octeon/cvmx-address.h | 0
.../mips/include/asm}/octeon/cvmx-asxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-cmd-queue.h | 0
.../mips/include/asm}/octeon/cvmx-config.h | 0
.../mips/include/asm}/octeon/cvmx-dbg-defs.h | 0
.../mips/include/asm}/octeon/cvmx-fau.h | 0
.../mips/include/asm}/octeon/cvmx-fpa-defs.h | 0
.../mips/include/asm}/octeon/cvmx-fpa.h | 0
.../mips/include/asm}/octeon/cvmx-gmxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-helper-board.h | 0
.../mips/include/asm}/octeon/cvmx-helper-fpa.h | 0
.../mips/include/asm}/octeon/cvmx-helper-loop.h | 0
.../mips/include/asm}/octeon/cvmx-helper-npi.h | 0
.../mips/include/asm}/octeon/cvmx-helper-rgmii.h | 0
.../mips/include/asm}/octeon/cvmx-helper-sgmii.h | 0
.../mips/include/asm}/octeon/cvmx-helper-spi.h | 0
.../mips/include/asm}/octeon/cvmx-helper-util.h | 0
.../mips/include/asm}/octeon/cvmx-helper-xaui.h | 0
.../mips/include/asm}/octeon/cvmx-helper.h | 0
.../mips/include/asm}/octeon/cvmx-ipd.h | 0
.../mips/include/asm}/octeon/cvmx-mdio.h | 0
.../mips/include/asm}/octeon/cvmx-pcsx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pcsxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pip-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pip.h | 0
.../mips/include/asm}/octeon/cvmx-pko-defs.h | 0
.../mips/include/asm}/octeon/cvmx-pko.h | 0
.../mips/include/asm}/octeon/cvmx-pow.h | 0
.../mips/include/asm}/octeon/cvmx-scratch.h | 0
.../mips/include/asm}/octeon/cvmx-spi.h | 0
.../mips/include/asm}/octeon/cvmx-spxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-srxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-stxx-defs.h | 0
.../mips/include/asm}/octeon/cvmx-wqe.h | 0
drivers/staging/octeon/Makefile | 5 -
drivers/staging/octeon/cvmx-packet.h | 65 -------
drivers/staging/octeon/cvmx-smix-defs.h | 178 --------------------
drivers/staging/octeon/ethernet-defines.h | 2 +-
drivers/staging/octeon/ethernet-mdio.c | 4 +-
drivers/staging/octeon/ethernet-mem.c | 2 +-
drivers/staging/octeon/ethernet-rgmii.c | 4 +-
drivers/staging/octeon/ethernet-rx.c | 14 +-
drivers/staging/octeon/ethernet-rx.h | 2 +-
drivers/staging/octeon/ethernet-sgmii.c | 4 +-
drivers/staging/octeon/ethernet-spi.c | 6 +-
drivers/staging/octeon/ethernet-tx.c | 12 +-
drivers/staging/octeon/ethernet-xaui.c | 4 +-
drivers/staging/octeon/ethernet.c | 14 +-
65 files changed, 117 insertions(+), 368 deletions(-)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-cmd-queue.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-fpa.c (100%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-board.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-fpa.c (100%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-loop.c (95%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-npi.c (96%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-rgmii.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-sgmii.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-spi.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-util.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper-xaui.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-helper.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-interrupt-decodes.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-interrupt-rsl.c (97%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-pko.c (98%)
rename {drivers/staging/octeon => arch/mips/cavium-octeon/executive}/cvmx-spi.c (99%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-address.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-asxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-cmd-queue.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-config.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-dbg-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-fau.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-fpa-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-fpa.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-gmxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-board.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-fpa.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-loop.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-npi.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-rgmii.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-sgmii.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-spi.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-util.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper-xaui.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-helper.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-ipd.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-mdio.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pcsx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pcsxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pip-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pip.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pko-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pko.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-pow.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-scratch.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-spi.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-spxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-srxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-stxx-defs.h (100%)
rename {drivers/staging => arch/mips/include/asm}/octeon/cvmx-wqe.h (100%)
delete mode 100644 drivers/staging/octeon/cvmx-packet.h
delete mode 100644 drivers/staging/octeon/cvmx-smix-defs.harch/mips/cavium-octeon/executive/Makefile +5 -0
@@ -10,5 +10,10 @@ # obj-y += cvmx-bootmem.o cvmx-l2c.o cvmx-sysinfo.o octeon-model.o +obj-y += cvmx-pko.o cvmx-spi.o cvmx-cmd-queue.o \ + cvmx-helper-board.o cvmx-helper.o cvmx-helper-xaui.o \ + cvmx-helper-rgmii.o cvmx-helper-sgmii.o cvmx-helper-npi.o \ + cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \ + cvmx-interrupt-decodes.o cvmx-interrupt-rsl.o obj-$(CONFIG_CAVIUM_OCTEON_HELPER) += cvmx-helper-errata.o cvmx-helper-jtag.o
arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c renamed from drivers/staging/octeon/cvmx-cmd-queue.c +4 -4
@@ -34,13 +34,13 @@#include <asm/octeon/octeon.h> -#include "cvmx-config.h" -#include "cvmx-fpa.h" -#include "cvmx-cmd-queue.h" +#include <asm/octeon/cvmx-config.h> +#include <asm/octeon/cvmx-fpa.h> +#include <asm/octeon/cvmx-cmd-queue.h> #include <asm/octeon/cvmx-npei-defs.h> #include <asm/octeon/cvmx-pexp-defs.h> -#include "cvmx-pko-defs.h" +#include <asm/octeon/cvmx-pko-defs.h> /** * This application uses this pointer to access the global queue
arch/mips/cavium-octeon/executive/cvmx-fpa.c renamed from drivers/staging/octeon/cvmx-fpa.c +0 -0
arch/mips/cavium-octeon/executive/cvmx-helper-board.c renamed from drivers/staging/octeon/cvmx-helper-board.c +7 -11
@@ -34,16 +34,16 @@#include <asm/octeon/octeon.h> #include <asm/octeon/cvmx-bootinfo.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-mdio.h" +#include <asm/octeon/cvmx-mdio.h> -#include "cvmx-helper.h" -#include "cvmx-helper-util.h" -#include "cvmx-helper-board.h" +#include <asm/octeon/cvmx-helper.h> +#include <asm/octeon/cvmx-helper-util.h> +#include <asm/octeon/cvmx-helper-board.h> -#include "cvmx-gmxx-defs.h" -#include "cvmx-asxx-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> +#include <asm/octeon/cvmx-asxx-defs.h> /** * cvmx_override_board_link_get(int ipd_port) is a function
@@ -493,7 +493,6 @@ int cvmx_helper_board_link_set_phy(int phy_addr,cvmx_mdio_phy_reg_control_t reg_control;cvmx_mdio_phy_reg_status_t reg_status;cvmx_mdio_phy_reg_autoneg_adver_t reg_autoneg_adver; -cvmx_mdio_phy_reg_extended_status_t reg_extended_status;cvmx_mdio_phy_reg_control_1000_t reg_control_1000; reg_status.u16 =
@@ -508,9 +507,6 @@ int cvmx_helper_board_link_set_phy(int phy_addr, reg_autoneg_adver.s.advert_100base_tx_full =0 ; reg_autoneg_adver.s.advert_100base_tx_half =0 ;if (reg_status.s.capable_extended_status) { - reg_extended_status.u16 = -cvmx_mdio_read (phy_addr >>8 , phy_addr &0xff , -CVMX_MDIO_PHY_REG_EXTENDED_STATUS ); reg_control_1000.u16 =cvmx_mdio_read (phy_addr >>8 , phy_addr &0xff ,CVMX_MDIO_PHY_REG_CONTROL_1000 );
arch/mips/cavium-octeon/executive/cvmx-helper-fpa.c renamed from drivers/staging/octeon/cvmx-helper-fpa.c +0 -0
arch/mips/cavium-octeon/executive/cvmx-helper-loop.c renamed from drivers/staging/octeon/cvmx-helper-loop.c +3 -3
@@ -31,10 +31,10 @@*/ #include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-helper.h" -#include "cvmx-pip-defs.h" +#include <asm/octeon/cvmx-helper.h> +#include <asm/octeon/cvmx-pip-defs.h> /** * Probe a LOOP interface and determine the number of ports
arch/mips/cavium-octeon/executive/cvmx-helper-npi.c renamed from drivers/staging/octeon/cvmx-helper-npi.c +3 -3
@@ -31,11 +31,11 @@*/ #include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-helper.h> -#include "cvmx-pip-defs.h" +#include <asm/octeon/cvmx-pip-defs.h> /** * Probe a NPI interface and determine the number of ports
arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c renamed from drivers/staging/octeon/cvmx-helper-rgmii.c +9 -8
@@ -31,18 +31,18 @@*/ #include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-mdio.h" -#include "cvmx-pko.h" -#include "cvmx-helper.h" -#include "cvmx-helper-board.h" +#include <asm/octeon/cvmx-mdio.h> +#include <asm/octeon/cvmx-pko.h> +#include <asm/octeon/cvmx-helper.h> +#include <asm/octeon/cvmx-helper-board.h> #include <asm/octeon/cvmx-npi-defs.h> -#include "cvmx-gmxx-defs.h" -#include "cvmx-asxx-defs.h" -#include "cvmx-dbg-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> +#include <asm/octeon/cvmx-asxx-defs.h> +#include <asm/octeon/cvmx-dbg-defs.h> void __cvmx_interrupt_gmxx_enable (int interface);void __cvmx_interrupt_asxx_enable (int block);
@@ -326,6 +326,7 @@ int __cvmx_helper_rgmii_link_set(int ipd_port,cvmx_read_csr (CVMX_ASXX_RX_PRT_EN (interface)) & ~(1 << index)); +memset (pko_mem_queue_qos_save,0 ,sizeof (pko_mem_queue_qos_save));/* Disable all queues so that TX should become idle */ for (i =0 ; i <cvmx_pko_get_num_queues (ipd_port); i++) {int queue =cvmx_pko_get_base_queue (ipd_port) + i;
arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c renamed from drivers/staging/octeon/cvmx-helper-sgmii.c +6 -6
@@ -32,14 +32,14 @@#include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-mdio.h" -#include "cvmx-helper.h" -#include "cvmx-helper-board.h" +#include <asm/octeon/cvmx-mdio.h> +#include <asm/octeon/cvmx-helper.h> +#include <asm/octeon/cvmx-helper-board.h> -#include "cvmx-gmxx-defs.h" -#include "cvmx-pcsx-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> +#include <asm/octeon/cvmx-pcsx-defs.h> void __cvmx_interrupt_gmxx_enable (int interface);void __cvmx_interrupt_pcsx_intx_en_reg_enable (int index,int block);
arch/mips/cavium-octeon/executive/cvmx-helper-spi.c renamed from drivers/staging/octeon/cvmx-helper-spi.c +5 -5
@@ -35,12 +35,12 @@ void __cvmx_interrupt_stxx_int_msk_enable(int index);*/ #include <asm/octeon/octeon.h> -#include "cvmx-config.h" -#include "cvmx-spi.h" -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-config.h> +#include <asm/octeon/cvmx-spi.h> +#include <asm/octeon/cvmx-helper.h> -#include "cvmx-pip-defs.h" -#include "cvmx-pko-defs.h" +#include <asm/octeon/cvmx-pip-defs.h> +#include <asm/octeon/cvmx-pko-defs.h> /* * CVMX_HELPER_SPI_TIMEOUT is used to determine how long the SPI
arch/mips/cavium-octeon/executive/cvmx-helper-util.c renamed from drivers/staging/octeon/cvmx-helper-util.c +8 -8
@@ -32,16 +32,16 @@#include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-fpa.h" -#include "cvmx-pip.h" -#include "cvmx-pko.h" -#include "cvmx-ipd.h" -#include "cvmx-spi.h" +#include <asm/octeon/cvmx-fpa.h> +#include <asm/octeon/cvmx-pip.h> +#include <asm/octeon/cvmx-pko.h> +#include <asm/octeon/cvmx-ipd.h> +#include <asm/octeon/cvmx-spi.h> -#include "cvmx-helper.h" -#include "cvmx-helper-util.h" +#include <asm/octeon/cvmx-helper.h> +#include <asm/octeon/cvmx-helper-util.h> #include <asm/octeon/cvmx-ipd-defs.h>
arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c renamed from drivers/staging/octeon/cvmx-helper-xaui.c +5 -5
@@ -33,13 +33,13 @@#include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-helper.h> -#include "cvmx-pko-defs.h" -#include "cvmx-gmxx-defs.h" -#include "cvmx-pcsxx-defs.h" +#include <asm/octeon/cvmx-pko-defs.h> +#include <asm/octeon/cvmx-gmxx-defs.h> +#include <asm/octeon/cvmx-pcsxx-defs.h> void __cvmx_interrupt_gmxx_enable (int interface);void __cvmx_interrupt_pcsx_intx_en_reg_enable (int index,int block);
arch/mips/cavium-octeon/executive/cvmx-helper.c renamed from drivers/staging/octeon/cvmx-helper.c +11 -16
@@ -32,19 +32,19 @@*/ #include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-fpa.h" -#include "cvmx-pip.h" -#include "cvmx-pko.h" -#include "cvmx-ipd.h" -#include "cvmx-spi.h" -#include "cvmx-helper.h" -#include "cvmx-helper-board.h" +#include <asm/octeon/cvmx-fpa.h> +#include <asm/octeon/cvmx-pip.h> +#include <asm/octeon/cvmx-pko.h> +#include <asm/octeon/cvmx-ipd.h> +#include <asm/octeon/cvmx-spi.h> +#include <asm/octeon/cvmx-helper.h> +#include <asm/octeon/cvmx-helper-board.h> -#include "cvmx-pip-defs.h" -#include "cvmx-smix-defs.h" -#include "cvmx-asxx-defs.h" +#include <asm/octeon/cvmx-pip-defs.h> +#include <asm/octeon/cvmx-smix-defs.h> +#include <asm/octeon/cvmx-asxx-defs.h> /** * cvmx_override_pko_queue_priority(int ipd_port, uint64_t
@@ -548,7 +548,6 @@ int __cvmx_helper_errata_fix_ipd_ptr_alignment(void)union cvmx_gmxx_prtx_cfg gmx_cfg;int retry_cnt;int retry_loop_cnt; -int mtu;int i;cvmx_helper_link_info_t link_info;
@@ -662,10 +661,6 @@ int __cvmx_helper_errata_fix_ipd_ptr_alignment(void)cvmx_write_csr (CVMX_ASXX_RX_PRT_EN (INTERFACE (FIX_IPD_OUTPORT )),1 <<INDEX (FIX_IPD_OUTPORT )); - mtu = -cvmx_read_csr (CVMX_GMXX_RXX_JABBER - (INDEX (FIX_IPD_OUTPORT ), -INTERFACE (FIX_IPD_OUTPORT )));cvmx_write_csr (CVMX_GMXX_RXX_JABBER (INDEX (FIX_IPD_OUTPORT ),INTERFACE (FIX_IPD_OUTPORT )),65392 -14 -4 );
arch/mips/cavium-octeon/executive/cvmx-interrupt-decodes.c renamed from drivers/staging/octeon/cvmx-interrupt-decodes.c +5 -5
@@ -34,11 +34,11 @@#include <asm/octeon/octeon.h> -#include "cvmx-gmxx-defs.h" -#include "cvmx-pcsx-defs.h" -#include "cvmx-pcsxx-defs.h" -#include "cvmx-spxx-defs.h" -#include "cvmx-stxx-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> +#include <asm/octeon/cvmx-pcsx-defs.h> +#include <asm/octeon/cvmx-pcsxx-defs.h> +#include <asm/octeon/cvmx-spxx-defs.h> +#include <asm/octeon/cvmx-stxx-defs.h> #ifndef PRINT_ERROR #define PRINT_ERROR (format, ...)
arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c renamed from drivers/staging/octeon/cvmx-interrupt-rsl.c +2 -2
@@ -32,8 +32,8 @@#include <asm/octeon/octeon.h> -#include "cvmx-asxx-defs.h" -#include "cvmx-gmxx-defs.h" +#include <asm/octeon/cvmx-asxx-defs.h> +#include <asm/octeon/cvmx-gmxx-defs.h> #ifndef PRINT_ERROR #define PRINT_ERROR (format, ...)
arch/mips/cavium-octeon/executive/cvmx-pko.c renamed from drivers/staging/octeon/cvmx-pko.c +4 -4
@@ -31,9 +31,9 @@#include <asm/octeon/octeon.h> -#include "cvmx-config.h" -#include "cvmx-pko.h" -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-config.h> +#include <asm/octeon/cvmx-pko.h> +#include <asm/octeon/cvmx-helper.h> /** * Internal state of packet output
@@ -54,7 +54,7 @@ void cvmx_pko_initialize_global(void)/* * Set the size of the PKO command buffers to an odd number of * 64bit words. This allows the normal two word send to stay -* aligned and never span a command word buffer. +* aligned and never span a comamnd word buffer. */ config.u64 =0 ; config.s.pool =CVMX_FPA_OUTPUT_BUFFER_POOL ;
arch/mips/cavium-octeon/executive/cvmx-spi.c renamed from drivers/staging/octeon/cvmx-spi.c +6 -6
@@ -31,14 +31,14 @@*/ #include <asm/octeon/octeon.h> -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> -#include "cvmx-pko.h" -#include "cvmx-spi.h" +#include <asm/octeon/cvmx-pko.h> +#include <asm/octeon/cvmx-spi.h> -#include "cvmx-spxx-defs.h" -#include "cvmx-stxx-defs.h" -#include "cvmx-srxx-defs.h" +#include <asm/octeon/cvmx-spxx-defs.h> +#include <asm/octeon/cvmx-stxx-defs.h> +#include <asm/octeon/cvmx-srxx-defs.h> #define INVOKE_CB(function_p, args...) \ do { \
arch/mips/include/asm/octeon/cvmx-address.h renamed from drivers/staging/octeon/cvmx-address.h +0 -0
arch/mips/include/asm/octeon/cvmx-asxx-defs.h renamed from drivers/staging/octeon/cvmx-asxx-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-cmd-queue.h renamed from drivers/staging/octeon/cvmx-cmd-queue.h +0 -0
arch/mips/include/asm/octeon/cvmx-config.h renamed from drivers/staging/octeon/cvmx-config.h +0 -0
arch/mips/include/asm/octeon/cvmx-dbg-defs.h renamed from drivers/staging/octeon/cvmx-dbg-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-fau.h renamed from drivers/staging/octeon/cvmx-fau.h +0 -0
arch/mips/include/asm/octeon/cvmx-fpa-defs.h renamed from drivers/staging/octeon/cvmx-fpa-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-fpa.h renamed from drivers/staging/octeon/cvmx-fpa.h +0 -0
arch/mips/include/asm/octeon/cvmx-gmxx-defs.h renamed from drivers/staging/octeon/cvmx-gmxx-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-board.h renamed from drivers/staging/octeon/cvmx-helper-board.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-fpa.h renamed from drivers/staging/octeon/cvmx-helper-fpa.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-loop.h renamed from drivers/staging/octeon/cvmx-helper-loop.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-npi.h renamed from drivers/staging/octeon/cvmx-helper-npi.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-rgmii.h renamed from drivers/staging/octeon/cvmx-helper-rgmii.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-sgmii.h renamed from drivers/staging/octeon/cvmx-helper-sgmii.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-spi.h renamed from drivers/staging/octeon/cvmx-helper-spi.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-util.h renamed from drivers/staging/octeon/cvmx-helper-util.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper-xaui.h renamed from drivers/staging/octeon/cvmx-helper-xaui.h +0 -0
arch/mips/include/asm/octeon/cvmx-helper.h renamed from drivers/staging/octeon/cvmx-helper.h +0 -0
arch/mips/include/asm/octeon/cvmx-ipd.h renamed from drivers/staging/octeon/cvmx-ipd.h +0 -0
arch/mips/include/asm/octeon/cvmx-mdio.h renamed from drivers/staging/octeon/cvmx-mdio.h +0 -0
arch/mips/include/asm/octeon/cvmx-pcsx-defs.h renamed from drivers/staging/octeon/cvmx-pcsx-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-pcsxx-defs.h renamed from drivers/staging/octeon/cvmx-pcsxx-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-pip-defs.h renamed from drivers/staging/octeon/cvmx-pip-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-pip.h renamed from drivers/staging/octeon/cvmx-pip.h +0 -0
arch/mips/include/asm/octeon/cvmx-pko-defs.h renamed from drivers/staging/octeon/cvmx-pko-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-pko.h renamed from drivers/staging/octeon/cvmx-pko.h +0 -0
arch/mips/include/asm/octeon/cvmx-pow.h renamed from drivers/staging/octeon/cvmx-pow.h +0 -0
arch/mips/include/asm/octeon/cvmx-scratch.h renamed from drivers/staging/octeon/cvmx-scratch.h +0 -0
arch/mips/include/asm/octeon/cvmx-spi.h renamed from drivers/staging/octeon/cvmx-spi.h +0 -0
arch/mips/include/asm/octeon/cvmx-spxx-defs.h renamed from drivers/staging/octeon/cvmx-spxx-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-srxx-defs.h renamed from drivers/staging/octeon/cvmx-srxx-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-stxx-defs.h renamed from drivers/staging/octeon/cvmx-stxx-defs.h +0 -0
arch/mips/include/asm/octeon/cvmx-wqe.h renamed from drivers/staging/octeon/cvmx-wqe.h +0 -0
drivers/staging/octeon/Makefile +0 -5
@@ -20,9 +20,4 @@ octeon-ethernet-y += ethernet-sgmii.o octeon-ethernet-y += ethernet-spi.o octeon-ethernet-y += ethernet-tx.o octeon-ethernet-y += ethernet-xaui.o -octeon-ethernet-y += cvmx-pko.o cvmx-spi.o cvmx-cmd-queue.o \ - cvmx-helper-board.o cvmx-helper.o cvmx-helper-xaui.o \ - cvmx-helper-rgmii.o cvmx-helper-sgmii.o cvmx-helper-npi.o \ - cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \ - cvmx-interrupt-decodes.o cvmx-interrupt-rsl.o
drivers/staging/octeon/cvmx-packet.h deleted +0 -65
65 lines not on this page · raw message
drivers/staging/octeon/cvmx-smix-defs.h deleted +0 -178
178 lines not on this page · raw message
drivers/staging/octeon/ethernet-defines.h +1 -1
@@ -59,7 +59,7 @@#ifndef __ETHERNET_DEFINES_H__#define __ETHERNET_DEFINES_H__ -#include "cvmx-config.h" +#include <asm/octeon/cvmx-config.h> #define OCTEON_ETHERNET_VERSION "1.9"
drivers/staging/octeon/ethernet-mdio.c +2 -2
@@ -38,9 +38,9 @@#include "ethernet-mdio.h" #include "ethernet-util.h" -#include "cvmx-helper-board.h" +#include <asm/octeon/cvmx-helper-board.h> -#include "cvmx-smix-defs.h" +#include <asm/octeon/cvmx-smix-defs.h> static void cvm_oct_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *info)
drivers/staging/octeon/ethernet-mem.c +1 -1
@@ -32,7 +32,7 @@#include "ethernet-defines.h" -#include "cvmx-fpa.h" +#include <asm/octeon/cvmx-fpa.h> /** * cvm_oct_fill_hw_skbuff - fill the supplied hardware pool with skbuffs
drivers/staging/octeon/ethernet-rgmii.c +2 -2
@@ -37,11 +37,11 @@#include "octeon-ethernet.h" #include "ethernet-util.h" -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-helper.h> #include <asm/octeon/cvmx-ipd-defs.h> #include <asm/octeon/cvmx-npi-defs.h> -#include "cvmx-gmxx-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> DEFINE_SPINLOCK (global_register_lock);
drivers/staging/octeon/ethernet-rx.c +8 -8
@@ -52,14 +52,14 @@#include "octeon-ethernet.h" #include "ethernet-util.h" -#include "cvmx-helper.h" -#include "cvmx-wqe.h" -#include "cvmx-fau.h" -#include "cvmx-pow.h" -#include "cvmx-pip.h" -#include "cvmx-scratch.h" - -#include "cvmx-gmxx-defs.h" +#include <asm/octeon/cvmx-helper.h> +#include <asm/octeon/cvmx-wqe.h> +#include <asm/octeon/cvmx-fau.h> +#include <asm/octeon/cvmx-pow.h> +#include <asm/octeon/cvmx-pip.h> +#include <asm/octeon/cvmx-scratch.h> + +#include <asm/octeon/cvmx-gmxx-defs.h> struct cvm_napi_wrapper {struct napi_struct napi;
drivers/staging/octeon/ethernet-rx.h +1 -1
@@ -24,7 +24,7 @@* This file may also be available under a different license from Cavium. * Contact Cavium Networks for more information *********************************************************************/ -#include "cvmx-fau.h" +#include <asm/octeon/cvmx-fau.h> void cvm_oct_poll_controller (struct net_device *dev);void cvm_oct_rx_initialize (void );
drivers/staging/octeon/ethernet-sgmii.c +2 -2
@@ -35,9 +35,9 @@#include "octeon-ethernet.h" #include "ethernet-util.h" -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-helper.h> -#include "cvmx-gmxx-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> int cvm_oct_sgmii_open (struct net_device *dev) {
drivers/staging/octeon/ethernet-spi.c +3 -3
@@ -35,11 +35,11 @@#include "octeon-ethernet.h" #include "ethernet-util.h" -#include "cvmx-spi.h" +#include <asm/octeon/cvmx-spi.h> #include <asm/octeon/cvmx-npi-defs.h> -#include "cvmx-spxx-defs.h" -#include "cvmx-stxx-defs.h" +#include <asm/octeon/cvmx-spxx-defs.h> +#include <asm/octeon/cvmx-stxx-defs.h> static int number_spi_ports;static int need_retrain[2 ] = {0 ,0 };
drivers/staging/octeon/ethernet-tx.c +6 -6
@@ -47,13 +47,13 @@#include "ethernet-tx.h" #include "ethernet-util.h" -#include "cvmx-wqe.h" -#include "cvmx-fau.h" -#include "cvmx-pip.h" -#include "cvmx-pko.h" -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-wqe.h> +#include <asm/octeon/cvmx-fau.h> +#include <asm/octeon/cvmx-pip.h> +#include <asm/octeon/cvmx-pko.h> +#include <asm/octeon/cvmx-helper.h> -#include "cvmx-gmxx-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> #define CVM_OCT_SKB_CB (skb) ((u64 *)((skb)->cb))
drivers/staging/octeon/ethernet-xaui.c +2 -2
@@ -35,9 +35,9 @@#include "octeon-ethernet.h" #include "ethernet-util.h" -#include "cvmx-helper.h" +#include <asm/octeon/cvmx-helper.h> -#include "cvmx-gmxx-defs.h" +#include <asm/octeon/cvmx-gmxx-defs.h> int cvm_oct_xaui_open (struct net_device *dev) {
drivers/staging/octeon/ethernet.c +8 -8
@@ -44,14 +44,14 @@#include "ethernet-mdio.h" #include "ethernet-util.h" -#include "cvmx-pip.h" -#include "cvmx-pko.h" -#include "cvmx-fau.h" -#include "cvmx-ipd.h" -#include "cvmx-helper.h" - -#include "cvmx-gmxx-defs.h" -#include "cvmx-smix-defs.h" +#include <asm/octeon/cvmx-pip.h> +#include <asm/octeon/cvmx-pko.h> +#include <asm/octeon/cvmx-fau.h> +#include <asm/octeon/cvmx-ipd.h> +#include <asm/octeon/cvmx-helper.h> + +#include <asm/octeon/cvmx-gmxx-defs.h> +#include <asm/octeon/cvmx-smix-defs.h> #if defined(CONFIG_CAVIUM_OCTEON_NUM_PACKET_BUFFERS ) \ &&CONFIG_CAVIUM_OCTEON_NUM_PACKET_BUFFERS
Signature · 1 line
1.7.2.3
Ralf Baechle
AppliedRe: [PATCH 1/3] MIPS: Octeon: Move some Ethernet support files out of staging.
Queued for 3.3. Thanks,
Ralf
PATCH 2/3 MIPS: Octeon: Update bootloader board type constants.
In reply to [email protected]From: David Daney <[email protected]>
Many new types of boards exist, so lets recognize them.
--- .../cavium-octeon/executive/cvmx-helper-board.c | 20 ++++++ arch/mips/include/asm/octeon/cvmx-bootinfo.h | 72 +++++++++++++++++++- arch/mips/include/asm/octeon/cvmx-helper-board.h | 6 ++ 3 files changed, 95 insertions(+), 3 deletions(-)
arch/mips/cavium-octeon/executive/cvmx-helper-board.c +20 -0
@@ -117,6 +117,10 @@ int cvmx_helper_board_get_mii_address(int ipd_port)case CVMX_BOARD_TYPE_EBH5200 :case CVMX_BOARD_TYPE_EBH5201 :case CVMX_BOARD_TYPE_EBT5200 : +/* Board has 2 management ports */ +if ((ipd_port >=CVMX_HELPER_BOARD_MGMT_IPD_PORT ) && + (ipd_port < (CVMX_HELPER_BOARD_MGMT_IPD_PORT +2 ))) +return ipd_port -CVMX_HELPER_BOARD_MGMT_IPD_PORT ;/* * Board has 4 SGMII ports. The PHYs start right after the MII * ports MII0 = 0, MII1 = 1, SGMII = 2-5.
@@ -128,6 +132,9 @@ int cvmx_helper_board_get_mii_address(int ipd_port)case CVMX_BOARD_TYPE_EBH5600 :case CVMX_BOARD_TYPE_EBH5601 :case CVMX_BOARD_TYPE_EBH5610 : +/* Board has 1 management port */ +if (ipd_port ==CVMX_HELPER_BOARD_MGMT_IPD_PORT ) +return 0 ;/* * Board has 8 SGMII ports. 4 connect out, two connect * to a switch, and 2 loop to each other
@@ -147,6 +154,19 @@ int cvmx_helper_board_get_mii_address(int ipd_port)return ipd_port -16 +1 ; else return -1; +case CVMX_BOARD_TYPE_NIC_XLE_10G : +case CVMX_BOARD_TYPE_NIC10E : +return -1 ; +case CVMX_BOARD_TYPE_NIC4E : +if (ipd_port >=0 && ipd_port <=3 ) +return (ipd_port +0x1f ) &0x1f ; +else +return -1 ; +case CVMX_BOARD_TYPE_NIC2E : +if (ipd_port >=0 && ipd_port <=1 ) +return ipd_port +1 ; +else +return -1 ;case CVMX_BOARD_TYPE_BBGW_REF :/* * No PHYs are connected to Octeon, everything is
arch/mips/include/asm/octeon/cvmx-bootinfo.h +69 -3
102 lines not on this page · raw message
arch/mips/include/asm/octeon/cvmx-helper-board.h +6 -0
@@ -44,6 +44,12 @@ typedef enum { set_phy_link_flags_flow_control_mask =0x3 <<1 ,/* Mask for 2 bit wide flow control field */ } cvmx_helper_board_set_phy_link_flags_types_t; +/* +* Fake IPD port, the RGMII/MII interface may use different PHY, use +* this macro to return appropriate MIX address to read the PHY. +*/ +#define CVMX_HELPER_BOARD_MGMT_IPD_PORT -10 +/** * cvmx_override_board_link_get(int ipd_port) is a function * pointer. It is meant to allow customization of the process of
Signature · 1 line
1.7.2.3
Ralf Baechle
AppliedRe: [PATCH 2/3] MIPS: Octeon: Update bootloader board type constants.
Queued for 3.3. Thanks,
Ralf
PATCH 3/3 MIPS: Octeon: Rearrange CVMX files in preperation for device tree
In reply to [email protected]From: David Daney <[email protected]>
--- .../cavium-octeon/executive/cvmx-helper-sgmii.c | 6 +- .../mips/cavium-octeon/executive/cvmx-helper-spi.c | 10 ++ .../cavium-octeon/executive/cvmx-helper-xaui.c | 22 +++-- arch/mips/cavium-octeon/executive/cvmx-helper.c | 93 ++++++++++++++++--- arch/mips/include/asm/octeon/cvmx-helper-loop.h | 1 + arch/mips/include/asm/octeon/cvmx-helper-npi.h | 1 + arch/mips/include/asm/octeon/cvmx-helper-rgmii.h | 1 + arch/mips/include/asm/octeon/cvmx-helper-sgmii.h | 1 + arch/mips/include/asm/octeon/cvmx-helper-spi.h | 1 + arch/mips/include/asm/octeon/cvmx-helper-xaui.h | 1 + arch/mips/include/asm/octeon/cvmx-helper.h | 1 + 11 files changed, 114 insertions(+), 24 deletions(-)
arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c +5 -1
@@ -326,6 +326,10 @@ static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports)return 0 ; } +int __cvmx_helper_sgmii_enumerate (int interface) +{ +return 4 ; +}/** * Probe a SGMII interface and determine the number of ports * connected to it. The SGMII interface should still be down after
@@ -347,7 +351,7 @@ int __cvmx_helper_sgmii_probe(int interface) mode.u64 =cvmx_read_csr (CVMX_GMXX_INF_MODE (interface)); mode.s.en =1 ;cvmx_write_csr (CVMX_GMXX_INF_MODE (interface), mode.u64); -return 4 ; +return __cvmx_helper_sgmii_enumerate (interface); }/**
arch/mips/cavium-octeon/executive/cvmx-helper-spi.c +10 -0
@@ -51,6 +51,16 @@ void __cvmx_interrupt_stxx_int_msk_enable(int index);#define CVMX_HELPER_SPI_TIMEOUT 10#endif +int __cvmx_helper_spi_enumerate (int interface) +{ +if ((cvmx_sysinfo_get ()->board_type !=CVMX_BOARD_TYPE_SIM ) && +cvmx_spi4000_is_present (interface)) { +return 10 ; + }else { +return 16 ; + } +} +/** * Probe a SPI interface and determine the number of ports * connected to it. The SPI interface should still be down after
arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c +14 -8
@@ -44,6 +44,19 @@void __cvmx_interrupt_gmxx_enable (int interface);void __cvmx_interrupt_pcsx_intx_en_reg_enable (int index,int block);void __cvmx_interrupt_pcsxx_int_en_reg_enable (int index); + +int __cvmx_helper_xaui_enumerate (int interface) +{ +union cvmx_gmxx_hg2_control gmx_hg2_control; + +/* If HiGig2 is enabled return 16 ports, otherwise return 1 port */ + gmx_hg2_control.u64 =cvmx_read_csr (CVMX_GMXX_HG2_CONTROL (interface)); +if (gmx_hg2_control.s.hg2tx_en) +return 16 ; +else +return 1 ; +} +/** * Probe a XAUI interface and determine the number of ports * connected to it. The XAUI interface should still be down
@@ -56,7 +69,6 @@ void __cvmx_interrupt_pcsxx_int_en_reg_enable(int index);int __cvmx_helper_xaui_probe (int interface) {int i; -union cvmx_gmxx_hg2_control gmx_hg2_control;union cvmx_gmxx_inf_mode mode;/*
@@ -90,13 +102,7 @@ int __cvmx_helper_xaui_probe(int interface) pko_mem_port_ptrs.s.pid = interface *16 + i;cvmx_write_csr (CVMX_PKO_MEM_PORT_PTRS , pko_mem_port_ptrs.u64); } - -/* If HiGig2 is enabled return 16 ports, otherwise return 1 port */ - gmx_hg2_control.u64 =cvmx_read_csr (CVMX_GMXX_HG2_CONTROL (interface)); -if (gmx_hg2_control.s.hg2tx_en) -return 16 ; -else -return 1 ; +return __cvmx_helper_xaui_enumerate (interface); }/**
arch/mips/cavium-octeon/executive/cvmx-helper.c +78 -15
145 lines not on this page · raw message
arch/mips/include/asm/octeon/cvmx-helper-loop.h +1 -0
@@ -44,6 +44,7 @@* Returns Number of ports on the interface. Zero to disable. */ extern int __cvmx_helper_loop_probe (int interface); +static inline int __cvmx_helper_loop_enumerate (int interface) {return 4 ; }/** * Bringup and enable a LOOP interface. After this call packet
arch/mips/include/asm/octeon/cvmx-helper-npi.h +1 -0
@@ -45,6 +45,7 @@* Returns Number of ports on the interface. Zero to disable. */ extern int __cvmx_helper_npi_probe (int interface); +#define __cvmx_helper_npi_enumerate __cvmx_helper_npi_probe/** * Bringup and enable a NPI interface. After this call packet
arch/mips/include/asm/octeon/cvmx-helper-rgmii.h +1 -0
@@ -43,6 +43,7 @@* Returns Number of RGMII/GMII/MII ports (0-4). */ extern int __cvmx_helper_rgmii_probe (int interface); +#define __cvmx_helper_rgmii_enumerate __cvmx_helper_rgmii_probe/** * Put an RGMII interface in loopback mode. Internal packets sent
arch/mips/include/asm/octeon/cvmx-helper-sgmii.h +1 -0
@@ -45,6 +45,7 @@* Returns Number of ports on the interface. Zero to disable. */ extern int __cvmx_helper_sgmii_probe (int interface); +extern int __cvmx_helper_sgmii_enumerate (int interface);/** * Bringup and enable a SGMII interface. After this call packet
arch/mips/include/asm/octeon/cvmx-helper-spi.h +1 -0
@@ -42,6 +42,7 @@* Returns Number of ports on the interface. Zero to disable. */ extern int __cvmx_helper_spi_probe (int interface); +extern int __cvmx_helper_spi_enumerate (int interface);/** * Bringup and enable a SPI interface. After this call packet I/O
arch/mips/include/asm/octeon/cvmx-helper-xaui.h +1 -0
@@ -45,6 +45,7 @@* Returns Number of ports on the interface. Zero to disable. */ extern int __cvmx_helper_xaui_probe (int interface); +extern int __cvmx_helper_xaui_enumerate (int interface);/** * Bringup and enable a XAUI interface. After this call packet
arch/mips/include/asm/octeon/cvmx-helper.h +1 -0
@@ -207,6 +207,7 @@ extern int cvmx_helper_link_set(int ipd_port,* Returns Zero on success, negative on failure */ extern int cvmx_helper_interface_probe (int interface); +extern int cvmx_helper_interface_enumerate (int interface);/** * Configure a port for internal and/or external loopback. Internal loopback
Signature · 1 line
1.7.2.3
Ralf Baechle
AppliedRe: [PATCH 3/3] MIPS: Octeon: Rearrange CVMX files in preperation for device tree
Queued for 3.3. Thanks,
Ralf
Quoted 23 lines · On Thu, Nov 10, 2011 at 04:29:44PM -0800, [email protected] wrote:
From: David Daney <[email protected]>
First patch:
In preparation for my next set of patches to add device tree support for Octeon, move some files out of
drivers/staging/octeonto common location. There are two basic types of files I am moving:1) Register definition files. Most Octeon register definition files are in
arch/mips/include/asm/octeon, put the rest there too.2) Low level packet port type probing code. This is needed by both the Ethernet driver and the code that fixes up the in-kernel device trees. Although new board pass a device tree to the kernel, support of legacy boards requires that this probing code be used to fix up an in-kernel device tree template.
Second patch:
Update support for legacy boards.
Quoted 7 lines
Third patch:
Seperate probing and initialization of packet ports.
Since these are MIPS architecture files we could merge via Ralf's tree if approved.
If Ralf approves of these changes, that's fine with me and they can go through his tree:
thanks,
greg k-h