From 3ad89c4ecba51564c97075f031aef4fa5eafbb16 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Sat, 31 Oct 2009 11:23:41 -0500 Subject: NET: Base support for etsec2.0 1. Modified the tsec_mdio structure to include the new regs 2. Modified the MDIO_BASE_ADDR so that it will handle both older version and new version of etsec. Signed-off-by: Sandeep Gopalpet Acked-by: Kim Phillips Signed-off-by: Kumar Gala --- include/asm-ppc/config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/asm-ppc/config.h') diff --git a/include/asm-ppc/config.h b/include/asm-ppc/config.h index af0853b..d5f82b4 100644 --- a/include/asm-ppc/config.h +++ b/include/asm-ppc/config.h @@ -57,6 +57,12 @@ #endif #endif +/* Enable TSEC2.0 for the platforms that have it if we are using TSEC */ +#if defined(CONFIG_TSEC_ENET) && \ + (defined(CONFIG_P1020) || defined(CONFIG_P1011)) +#define CONFIG_TSECV2 +#endif + /* Relocation to SDRAM works on all PPC boards */ #define CONFIG_RELOC_FIXUP_WORKS -- cgit v1.1 From 94e9411b9dda182dd63d53ba6ea640c98b35db5f Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 12 Nov 2009 10:26:16 -0600 Subject: ppc/85xx: Add tracking of TLB CAM usage We need to track which TLB CAM entries are used to allow us to "dynamically" allocate entries later in the code. For example the SPD DDR code today hard codes which TLB entries it uses. We can now make that pick entries that are free. Signed-off-by: Kumar Gala --- include/asm-ppc/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/asm-ppc/config.h') diff --git a/include/asm-ppc/config.h b/include/asm-ppc/config.h index d5f82b4..796707e 100644 --- a/include/asm-ppc/config.h +++ b/include/asm-ppc/config.h @@ -63,6 +63,13 @@ #define CONFIG_TSECV2 #endif +/* Number of TLB CAM entries we have on FSL Book-E chips */ +#if defined(CONFIG_E500MC) +#define CONFIG_SYS_NUM_TLBCAMS 64 +#elif defined(CONFIG_E500) +#define CONFIG_SYS_NUM_TLBCAMS 16 +#endif + /* Relocation to SDRAM works on all PPC boards */ #define CONFIG_RELOC_FIXUP_WORKS -- cgit v1.1