From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 25 Sep 2023 13:11:15 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkjUi-00ATYb-I9 for lore@lore.pengutronix.de; Mon, 25 Sep 2023 13:11:15 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qkjUg-0004v5-8C for lore@pengutronix.de; Mon, 25 Sep 2023 13:11:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:Cc:To:From :Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mLvfNpb01zACcHcQMt6d9E80uvu5LJyI5L5mMFcHYA4=; b=PQmRKbeWIbaCR1c/n1VAiBtujD pzQSOf12r1+gftlDA3i427wWgijPGRBVlY5KWZojaP3VnYM+Y0i0E8EdXdwdBLDPEcJN0c1hgp0Ji 9nRSTqQXCCZ7iRmu6oPHUb0nl+anQ0LEWY6hwFEv5K+n+GG7AGdlcQ40XU9mlwmqzrI5ziS49Rh6w If72z5NNZTgCZBzY6n0V5z7MXSdg3sy7iIAh3voNvJs64BP+1OLMqt+5GlGclGmWzQ7eMA0PfdqTk LCuhNHNcXtxjp9+8xUisDMBhGF5zMRzCSKiQ/PS5qRWSEgX5gYb9u8beS+iw+wern2EwtAeSxF4ez oqnWcwRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkjTZ-00E8x2-0h; Mon, 25 Sep 2023 11:10:05 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkjTV-00E8ve-2l for barebox@lists.infradead.org; Mon, 25 Sep 2023 11:10:03 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2c022ce8114so98033631fa.1 for ; Mon, 25 Sep 2023 04:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695640194; x=1696244994; darn=lists.infradead.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=mLvfNpb01zACcHcQMt6d9E80uvu5LJyI5L5mMFcHYA4=; b=f7oGD7wOatic0zSqAMZAL/VFKnQFiIQTnjKsY1BvtBizKj0oeEgXW2DiwCCnXjre3h XRnuGa4z6iDQOLvABH5BCidF5Nteac5Guw38GnNWltAQ5P+0OZzv6LC2NpgqUSn3PQoF LMkdt9y6iiR8aLiUfLM2UFwBT51bF1PfiLCnY/XmzUBoUEWy3vccBbgVKL5FW9aUzyxh VuDYce539LSFkOBb3+aA1latqS2D6bwLJsgI+eWkhqb56e5qd4pzlD5D1aomcWZn3Rcc VW4ydPH6+atrfecy0ysEQEXIbBN8z/JrnQtOL4hZ3TOIedbWcM8lhPIp6c5CX4C7Ps4c cWXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695640194; x=1696244994; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mLvfNpb01zACcHcQMt6d9E80uvu5LJyI5L5mMFcHYA4=; b=Pc20z2eFCSm+CwGw6uyQVvRct2pZJrkAhCf9h48elAYhVty+RgIsBQiaVKyvowMcix 5GadPnUwPWE2wHeVExZqOGGe1oMsE58THiqRgC0YFgVBvHQ+WGJtNndIQf99cyHu97wq WUh3guNqOTKOaJg7zSTxlzMv17viIVZn1wUDg4auNHS1eEd2J3v+fHVd88BPFZQojQTt eoI0PZrofz8fxiO2Jcy/kFrYSheU21kJ+uqkzv3/Z2HPucoNvWarygRPofT8Kk8rECZx FIjwjtlZlAaX7BqL7xN8+SfHVAMyHcSpyHnTyiUOeItws9UI6CkCbCCIlWyRoaSl4rAB 3B2Q== X-Gm-Message-State: AOJu0YwhbTK2z+0cQ8tL7uWa9cZwvf/zkv9fH+CbRKU1q7I7sdvdf7BQ 9zq2y5sCh5gP5PiNUFVZnpTJ5YhbxYM= X-Google-Smtp-Source: AGHT+IEXqMlNh6Tx2WZCt80NBCMY90mOjqw+25RdFMpUJ0JNw91w3oOXFjZhyV04nARQ6vmk2ou8Sw== X-Received: by 2002:ac2:4d90:0:b0:503:74c:9446 with SMTP id g16-20020ac24d90000000b00503074c9446mr4107543lfe.24.1695640194169; Mon, 25 Sep 2023 04:09:54 -0700 (PDT) Received: from lifebook.fritz.box (p200300da6717b70030ba293c6b339dee.dip0.t-ipconnect.de. [2003:da:6717:b700:30ba:293c:6b33:9dee]) by smtp.gmail.com with ESMTPSA id f1-20020a17090624c100b009ae3e6c342asm6123832ejb.111.2023.09.25.04.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:09:53 -0700 (PDT) Message-ID: From: Denis Osterland-Heim To: barebox@lists.infradead.org Cc: Denis OSTERLAND-HEIM , Ahmad Fatoum Date: Mon, 25 Sep 2023 13:09:52 +0200 In-Reply-To: <20230925110716.5370-1-denis.osterland@gmail.com> References: <20230925110716.5370-1-denis.osterland@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.1-0ubuntu1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_041001_900465_603562CF X-CRM114-Status: GOOD ( 14.94 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.7 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v2 1/2] raspi: support to read vc values via dt-2nd boot X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) RnJvbTogRGVuaXMgT1NURVJMQU5ELUhFSU0gPGRlbmlzLm9zdGVybGFuZEBkaWVobC5jb20+CgpJ biBjYXNlIG9mIGJvb3QgdmlhIGR0LTJuZCBwYmwgZG9lcyBub3QgY29weSBkdGIsIGJlY2F1c2Ug aXQgaXMgbm90CmV4ZWN1dGVkLiBXaXRoIHRoaXMgcGF0Y2ggdGhlIHZhbHVlcyB3ZXJlIHJlYWQg YW5kIHJlZ2lzdGVyZWQgYXMKZml4LXVwcy4gSXQgYWxzbyBhZGRzIGEgaW5pZiBmdW5jdGlvbiB0 aGF0IG9ubHkgZml4LXVwcyB0aGUgZXRoZXJuZXQKTUFDIGFkZHJlc3Mu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