Message ID | 20220527181820.24948-1-macroalpha82@gmail.com |
---|---|
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: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=T7+Gop6Z; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L8tNM237Lz9s1l for <incoming@patchwork.ozlabs.org>; Sat, 28 May 2022 04:18:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E2C338435C; Fri, 27 May 2022 20:18:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="T7+Gop6Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3EAE984363; Fri, 27 May 2022 20:18:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A5EB98334E for <u-boot@lists.denx.de>; Fri, 27 May 2022 20:18:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=macroalpha82@gmail.com Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-e93bbb54f9so6633904fac.12 for <u-boot@lists.denx.de>; Fri, 27 May 2022 11:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fp+er5zbE6p/x+DjAi95UYMF5SEox2AfJb7Z4XbewkU=; b=T7+Gop6ZTGq1JqHXbEonzVfgpPRocap2+aFFmIym68LP++lCr9R+uv0wGmlhq9KNKA ZbcsV/vYOQL7qG9+YryQ4cgjlKzEW0i2xWgQQQedxN/QJ+cQ5v+exAjVboBMoF5eE4Tc l/BXUEF+ccg02RjrPth8JxkGfhJ7JXO39crapqJbR2bw1WukZD3OBus4WBp7a2NM68Oy 2HLII7Ma93pLsaBeo1HNWKcLQF0iiT9ZSjIVew6uxDjvLpKsidFKktxprAlwjysfpJPm ZQjLce2Sb5YhR7MbuxquDQBaJVydsjv4q/8QRU+SHjeQwo9rO/N+yE8MyuKSIsEGjShb G9nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fp+er5zbE6p/x+DjAi95UYMF5SEox2AfJb7Z4XbewkU=; b=DIJM8kIVXZY90aygUvWn6pdP+nrpOqFFkMZ42IzyVEQHFKrpQCgIqxjrLMILC6JCvh WTu7ZErYj/5MrHZYH7itr6oz9THixf9yQPtqTQRNMDNnuvhfBp9dW1MYY0Y2HKBmXV3/ UpjkmAKk6Cv6OBmxdLTVoT2FudNcICPyeSPzOIfptcI6AZy8rGWgb7SMXzBgLXzuzN+u xZiSkz5NBGnbCsfLGHQQ2oZ4kqn5KhX0zdvsrXwwPtSx978YhJRDd2MkGbXWfmUnS1ot ABkSPDeZg2Qkh5RjVh+AcnJvuWXEOc0fwOeCUePzQAJYOcLG7uCHnCApFrrWoai+8nEs IQaA== X-Gm-Message-State: AOAM530l/Gg4+7DMsVUjQ+Mh4Jt0Qhd12eJcclyQjIQGC+HIjn6BH8Uo Xg422sosOhM8cjz4/Yv0SmYvwsDZ797HDQ== X-Google-Smtp-Source: ABdhPJxOZPW3fDEzwMuIMvt0KnfpQpZtQkT2qnUwiJhWAimIELkHeoDJ3HFCCsZiRaoYQyT0COR4Gg== X-Received: by 2002:a05:6870:891f:b0:e1:ec98:3c59 with SMTP id i31-20020a056870891f00b000e1ec983c59mr4833340oao.295.1653675511056; Fri, 27 May 2022 11:18:31 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id g3-20020a4ad303000000b0040ed6225457sm1701300oos.47.2022.05.27.11.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:18:30 -0700 (PDT) From: Chris Morgan <macroalpha82@gmail.com> To: u-boot@lists.denx.de Cc: jh80.chung@samsung.com, kever.yang@rock-chips.com, philipp.tomsich@vrull.eu, sjg@chromium.org, Chris Morgan <macromorgan@hotmail.com> Subject: [PATCH v2 0/2] Rockchip: Add option to prevent boot on plug-in Date: Fri, 27 May 2022 13:18:18 -0500 Message-Id: <20220527181820.24948-1-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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: <https://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> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
Rockchip: Add option to prevent boot on plug-in
|
expand
|
From: Chris Morgan <macromorgan@hotmail.com> Sometimes it is desirable to prevent a board from automatically booting as soon as the power cable is plugged in. For boards with an rk8xx PMIC, (excluding the rk808) we can actually query the power up source. Changes from V1: - Moved a comment as requested to be above a function. - Removed unneeded variable of "plug_in". Chris Morgan (2): power: pmic: rk8xx: Support sysreset shutdown method rockchip: Add option to prevent booting on power plug-in arch/arm/mach-rockchip/Kconfig | 10 ++++ drivers/power/pmic/rk8xx.c | 84 +++++++++++++++++++++++++++++++++- include/power/rk8xx_pmic.h | 3 ++ 3 files changed, 96 insertions(+), 1 deletion(-)