From patchwork Thu Aug 16 12:19:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 177976 X-Patchwork-Delegate: andreas.biessmann@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D8B682C009B for ; Thu, 16 Aug 2012 22:19:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4CC6F2820A; Thu, 16 Aug 2012 14:19:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hcy3SLqmmiv7; Thu, 16 Aug 2012 14:19:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D33F2281DB; Thu, 16 Aug 2012 14:19:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9D011281DB for ; Thu, 16 Aug 2012 14:19:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6bzwXu5+Mlgs for ; Thu, 16 Aug 2012 14:19:34 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by theia.denx.de (Postfix) with ESMTPS id 2C083281CF for ; Thu, 16 Aug 2012 14:19:32 +0200 (CEST) Received: by eaai11 with SMTP id i11so701986eaa.3 for ; Thu, 16 Aug 2012 05:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=WL4zlt6tY9CQi4O/KtGCmf9nKlWXSUU+Y+Emvd/8r5k=; b=QfHvyBQp5BsIoyCMJ1xMsIvFrT6yU8IH7sUUvHwOWlzOWn3s7Yz2hixonj+VucXIDR kwzbEgb6MRSo/frsXYU+nbN1VJ0CQuYjnnwF8XGGGyoGVRR4c321jrxhhQ0yOirXMKpD V8tJ3+p/K/oknZ3iqPyNPdvdkiNDw2DuLgdhc2FWJ9IZhQctvp7OhsuRABpVz9a9wQZt ZjJ5YWet136psSRXJhvKTs9ktpSuAO2HUPkHUxQAGfOXBuEYAj/wf5j26aWlUWANK6Fj cPa7+JxTWGK46UvE6qYZ8C2kVLnFdb5EUODCeAeceB71lZU69xQnt2TW8AD7lFWFxieK F7wg== Received: by 10.14.5.78 with SMTP id 54mr1378612eek.1.1345119572254; Thu, 16 Aug 2012 05:19:32 -0700 (PDT) Received: from localhost ([2a01:198:47b:1:210:75ff:fe1a:cd1e]) by mx.google.com with ESMTPS id y1sm11729601eel.0.2012.08.16.05.19.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 05:19:31 -0700 (PDT) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Thu, 16 Aug 2012 14:19:19 +0200 Message-Id: <1345119559-16380-1-git-send-email-andreas.devel@googlemail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Subject: [U-Boot] [PATCH] avr32:portmux: fix setup for macb1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use portd_mask instead of portc_mask to setup the pins for port D. Signed-off-by: Andreas Bießmann --- arch/avr32/cpu/at32ap700x/portmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/avr32/cpu/at32ap700x/portmux.c b/arch/avr32/cpu/at32ap700x/portmux.c index e3e38a2..7eb42de 100644 --- a/arch/avr32/cpu/at32ap700x/portmux.c +++ b/arch/avr32/cpu/at32ap700x/portmux.c @@ -122,7 +122,7 @@ void portmux_enable_macb1(unsigned long flags, unsigned long drive_strength) portd_mask |= (1 << 15);/* SPD */ /* REVISIT: Some pins are probably pure outputs */ - portmux_select_peripheral(PORTMUX_PORT_D, portc_mask, + portmux_select_peripheral(PORTMUX_PORT_D, portd_mask, PORTMUX_FUNC_B, PORTMUX_BUSKEEPER); portmux_select_peripheral(PORTMUX_PORT_C, portc_mask, PORTMUX_FUNC_B, PORTMUX_BUSKEEPER);