From patchwork Fri Nov 30 09:18:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 202898 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 CFECE2C0089 for ; Fri, 30 Nov 2012 20:24:21 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EDA824A09B; Fri, 30 Nov 2012 10:24:19 +0100 (CET) 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 4FmRpoednaWI; Fri, 30 Nov 2012 10:24:19 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0941E4A051; Fri, 30 Nov 2012 10:24:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4EEF24A051 for ; Fri, 30 Nov 2012 10:24:13 +0100 (CET) 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 9B6Kf+xbkf79 for ; Fri, 30 Nov 2012 10:24:12 +0100 (CET) X-Greylist: delayed 319 seconds by postgrey-1.27 at theia; Fri, 30 Nov 2012 10:24:10 CET 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-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by theia.denx.de (Postfix) with ESMTPS id 6DEE14A04C for ; Fri, 30 Nov 2012 10:24:10 +0100 (CET) Received: by mail-wi0-f176.google.com with SMTP id hm6so5659068wib.9 for ; Fri, 30 Nov 2012 01:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=41Nz8RzL4B+KcnqWvdNKMx82ma7iaTBoqnQDPGObzvE=; b=m8J5CnheGeb2DTxMtmN+ObunEf9Lr43XBJvcgfH6YGoySl2AM/aB3JTXEfEcPvJ7Us rBwkH2QvOxGJVryb2rP4ihYUV7I+5Cq9OLtheCrXEvinbKP3lepXzM/AR6eSQPdT9Lsy btOuwcbFm9mQ3OGBhetoVC6X3jTaGvoJ9x4ZHNpO9Q3gSkeN3CjgFy0QzrjQibvbQpEF dU+LF/aDvID74KOryQga2b9zpJE0JfKKQOtei4Ua64hPsV3/Ozy8gojCmdh2wMsvhJCS 221pgSQlr+1lAsHuVmO1W/XJxySfvK8wfaUyy0LCgy1ctGK+bj7oDF5n51Pz5Q03HFwH /sxw== Received: by 10.180.20.177 with SMTP id o17mr891718wie.18.1354267130285; Fri, 30 Nov 2012 01:18:50 -0800 (PST) Received: from localhost.localdomain (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPS id e6sm14463835wiy.4.2012.11.30.01.18.48 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Nov 2012 01:18:49 -0800 (PST) From: richard.genoud@gmail.com To: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Fri, 30 Nov 2012 10:18:32 +0100 Message-Id: <50b879f9.0652b40a.733e.74b1@mx.google.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1354267114-3307-1-git-send-email-yes> References: <1354267114-3307-1-git-send-email-yes> Cc: u-boot@lists.denx.de, Bo Shen Subject: [U-Boot] [PATCHv3 2/4] at91sam9x5: enable USB support for 9x5ek board. 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Richard Genoud Signed-off-by: Richard Genoud Acked-by: Bo Shen pllbr); while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB) ; -#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) +#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \ + defined(CONFIG_AT91SAM9X5) /* Enable UPLL */ writel(readl(&pmc->uckr) | AT91_PMC_UPLLEN | AT91_PMC_BIASEN, &pmc->uckr); @@ -81,7 +82,8 @@ int usb_cpu_stop(void) writel(0, &pmc->pllbr); while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != 0) ; -#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) +#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \ + defined(CONFIG_AT91SAM9X5) /* Disable UPLL */ writel(readl(&pmc->uckr) & (~AT91_PMC_UPLLEN), &pmc->uckr); while ((readl(&pmc->sr) & AT91_PMC_LOCKU) == AT91_PMC_LOCKU)