From patchwork Tue Nov 6 22:21:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 993953 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42qPSV0KSDz9sBh for ; Wed, 7 Nov 2018 09:32:42 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C4F63C22756; Tue, 6 Nov 2018 22:25:56 +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_DNSWL_BLOCKED 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 93094C223DE; Tue, 6 Nov 2018 22:23:22 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DA618C2273F; Tue, 6 Nov 2018 22:22:41 +0000 (UTC) Received: from mail-io1-f74.google.com (mail-io1-f74.google.com [209.85.166.74]) by lists.denx.de (Postfix) with ESMTPS id 24321C22737 for ; Tue, 6 Nov 2018 22:22:34 +0000 (UTC) Received: by mail-io1-f74.google.com with SMTP id w13-v6so16715677iop.2 for ; Tue, 06 Nov 2018 14:22:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=GvF8sDuZs01G+L2s7xAoHHuK+aQZYeh+iNDoNp7fRx8=; b=M6wSZh39nOuBtsMViz/x/9+Pb4bC5tdwOpv9iI5QCF54EsMvARcnZEKNrcGHz0K6Mt 2lsCweVsckCe/0yiEevJW3p//mx1jiWzYs5G/uIYmlS/tD5M0oBGFeg4BoMCw6+g2WYv 2iP9D1tP8mlby5RDoq1JYHsgt9Q2OTPfRNH7E6W1NLNdXy0HlAnr423xg8os5o+PArLs B8xL0Q+vF/wr+yfAA1voGZlI1K12NFRPnQX5HRRivJ974ukXpw+wjjK4geFjzQDF5ZGX 4yOlfa3YT07xDV0upkrjvQiWbIey37rA638/X6PDJ77muy7Y24PFAgyFHBg9StdUZyfB WV4w== X-Gm-Message-State: AGRZ1gJW5qb3d2jUGfWVATEwRqmlGgwaxkDPvL60aKOAx3FpM1Otcb5G zC0RpOx/MTuTA3bLodBXss91wLo= X-Google-Smtp-Source: AJdET5cA9mU+h/R/05uaDzClhvFOu2P0gaeosRFjNsOVBSSRNChVr19oWJnrOXnYmhsesCZu4B3qumY= X-Received: by 2002:a24:8785:: with SMTP id f127-v6mr2545266ite.6.1541542953194; Tue, 06 Nov 2018 14:22:33 -0800 (PST) Date: Tue, 6 Nov 2018 15:21:27 -0700 In-Reply-To: <20181106222142.94537-1-sjg@chromium.org> Message-Id: <20181106222142.94537-11-sjg@chromium.org> Mime-Version: 1.0 References: <20181106222142.94537-1-sjg@chromium.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog From: Simon Glass To: U-Boot Mailing List Cc: Joe Hershberger , Miquel Raynal Subject: [U-Boot] [PATCH 10/25] sandbox: Update some drivers to work in SPL/TPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" At present sandbox drivers are mostly not used before relocation. Some of these are needed by Chromium OS verified boot, since it uses sandbox TPL, so update them accordingly. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- arch/sandbox/dts/sandbox.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index fb866e88079..1cda911d1f0 100644 --- a/arch/sandbox/dts/sandbox.dts +++ b/arch/sandbox/dts/sandbox.dts @@ -20,6 +20,7 @@ cros_ec: cros-ec { reg = <0 0>; + u-boot,dm-pre-reloc; compatible = "google,cros-ec-sandbox"; /* @@ -27,6 +28,7 @@ * that the STM32L flash erases to 0, not 0xff. */ flash { + u-boot,dm-pre-reloc; image-pos = <0x08000000>; size = <0x20000>; erase-value = <0>; @@ -59,6 +61,7 @@ }; gpio_a: gpios@0 { + u-boot,dm-pre-reloc; gpio-controller; compatible = "sandbox,gpio"; #gpio-cells = <1>; @@ -67,6 +70,7 @@ }; gpio_b: gpios@1 { + u-boot,dm-pre-reloc; gpio-controller; compatible = "sandbox,gpio"; #gpio-cells = <2>; @@ -178,12 +182,14 @@ }; spi@0 { + u-boot,dm-pre-reloc; #address-cells = <1>; #size-cells = <0>; reg = <0 0>; compatible = "sandbox,spi"; cs-gpios = <0>, <&gpio_a 0>; firmware_storage_spi: flash@0 { + u-boot,dm-pre-reloc; reg = <0>; compatible = "spansion,m25p16", "sandbox,spi-flash"; spi-max-frequency = <40000000>; @@ -239,6 +245,7 @@ }; tpm { + u-boot,dm-pre-reloc; compatible = "google,sandbox-tpm"; }; @@ -256,6 +263,7 @@ /* Needs to be available prior to relocation */ uart0: serial { + u-boot,dm-spl; compatible = "sandbox,serial"; sandbox,text-colour = "cyan"; pinctrl-names = "default"; @@ -350,3 +358,10 @@ #include "cros-ec-keyboard.dtsi" #include "sandbox_pmic.dtsi" + +&cros_ec { + u-boot,dm-pre-reloc; + keyboard-controller { + u-boot,dm-pre-reloc; + }; +};