linux-mips
[Top] [All Lists]

[PATCH 3/7] MIPS: Cavium-Octeon: Add more board type constants.

To: linux-mips@linux-mips.org, ralf@linux-mips.org, gregkh@suse.de
Subject: [PATCH 3/7] MIPS: Cavium-Octeon: Add more board type constants.
From: David Daney <ddaney@caviumnetworks.com>
Date: Tue, 5 May 2009 17:35:18 -0700
Cc: David Daney <ddaney@caviumnetworks.com>
In-reply-to: <4A00DA84.5040101@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4A00DA84.5040101@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
The bootloader now uses additional board type constants.  The
octeon-ethernet driver needs some of the new values.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/include/asm/octeon/cvmx-bootinfo.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/octeon/cvmx-bootinfo.h 
b/arch/mips/include/asm/octeon/cvmx-bootinfo.h
index 692989a..f3c23a4 100644
--- a/arch/mips/include/asm/octeon/cvmx-bootinfo.h
+++ b/arch/mips/include/asm/octeon/cvmx-bootinfo.h
@@ -157,6 +157,13 @@ enum cvmx_board_types_enum {
        CVMX_BOARD_TYPE_NIC_XLE_4G = 21,
        CVMX_BOARD_TYPE_EBT5600 = 22,
        CVMX_BOARD_TYPE_EBH5201 = 23,
+       CVMX_BOARD_TYPE_EBT5200 = 24,
+       CVMX_BOARD_TYPE_CB5600  = 25,
+       CVMX_BOARD_TYPE_CB5601  = 26,
+       CVMX_BOARD_TYPE_CB5200  = 27,
+       /* Special 'generic' board type, supports many boards */
+       CVMX_BOARD_TYPE_GENERIC = 28,
+       CVMX_BOARD_TYPE_EBH5610 = 29,
        CVMX_BOARD_TYPE_MAX,
 
        /*
@@ -228,6 +235,12 @@ static inline const char *cvmx_board_type_to_string(enum
                ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_NIC_XLE_4G)
                ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_EBT5600)
                ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_EBH5201)
+               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_EBT5200)
+               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CB5600)
+               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CB5601)
+               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CB5200)
+               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_GENERIC)
+               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_EBH5610)
                ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_MAX)
 
                        /* Customer boards listed here */
-- 
1.6.0.6


<Prev in Thread] Current Thread [Next in Thread>