From patchwork Wed Apr 14 18:44:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Chemparathy X-Patchwork-Id: 92467 Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3EIoOg5002238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 14 Apr 2010 18:51:01 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o3EImuZF013518 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Apr 2010 13:48:56 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o3EImt8A000268; Wed, 14 Apr 2010 13:48:55 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id D7DAC80650; Wed, 14 Apr 2010 13:48:01 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dlep36.itg.ti.com (dlep36.itg.ti.com [157.170.170.91]) by linux.omap.com (Postfix) with ESMTP id C85C78062E for ; Wed, 14 Apr 2010 13:45:11 -0500 (CDT) Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o3EIj8Rt026340; Wed, 14 Apr 2010 13:45:09 -0500 (CDT) Received: from gtrgwdeb (gtrgwdeb.telogy.design.ti.com [158.218.102.24]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o3EIj8Z05965; Wed, 14 Apr 2010 13:45:08 -0500 (CDT) Received: by gtrgwdeb (Postfix, from userid 39959) id 58C561E068A; Wed, 14 Apr 2010 14:45:06 -0400 (EDT) From: Cyril Chemparathy To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH v3 12/16] Davinci: tnetv107x soc specific header Date: Wed, 14 Apr 2010 14:44:58 -0400 Message-Id: <1271270702-28307-13-git-send-email-cyril@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1271270702-28307-12-git-send-email-cyril@ti.com> References: <1271270702-28307-1-git-send-email-cyril@ti.com> <1271270702-28307-2-git-send-email-cyril@ti.com> <1271270702-28307-3-git-send-email-cyril@ti.com> <1271270702-28307-4-git-send-email-cyril@ti.com> <1271270702-28307-5-git-send-email-cyril@ti.com> <1271270702-28307-6-git-send-email-cyril@ti.com> <1271270702-28307-7-git-send-email-cyril@ti.com> <1271270702-28307-8-git-send-email-cyril@ti.com> <1271270702-28307-9-git-send-email-cyril@ti.com> <1271270702-28307-10-git-send-email-cyril@ti.com> <1271270702-28307-11-git-send-email-cyril@ti.com> <1271270702-28307-12-git-send-email-cyril@ti.com> Cc: sshtylyov@mvista.com X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 14 Apr 2010 18:51:01 +0000 (UTC) diff --git a/arch/arm/mach-davinci/include/mach/tnetv107x.h b/arch/arm/mach-davinci/include/mach/tnetv107x.h new file mode 100644 index 0000000..5eafdb8 --- /dev/null +++ b/arch/arm/mach-davinci/include/mach/tnetv107x.h @@ -0,0 +1,66 @@ +/* + * Chip specific defines for TNETV107X SoC + * + * Author: Cyril Chemparathy + * + * 2009 (c) Texas Instruments, Inc. This file is licensed under + * the terms of the GNU General Public License version 2. This program + * is licensed "as is" without any warranty of any kind, whether express + * or implied. + */ +#ifndef __ASM_ARCH_DAVINCI_TNETV107X_H +#define __ASM_ARCH_DAVINCI_TNETV107X_H + +#include + +/* + * Fixed mapping for early init starts here. If low-level debug is enabled, + * this area also gets mapped via io_pg_offset and io_phys by the boot code. + * To fit in with the io_pg_offset calculation, the io base address selected + * here _must_ be a multiple of 2^20. + */ +#define TNETV107X_IO_BASE 0x08000000 +#define TNETV107X_IO_VIRT (IO_VIRT + SZ_1M) + +#define PINMUX0 (0 << 2) +#define PINMUX1 (1 << 2) +#define PINMUX2 (2 << 2) +#define PINMUX3 (3 << 2) +#define PINMUX4 (4 << 2) +#define PINMUX5 (5 << 2) +#define PINMUX6 (6 << 2) +#define PINMUX7 (7 << 2) +#define PINMUX8 (8 << 2) +#define PINMUX9 (9 << 2) +#define PINMUX10 (10 << 2) +#define PINMUX11 (11 << 2) +#define PINMUX12 (12 << 2) +#define PINMUX13 (13 << 2) +#define PINMUX14 (14 << 2) +#define PINMUX15 (15 << 2) +#define PINMUX16 (16 << 2) +#define PINMUX17 (17 << 2) +#define PINMUX18 (18 << 2) +#define PINMUX19 (19 << 2) +#define PINMUX20 (20 << 2) +#define PINMUX21 (21 << 2) +#define PINMUX22 (22 << 2) +#define PINMUX23 (23 << 2) +#define PINMUX24 (24 << 2) +#define PINMUX25 (25 << 2) +#define PINMUX26 (26 << 2) + +#define TNETV107X_N_GPIOS 65 + +#ifndef __ASSEMBLY__ + +#include + +extern void __init tnetv107x_init(void); +extern void __init tnetv107x_gpio_init(void); +extern void __init tnetv107x_edma_init(void); +extern void __init tnetv107x_irq_init(void); +extern void __init tnetv107x_serial_init(struct plat_serial8250_port* ports); +#endif + +#endif /* __ASM_ARCH_DAVINCI_TNETV107X_H */