From patchwork Tue Jun 2 08:27:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 27422 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n528VpeV014842 for ; Tue, 2 Jun 2009 08:31:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760601AbZFBIak (ORCPT ); Tue, 2 Jun 2009 04:30:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760585AbZFBIak (ORCPT ); Tue, 2 Jun 2009 04:30:40 -0400 Received: from rv-out-0506.google.com ([209.85.198.224]:13909 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760609AbZFBIai (ORCPT ); Tue, 2 Jun 2009 04:30:38 -0400 Received: by rv-out-0506.google.com with SMTP id f9so2448497rvb.1 for ; Tue, 02 Jun 2009 01:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=Jqr7zwM5GEWp+4IWeWl1SM6io4QDkLBcxsjfP+iBkzg=; b=trX4X9XLPpJOI4ihPD1wG9p026XdOEzPOaP0bsOIPMlkrXqNp6eSI77PiIcxgd2Rzv AFzjAOwzRrzgdMVoQOWIqaF/JqVVo1+9VR2PPy9fwiGcFk0agi111lAMnt7vsiAgH+u2 G2cGQBGtOmP3caZakpsyLK2Pi+YyEgsqvnRPM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=rhHAKHwXtBbKwe/K0zWtxeTG7ZC+bgc6c4ojCOLuMC7NBE6sEWKgv47ZAuPANlfkBY r07pHn6kJ9Z8+zDSqbxZsjS/gTNNTxGPBTW27wRfAA997b0Soo9B04TGlPSBRAhBPGwi GvjmYd1nwCv8n3SnzUYgQ6WhakiaX3Yh1TrwI= Received: by 10.140.199.16 with SMTP id w16mr124022rvf.160.1243931440391; Tue, 02 Jun 2009 01:30:40 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id k2sm16798507rvb.8.2009.06.02.01.30.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Jun 2009 01:30:39 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Tue, 02 Jun 2009 17:27:27 +0900 Message-Id: <20090602082727.26640.94726.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: sh7723 mode pin definitions Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm This patch adds sh7723 mode pin definitions. Mode pins and pin function controller comments are added as well. Signed-off-by: Magnus Damm --- -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/sh/include/cpu-sh4/cpu/sh7723.h +++ work/arch/sh/include/cpu-sh4/cpu/sh7723.h 2009-06-02 15:19:42.000000000 +0900 @@ -1,6 +1,21 @@ #ifndef __ASM_SH7723_H__ #define __ASM_SH7723_H__ +/* Boot Mode Pins */ +enum { + MODE_PIN_MD0, /* CPG - Clock Mode 0->3 */ + MODE_PIN_MD1, /* CPG - Clock Mode 0->3 */ + MODE_PIN_MD2, /* CPG - Reserved (L: Normal operation) */ + MODE_PIN_MD3, /* BSC - Area0 Bus Width (16/32-bit) [CS0BCR.9,10] */ + MODE_PIN_MD5 = 5, /* BSC - Endian Mode (L: Big, H: Little) [CMNCR.3]*/ + MODE_PIN_MD8 = 8, /* Test Mode (?) */ + MODE_PIN_TSTMD, /* Test Mode (H: Normal operation) */ +}; + +/* Pin Function Controller: + * GPIO_FN_xx - GPIO used to select pin function + * GPIO_Pxx - GPIO mapped to real I/O pin on CPU + */ enum { /* PTA */ GPIO_PTA7, GPIO_PTA6, GPIO_PTA5, GPIO_PTA4,