From owner-p4-projects@FreeBSD.ORG Sat Oct 4 11:03:52 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 226401065693; Sat, 4 Oct 2008 11:03:52 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA5371065688 for ; Sat, 4 Oct 2008 11:03:51 +0000 (UTC) (envelope-from raj@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C91528FC14 for ; Sat, 4 Oct 2008 11:03:51 +0000 (UTC) (envelope-from raj@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m94B3pvA000844 for ; Sat, 4 Oct 2008 11:03:51 GMT (envelope-from raj@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m94B3pkJ000842 for perforce@freebsd.org; Sat, 4 Oct 2008 11:03:51 GMT (envelope-from raj@freebsd.org) Date: Sat, 4 Oct 2008 11:03:51 GMT Message-Id: <200810041103.m94B3pkJ000842@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to raj@freebsd.org using -f From: Rafal Jaworowski To: Perforce Change Reviews Cc: Subject: PERFORCE change 150946 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2008 11:03:52 -0000 http://perforce.freebsd.org/chv.cgi?CH=150946 Change 150946 by raj@raj_mimi on 2008/10/04 11:03:34 Adjust Marvell headers for better Discovery support. Affected files ... .. //depot/projects/arm/src/sys/arm/mv/mvreg.h#4 edit .. //depot/projects/arm/src/sys/arm/mv/mvvar.h#3 edit Differences ... ==== //depot/projects/arm/src/sys/arm/mv/mvreg.h#4 (text+ko) ==== @@ -98,11 +98,7 @@ #define MV_INTREGS_BASE (MV_MBUS_BRIDGE_BASE + 0x80) #define MV_CPU_CONTROL_BASE (MV_MBUS_BRIDGE_BASE + 0x100) #define MV_IC_BASE (MV_MBUS_BRIDGE_BASE + 0x200) -#if defined(SOC_MV_DISCOVERY) #define MV_IC_SIZE 0x3C -#else -#define MV_IC_SIZE 0x20 -#endif #define MV_TIMERS_BASE (MV_MBUS_BRIDGE_BASE + 0x300) #define MV_TIMERS_SIZE 0x30 #define MV_PCI_BASE (MV_BASE + 0x30000) @@ -444,11 +440,15 @@ /* * Decode windows definitions and macros */ -#define MV_WIN_CPU_CTRL(n) (0x10 * (n) + 0x0) -#define MV_WIN_CPU_BASE(n) (0x10 * (n) + 0x4) -#define MV_WIN_CPU_REMAP_LO(n) (0x10 * (n) + 0x8) -#define MV_WIN_CPU_REMAP_HI(n) (0x10 * (n) + 0xc) +#define MV_WIN_CPU_CTRL(n) (0x10 * (n) + (((n) < 8) ? 0x000 : 0x880)) +#define MV_WIN_CPU_BASE(n) (0x10 * (n) + (((n) < 8) ? 0x004 : 0x884)) +#define MV_WIN_CPU_REMAP_LO(n) (0x10 * (n) + (((n) < 8) ? 0x008 : 0x888)) +#define MV_WIN_CPU_REMAP_HI(n) (0x10 * (n) + (((n) < 8) ? 0x00C : 0x88C)) +#if defined(SOC_MV_DISCOVERY) +#define MV_WIN_CPU_MAX 14 +#else #define MV_WIN_CPU_MAX 8 +#endif #define MV_WIN_DDR_BASE(n) (0x8 * (n) + 0x0) #define MV_WIN_DDR_SIZE(n) (0x8 * (n) + 0x4) @@ -470,12 +470,12 @@ #define MV_WIN_IDMA_MAX 8 #define MV_IDMA_CHAN_MAX 4 -#define MV_WIN_PCIE_CTRL(n) (0x10 * (((n) < 5) ? (n) : (n) + 1) + \ - 0x1820) -#define MV_WIN_PCIE_BASE(n) (0x10 * (((n) < 5) ? (n) : (n) + 1) + \ - 0x1824) -#define MV_WIN_PCIE_REMAP(n) (0x10 * (((n) < 5) ? (n) : (n) + 1) + \ - 0x182C) +#define MV_WIN_PCIE_CTRL(n) (0x10 * (((n) < 5) ? (n) : \ + (n) + 1) + 0x1820) +#define MV_WIN_PCIE_BASE(n) (0x10 * (((n) < 5) ? (n) : \ + (n) + 1) + 0x1824) +#define MV_WIN_PCIE_REMAP(n) (0x10 * (((n) < 5) ? (n) : \ + (n) + 1) + 0x182C) #define MV_WIN_PCIE_MAX 6 #define MV_PCIE_BAR(n) (0x04 * (n) + 0x1804) ==== //depot/projects/arm/src/sys/arm/mv/mvvar.h#3 (text+ko) ==== @@ -84,7 +84,6 @@ uint8_t mv_gpio_in(uint32_t pin); int platform_pmap_init(void); -long platform_ramsize(void); int soc_decode_win(void); void soc_id(uint32_t *dev, uint32_t *rev); void soc_identify(void);