Message ID | 20191114195751.30357-4-sjg@chromium.org |
---|---|
State | Accepted |
Commit | e3107d159c180698bd45511afb76e9ab8f9957fb |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="lBm4eyMf"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47DXm90679z9sPc for <incoming@patchwork.ozlabs.org>; Fri, 15 Nov 2019 07:15:36 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B10B6C21DD4; Thu, 14 Nov 2019 20:04:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A4B88C21EAE; Thu, 14 Nov 2019 19:58:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D1FB0C21E90; Thu, 14 Nov 2019 19:58:49 +0000 (UTC) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by lists.denx.de (Postfix) with ESMTPS id B98ADC21DA6 for <u-boot@lists.denx.de>; Thu, 14 Nov 2019 19:58:34 +0000 (UTC) Received: by mail-io1-f68.google.com with SMTP id r2so3075412iot.10 for <u-boot@lists.denx.de>; Thu, 14 Nov 2019 11:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t864eOaIkj4SWSkaZW/mNaEMekjbhLviZF8Q5z28lm0=; b=lBm4eyMfSXmWvyLX2RMyXZW5vJzRsImy++oxno0DyfEK2ctwUJPMj0bapYAWHG9TeZ 4Du6Mr5beOzOSBso8K5C70cmgRF8eCdVdYWblGrnTeNVydcf1ZQG/466Hsk7Yu9XTgYv j8qw89xZ/QZsHmuBGubnlTOvZFCqfLI/8ePCM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t864eOaIkj4SWSkaZW/mNaEMekjbhLviZF8Q5z28lm0=; b=gxGL/sOoSw8osK+EabPqd6kI5bNRF99EHy2gPY3k17rTwIf6aAV9ZI6VDyRxBM6sQL Vqe+oc0kEyQkUYg4Isfn1zLGYLHSi45y3qSDsmuEGa7jrT8eNcJRy2l5MFkfm4lr2vTt YIbiVqI/H0lpao0jY5HuXWf1W5iqD901xzV86k6Df2+KV3jyQbd6WnULsjb/J7Wcd8bO BaxLw8XQzdCQ8/iaKbSaPqzMcYcVUAXqBYJ6uUrKE1tsdF1b2iKmviHDl7yOqlQSILHW Q1GBmOvb9hMBnxs5oMWcZwg6Ewc0h9+8Z1IEo+ETw5GBFQZyzQTvYzVjL+w7G2NwrVPg i03A== X-Gm-Message-State: APjAAAWR/LD4vRJDZNe/IQDVxD3VVWzqCvq65/Kk4TsmKzA0tq+Os4dE /JB+xjLRAwbfw7wd/QW4a17L8e+hcgA= X-Google-Smtp-Source: APXvYqwQzJaXuqmehq2duGSplbOV9bGPM0ajS5i6XYHxDUevD2R4dtDuD87iaTI5QLKSE5CJ/TxIRQ== X-Received: by 2002:a6b:770b:: with SMTP id n11mr4818805iom.154.1573761513455; Thu, 14 Nov 2019 11:58:33 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id c83sm652546iof.48.2019.11.14.11.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 11:58:33 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Thu, 14 Nov 2019 12:57:28 -0700 Message-Id: <20191114195751.30357-4-sjg@chromium.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191114195751.30357-1-sjg@chromium.org> References: <20191114195751.30357-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Marek Vasut <marex@denx.de>, Albert Aribaud <albert.u.boot@aribaud.net>, Tom Rini <trini@konsulko.com> Subject: [U-Boot] [PATCH v4 20/42] arm: pxa: Drop pxa_wait_ticks() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
common: Further reduce common.h
|
expand
|
diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c index 0b28f0a3ef..14fe307c1a 100644 --- a/arch/arm/cpu/pxa/pxa2xx.c +++ b/arch/arm/cpu/pxa/pxa2xx.c @@ -39,13 +39,6 @@ int cleanup_before_linux(void) return 0; } -void pxa_wait_ticks(int ticks) -{ - writel(0, OSCR); - while (readl(OSCR) < ticks) - asm volatile("" : : : "memory"); -} - inline void writelrb(uint32_t val, uint32_t addr) { writel(val, addr); @@ -136,8 +129,11 @@ void pxa2xx_dram_init(void) writelrb(CONFIG_SYS_MDCNFG_VAL & ~(MDCNFG_DE0 | MDCNFG_DE1 | MDCNFG_DE2 | MDCNFG_DE3), MDCNFG); + /* Wait for the clock to the SDRAMs to stabilize, 100..200 usec. */ - pxa_wait_ticks(0x300); + writel(0, OSCR); + while (readl(OSCR) < 0x300) + asm volatile("" : : : "memory"); /* * 8) Trigger a number (usually 8) refresh cycles by attempting