From patchwork Tue Jul 21 15:06:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11675837 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C1FD1667 for ; Tue, 21 Jul 2020 15:06:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9784420771 for ; Tue, 21 Jul 2020 15:06:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jTeiafp3"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="B27W27mq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9784420771 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dnhdEevzckZ99FgT3vphKhv161hsQFdL8DJPR+4LnpQ=; b=jTeiafp36kJ4UlZAdXj+kVjqS AMsp4XaxVtQlFuAP6/lsNQBolxEK4W6z7OD5Q8UsDULRuNxkmxL/0Rk81Ckf6uRTHckRnRp7koJ7w P7J6Hqo+U/6ItRfAQPS1lwZszZQX/6xfOZVdRO9Bz7XOlA7mZ8cRe4hkAL8vND0tweO+uYkXLQtQM 6MYuRAW/xRNRQidan6ItzQRUy/u1AVm0iqKhA8pEWPJGaoXMkElaoLJOoYo4WmDu+Tf9MVy+Snze/ pLN99QNRr33cCKF41BR6aOpo4ZFPcbJ3pACGP/IucfZsTFKHyJvV2XGzLWsKVLfaX1Dl/H4FHQGBk JRB7562cA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxtqb-0007L8-33; Tue, 21 Jul 2020 15:06:25 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxtqZ-0007Fc-2Q for linux-rockchip@lists.infradead.org; Tue, 21 Jul 2020 15:06:23 +0000 Received: by mail-pj1-x1044.google.com with SMTP id mn17so1708870pjb.4 for ; Tue, 21 Jul 2020 08:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=F9o8IbO7BuI5UkE49nZ1zkI6iT+uS2Mc8/UsqLotu1c=; b=B27W27mqRTAhkyLMAxM+nHzUTOM+2mQkWoN5gl6cxDWo9Dr8cSHG2gpQTbHgkNsSH8 6+syt7RAhAj6ITBtIGotvm0fiw+YrCi+FgWLO2ek6ca6btElV0MUUBeNWcCGPfcxAIHy FxlebhhUx1B5Xh8nHtysMqfNxtB+gAkgcxFLY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=F9o8IbO7BuI5UkE49nZ1zkI6iT+uS2Mc8/UsqLotu1c=; b=L1uvvizbUFnsDpjc5sn+TT0Dfn5c5a02xuYEYxopYVdUE+Mc36RphHHxjTNka4KsLQ AOPxYnCSHwSoOnxUQOIR1JctAlt4XSLuJIveRzu8vtRnzKpzdhonWPnUyKmueWAVifWf HBtsIuVcLzaS/3a+zViNy6BBWBErdg6x+jMWzv9jtpIF3fNkRcF13V3l0GAqmPh78FVl rQ55qEwCji3X5ADmz4/p82/qVH6g4/w5hLf+qUh1KELfxdm/ydgGhfzlrw4ErolA8DC4 PxWChTdBBRyXitl/355IOWC+NPxw4aX5Pcnp1p99AuyhpLDFMVvm+83PT42zPFNXNA1q 6b1g== X-Gm-Message-State: AOAM532HxAshdAhnR474WBCg6pw+W0YqcQaS0awRDY10wUhIQzYx8XKN HBYr4ecG9VfHZGogDAkprEKZfw== X-Google-Smtp-Source: ABdhPJyBSr8AfNNOjSBff0c8E/TLhP7VYtHqx6EqPxezDZ4+Sqpr5fV3jP6g854WrsngWi5sBA1TFw== X-Received: by 2002:a17:90a:c087:: with SMTP id o7mr5204379pjs.37.1595343980856; Tue, 21 Jul 2020 08:06:20 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:3df7:ef76:b2b5:fa14]) by smtp.gmail.com with ESMTPSA id h9sm20671276pfk.155.2020.07.21.08.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 08:06:20 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v6 1/5] rockchip: rk3399: Add weak led_setup() Date: Tue, 21 Jul 2020 20:36:00 +0530 Message-Id: <20200721150604.35410-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721150604.35410-1-jagan@amarulasolutions.com> References: <20200721150604.35410-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200721_110623_204838_96D49E14 X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1044 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Suniel Mahesh Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Add weak led_setup() so that board which has an uncommon led setup code that can make use of custom implementation. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v6: - new patch arch/arm/mach-rockchip/rk3399/rk3399.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c index 4fda93b152..c643483971 100644 --- a/arch/arm/mach-rockchip/rk3399/rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c @@ -241,8 +241,14 @@ static void rk3399_force_power_on_reset(void) } #endif +void __weak led_setup(void) +{ +} + void spl_board_init(void) { + led_setup(); + #if defined(SPL_GPIO_SUPPORT) struct rockchip_cru *cru = rockchip_get_cru();