From patchwork Tue Aug 7 07:57:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 143567 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4198572ljj; Tue, 7 Aug 2018 01:01:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdo/v5Fn1aDVuiMeQPLq7b+aJcQ+VeEopO99m6GupqgO3HJYOYIQA9wfGGDEU81sOiwAHIg X-Received: by 2002:ac8:26ee:: with SMTP id 43-v6mr17770642qtp.274.1533628882138; Tue, 07 Aug 2018 01:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533628882; cv=none; d=google.com; s=arc-20160816; b=q8JC3qgzOG/O4EMFAFu/CW3ssdTnJRer/mXM5lutXPU2402bfZPpDLP+RV06334f/n Zv9+RnNnl+MXC5MxqJuHxbVjhL62asaX4quLYU6xDBUSazZEBjeP1F+U+mNp1PLi5ycR Vzs3H6da/9m73AV/lYpOolrGWwLkGWcjJMM0WdnxSqhzhvCxEigDxM8RkBORqvFXHVCJ VvQ+ojL+MKGVpKQ/t5y6q5yMa2qCwoB1WVb5Y+ihK3Tjw4HgVc/dy5E8Cw1z4j1ASh4O +fO3lE+D43DZ+d597V1PuHTXldk4ywz3W4/hyOPURDK+E2foTzETyCGo2XMnEt1d2+KD C/6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=IwxgDWYwXXaZerE0XDTDwsloGi00V2OC1UcWga4a5gM=; b=CyolSGOKKruUWpY0b0HKOJRnaEEbRpO/+XuvlFd1Kbl1cQcmF1Wc7pCPIvDgce9ahj I3OnDuKsGByMygJoONMSRHppbr2+SDcW3CM1g2ciQA7Vbc3JhPSVehhwZs7oTQOEaEUQ LG4h1tl18b9zFdD8nVbcF7WdZuiT2Rm6PaZ1RjgfZoSZcZOLOarlEDibXf/g4jdcFVbl a1A+jYCcVaHE18iUxFEoYTc///qLuVv676o+kWJHgv4RMT5yUFMNsWPOSkb8v0MKr5wW kzAym60WiSCcgd+6BSnR44IwK4dLEERypU8LqwqBQLIuSrB6GE2iuDlyZVIEY54QwFAm myWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lhkKUzoN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k5-v6si681971qkb.28.2018.08.07.01.01.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 07 Aug 2018 01:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lhkKUzoN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:37819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmwvh-00056N-It for patch@linaro.org; Tue, 07 Aug 2018 04:01:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmwt3-0002m8-30 for qemu-devel@nongnu.org; Tue, 07 Aug 2018 03:58:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmwsy-0005ZN-85 for qemu-devel@nongnu.org; Tue, 07 Aug 2018 03:58:37 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:38402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmwst-0005Xa-TT; Tue, 07 Aug 2018 03:58:28 -0400 Received: by mail-pl0-x242.google.com with SMTP id u11-v6so6777552plq.5; Tue, 07 Aug 2018 00:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=IwxgDWYwXXaZerE0XDTDwsloGi00V2OC1UcWga4a5gM=; b=lhkKUzoNTYy+pvdb/wqFZzoHgaNzpvjeBhP912q+kEd79EDjdpRxRaWp9AWPAJtnFK a5hKXzpZTdprf8ZoSozMrzTWge1c9zmXoNIncJ9V2OlXVPpT3zTu8+PSJ+4GNg8DvM4A sxYWj5iH5YduCNRI+G3IV3ctV6rA8EW1+hcTiPbj74RVD94BBd0QTWwKei7w4iWNt68E i0E26Wkx9LpBKb3O3btnI4ctfXHK6hr6B6n0kjp/TWSGGF03B2AKRKISzznNxDUgX/Gn m0Xzvd4ipI5vbEpl3xxfJIAZZyavNFJoDfQ99OKZsxzRDO1BcR3Wsq1YZaYj9oQFNFsm lICA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=IwxgDWYwXXaZerE0XDTDwsloGi00V2OC1UcWga4a5gM=; b=s1oq+qdGMNDO1izsOPQpp1C2F9oCnzVGUzIWRsGGGfBfVOe8w0oNdWnVT69eU0p0uD NVZReK+8+Mk8rZHRUfmPbjfBJg5e4fOuiOiib4dfF34YA/JJaVUcOuGzR0XCXXySPz5N asR6OVbe6lH9tyfQZOlbnpbI93DIr1u6QG9JqbaLmIvjTLRRbSc3QmPYL3M6GOVskRFp vMfUxNa9vlUpi+IDp0Nk8GfX4VGqsJHJ+N1BeZMJHC7HjAMZFWtJ/KT3vjJHuLsLRtAx 56NgDtapF4RssppisC+TtmqM+FRjxEEje9qrTU8zVm49FzSQVn7iH/xZzwgpiJUWRa7X aXDA== X-Gm-Message-State: AOUpUlE+B7vgBqzDE7Bfuyr3SuTTB/cx7iAaDFVaM8J+qVBP7OIyWlGO q/LU2BN7iJTf3AzZutDwtIg= X-Received: by 2002:a17:902:d706:: with SMTP id w6-v6mr16747940ply.158.1533628706942; Tue, 07 Aug 2018 00:58:26 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id a191-v6sm991550pge.45.2018.08.07.00.58.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Aug 2018 00:58:26 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 07 Aug 2018 17:28:19 +0930 From: Joel Stanley To: Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goa?= =?utf-8?q?ter?= Date: Tue, 7 Aug 2018 17:27:53 +0930 Message-Id: <20180807075757.7242-4-joel@jms.id.au> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180807075757.7242-1-joel@jms.id.au> References: <20180807075757.7242-1-joel@jms.id.au> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::242 Subject: [Qemu-devel] [PATCH 3/7] aspeed_sdmc: Set 'cache initial sequence' always true X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , qemu-arm@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The SDRAM training routine sets the 'Enable cache initial' bit, and then waits for the 'cache initial sequence' to be done. Have it always return done, as there is no other side effects that the model needs to implement. This allows the upstream u-boot training to proceed on the ast2500-evb board. Signed-off-by: Joel Stanley --- hw/misc/aspeed_sdmc.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 Reviewed-by: Cédric Le Goater diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c index 24fd4aee2d82..9ece545c4ffa 100644 --- a/hw/misc/aspeed_sdmc.c +++ b/hw/misc/aspeed_sdmc.c @@ -226,6 +226,7 @@ static void aspeed_sdmc_realize(DeviceState *dev, Error **errp) s->ram_bits = ast2500_rambits(s); s->fixed_conf = ASPEED_SDMC_HW_VERSION(1) | ASPEED_SDMC_VGA_APERTURE(ASPEED_SDMC_VGA_64MB) | + ASPEED_SDMC_CACHE_INITIAL_DONE | ASPEED_SDMC_DRAM_SIZE(s->ram_bits); break; default: