Message ID | 20201215144230.9235-4-m.szyprowski@samsung.com |
---|---|
State | Superseded, archived |
Delegated to: | Neil Armstrong |
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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=A49SQpxj; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CwLbZ43Lrz9sRK for <incoming@patchwork.ozlabs.org>; Wed, 16 Dec 2020 01:43:14 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D5CEF82998; Tue, 15 Dec 2020 15:43:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.b="A49SQpxj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC000829AC; Tue, 15 Dec 2020 15:42:59 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E52E382998 for <u-boot@lists.denx.de>; Tue, 15 Dec 2020 15:42:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=m.szyprowski@samsung.com Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201215144246euoutp02cfbdf7a37c9108de0d2fc988a6ab10fc~Q6uwLQ1Cp1508115081euoutp02i for <u-boot@lists.denx.de>; Tue, 15 Dec 2020 14:42:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201215144246euoutp02cfbdf7a37c9108de0d2fc988a6ab10fc~Q6uwLQ1Cp1508115081euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1608043366; bh=niKH6BNL1ADCXiwc4ADswQfLUZeqREE5EgoAsfjsh+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A49SQpxjIUmq0hvhmf/SvLOKg+IVglxX2LztlSu4WsNjiRZRBTn65lmGDB7sH+XQ2 DNydCbj1Xxb8frA5qdkGYSJK8LVGaWaNVpK+doo9nvy3+4qgtatUlYWA0ckTR7zU6C 35Widjd7C7kY4Gw5H4esnl3dW0sXDwdxQ6PX1Jyo= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201215144244eucas1p2974afe13adbb673fe9a96ca91b09a627~Q6uuQAR590385003850eucas1p2C; Tue, 15 Dec 2020 14:42:44 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 3C.C0.45488.46BC8DF5; Tue, 15 Dec 2020 14:42:44 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d~Q6utb5-C-0484804848eucas1p1W; Tue, 15 Dec 2020 14:42:43 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201215144243eusmtrp2deda85c1f18d1149da21f41bff07170e~Q6utbUQqb2505225052eusmtrp2w; Tue, 15 Dec 2020 14:42:43 +0000 (GMT) X-AuditID: cbfec7f5-c77ff7000000b1b0-a7-5fd8cb64b6c5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B1.A0.21957.36BC8DF5; Tue, 15 Dec 2020 14:42:43 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201215144242eusmtip2a6c21445821e0abd06283e88637d34e3~Q6us4GTIY0137801378eusmtip2C; Tue, 15 Dec 2020 14:42:42 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: u-boot@lists.denx.de, u-boot-amlogic@groups.io Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Neil Armstrong <narmstrong@baylibre.com>, Lukasz Majewski <lukma@denx.de>, Philippe Reynes <philippe.reynes@softathome.com>, Simon Glass <sjg@chromium.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Jaehoon Chung <jh80.chung@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Subject: [PATCH v2 3/7] adc: meson-saradc: skip hardware init only if ADC is enabled Date: Tue, 15 Dec 2020 15:42:26 +0100 Message-Id: <20201215144230.9235-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215144230.9235-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42LZduzned2U0zfiDV50s1tsnLGe1eLGrzZW i+fvLjNZrD1yl93iUF+0RcdhZYtvW7YxWkya8IvN4u3eTnaLw1M/MDpweby/0cruMbvhIovH vFknWDw+fIzzmN/5ncnj7J0djB59W1YxemxcdoA5gCOKyyYlNSezLLVI3y6BK+PDv1dMBfM4 K1ZOW83awPiBvYuRk0NCwERiZccPti5GLg4hgRWMEl09m5ggnC+MEk9a+9ghnM+MEo2vL7LA tHxcv4oFIrGcUeJc+1wWuJbVXQ+ZQKrYBAwlut52sYHYIgJGEpeadoAVMQvcYZLomtwANkpY IEzi2q7FjCA2i4CqxMnDL1hBbF4BG4mp91ezQayTl1i94QAziM0pYCvxZ+IqsJskBI5wSGx6 +ZEZoshFYt+nm4wQtrDEq+NboN6Tkfi/cz4TREMzo8TDc2uhunsYJS43zYDqsJa4c+4X0DoO oPs0Jdbv0ocIO0p0zr7JChKWEOCTuPFWECTMDGRO2jadGSLMK9HRJgRRrSYx6/g6uLUHL1yC Os1D4vGjJcyQEJrAKPFnwTuWCYzysxCWLWBkXMUonlpanJueWmycl1quV5yYW1yal66XnJ+7 iRGYYk7/O/51B+OKVx/1DjEycTAeYpTgYFYS4e0tvR4vxJuSWFmVWpQfX1Sak1p8iFGag0VJ nHfX1jXxQgLpiSWp2ampBalFMFkmDk6pBqYKqX2/cvJe/Gr3CrybU9XpsCFE2+3Asalixd// Jqy8KJwi9uWL4724Q5d8A20YnY8ccBYNCHgpaM/wsGhi+7bL/2RUJi9gXHVr28Z2cZPCSzOt pW3XCBx9KzthirtngHr9Qx77YtfOl3sXbWl+uCyv2N9x5hK+m7pz11xKcWDxWlO5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73/4+MGznWt+/FjavSv9 1dztpod55wY77trv8/XTJ7eFT41+Bsv82vp74duM61oa+bek5l1ivufdoJ2jZjDB+M6f7X2H PI8tES1kLeiv513Ns00s/Xhe+NXksynVL535a6I+tC1gm3/J2Xy+8I6Ib215fzgMlFiKMxIN tZiLihMBlwTXdP8CAAA= X-CMS-MailID: 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d References: <20201215144230.9235-1-m.szyprowski@samsung.com> <CGME20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d@eucas1p1.samsung.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
VIM3: add support for checking 'Function' button state
|
expand
|
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 998cef24d8..ce7ae990ad 100644 --- a/drivers/adc/meson-saradc.c +++ b/drivers/adc/meson-saradc.c @@ -512,8 +512,11 @@ static int meson_saradc_init(struct meson_saradc_priv *priv) * reading the temperature sensor. */ regmap_read(priv->regmap, MESON_SAR_ADC_REG3, ®val); - if (regval & MESON_SAR_ADC_REG3_BL30_INITIALIZED) - return 0; + if (regval & MESON_SAR_ADC_REG3_BL30_INITIALIZED) { + regmap_read(priv->regmap, MESON_SAR_ADC_REG3, ®val); + if (regval & MESON_SAR_ADC_REG3_ADC_EN) + return 0; + } meson_saradc_stop_sample_engine(priv);