From patchwork Wed Jun 3 08:22:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 27625 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 n538Q7LV019495 for ; Wed, 3 Jun 2009 08:26:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751805AbZFCI0E (ORCPT ); Wed, 3 Jun 2009 04:26:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751818AbZFCI0E (ORCPT ); Wed, 3 Jun 2009 04:26:04 -0400 Received: from wf-out-1314.google.com ([209.85.200.174]:54062 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751805AbZFCI0C (ORCPT ); Wed, 3 Jun 2009 04:26:02 -0400 Received: by wf-out-1314.google.com with SMTP id 26so3107198wfd.4 for ; Wed, 03 Jun 2009 01:26:04 -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=ddXQ4Rx9Jv4LrbGq716B+/ITK5Cyc54crR1btxgUsUo=; b=LOo6RXyMkgJ7924clUcQRs6OvFghtYWxM6iYBSLKtSg6B0k6c6lr17jnaJXsbHCnU8 t3bfO6+Ga233hPsmGhEetQHZvFinPbtbkLh7XDi69IP54cyCjFkrBHNaVpku3wS/Uffk mdAjfkJhFMuBjIB4+QLaG6GueFdgbq6X5FyIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=EPjvAoUUzdsHZ/mdW/yIysX0gE1DR/xw1siKDibJwNV+K97e0il1GrbbEkxSbyggVl URlXXRPXHzdFfUhlfg16Sp94xoOwUZLIkvoeB6kxHB/e7yHYai1uuYFOkEA1ZnE2nTFr Pp0XChvnRvblxemtLv35eym5Qa/069GqLFrnk= Received: by 10.142.133.19 with SMTP id g19mr241142wfd.126.1244017564390; Wed, 03 Jun 2009 01:26:04 -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 22sm119752wfg.7.2009.06.03.01.26.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Jun 2009 01:26:03 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Wed, 03 Jun 2009 17:22:50 +0900 Message-Id: <20090603082250.28379.68248.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: add Migo-R mode pin configuration 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 mode pin configuration and a machvec structure to Migo-R. Signed-off-by: Magnus Damm --- arch/sh/boards/mach-migor/setup.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 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/boards/mach-migor/setup.c +++ work/arch/sh/boards/mach-migor/setup.c 2009-06-03 16:38:01.000000000 +0900 @@ -584,3 +584,22 @@ static int __init migor_devices_setup(vo return platform_add_devices(migor_devices, ARRAY_SIZE(migor_devices)); } __initcall(migor_devices_setup); + +/* Return the board specific boot mode pin configuration */ +static int migor_mode_pins(void) +{ + /* MD0=1, MD1=1, MD2=0: Clock Mode 3 + * MD3=0: 16-bit Area0 Bus Width + * MD5=1: Little Endian + * TSTMD=1, MD8=0: Test Mode Disabled + */ + return MODE_PIN0 | MODE_PIN1 | MODE_PIN5; +} + +/* + * The Machine Vector + */ +static struct sh_machine_vector mv_migor __initmv = { + .mv_name = "Migo-R", + .mv_mode_pins = migor_mode_pins, +};