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: 1540 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F1E433F08B for ; Tue, 21 Jul 2020 17:06:23 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id f2sf12694632plt.2 for ; Tue, 21 Jul 2020 08:06:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595343982; cv=pass; d=google.com; s=arc-20160816; b=zTvPk8BUo1ZfcjhtnzD2oULXB/qmFEvM+qlySU7z45B4LzVcRoZd0t0KuK/K0ojd78 SvTeiXP6DyMm3s9GdFWgS0Xk6WNsAf+RstU1dKUHoQffMxCnNeZh6SNl34lf5edJIlfQ KYLkVx4q2QndFmHRuidG4vULwnXiJZy7K+eqX6WiONOJqGhCos1N9dSHDMIGdMvBr/F7 oJrihIwM2DF8bgg9TwCXgVvwe+7nVlzNXJ3tqp9cNUb++ng6raE8Hc4hOUtNuxGLlKRE FQOsZooXY7K51BOruym29dCFJoFDGh0PwvwbdVc64kyFzA2NFv3qsUBtq0qlcwO66dZz q7yQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=lMtBcV35efsH6dLKDE1SmjNAFjUSOS7I1Y0wXB6SvI8=; b=nUV6X2EzpkOVnrofQ/yxLLsUTYCnDkc6LuJT3X2KLHhLysY8ImvXIzdBNJhM79S0zh dO4m+F+s4lRunyMoev6Dz4JlXBCyDcXGrkAcff/ea7Gqo1XMcMondiijtNWjUv4ZEbcU jZcFKSfepLqzTc1cufgczzzWGpagclt7NE3+mMAxtyW+0EIMpHkq+E7o7Oj5KgOgITyf F1a5nK6PiIZD/ZrKZA7Aq6f5zSUP/OKI7riW3ZyS1N4NfU8esO/Bc+26AL8K1i6Kb0PB TxlxKug+MuAVhPU/SwkhX+mtYHRiupBTRUffEp1BxBanfKfQJm1YtBEr88kQkPXWzaBQ 3Mcw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=B27W27mq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=lMtBcV35efsH6dLKDE1SmjNAFjUSOS7I1Y0wXB6SvI8=; b=bEuAmpyD9liXA6NGV7gVxPUzE3kyak862iX6l6vRRvz5+fxkUTvucH8dxjOW7NYbRQ bgmzmFxGxK+iojf60m1BCNLUyixxsGnwR1eBp3sB9WRQ4kQAOOiLYIaKaToyuN6xe6ow tqJ0Br7/lmRBXrwG3yxMelExCGJ4fGNu6TJ6Q= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=lMtBcV35efsH6dLKDE1SmjNAFjUSOS7I1Y0wXB6SvI8=; b=OREkU8AP/dvYM+v43/ZL/vfpSS8lvBiWybFDD6YB062T4wuiuS++Z7kJ0TGhVwhmeQ Vm/NidbNd8iYoY7IUFCHu4POFwHvoqb1eNLuS3PPnJHA86yopv5DoSq0C96qJ9o+6aSM wHbAy0H7lNVoajTKIGmUgrmNmiPGgCEQN+AuUxQyZR9pVu6imvajaeXxmd+PzaD1wudr XUeRvW8xIrrdgcjJ/DeGMpOpLOVVZb5j51GNF0v3if6tDX6naj9w3DGIb8GRaAhuJBpu /oISQtgu2ODTW2Cr2oa6RM/jfXtQSi/WQ9mhQZSLp5NXxaPWvKGPpk13pnc5PdNjAgNP DlUA== X-Gm-Message-State: AOAM531lylemJ3yqNvCSLqkk+YKATMs6rHqL4GlcwtR0t9PMzHw7NZ1C xoaz68AYFlmpoWpqH9bN5Vk/7e16 X-Google-Smtp-Source: ABdhPJwP8DzkGxFKYfySCdlL4LqhPdz+VHIEkMgXmtmshGePB1VQbjS90YoBRGaYTyYkUcO146SWSQ== X-Received: by 2002:a62:ce83:: with SMTP id y125mr23616304pfg.181.1595343982664; Tue, 21 Jul 2020 08:06:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7757:: with SMTP id s84ls5901771pfc.9.gmail; Tue, 21 Jul 2020 08:06:22 -0700 (PDT) X-Received: by 2002:a62:d417:: with SMTP id a23mr25709892pfh.56.1595343982132; Tue, 21 Jul 2020 08:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595343982; cv=none; d=google.com; s=arc-20160816; b=kSLr0JqM6ZfKJin+ZKiITLgSRVOzgCE+SGhj9O8+GQ0OWjnnHLMcTOddTeHuL2sGz0 usQk6EyuZK3m0BSRDXZvjFs7P3lUGHOnawE8/oKA8582faG6NYaIRxmcpXnylVLeRwet wYwc4c+hjjTCm/xxMF3EJsuzwi4aZDgBo4y1G+fL+zJGDqZXdt1GRuUmvDbIOoHAgO// 86BFrkvgJGLK6SeXhMJo+pd8YgPt7gYE6B8bhi865JukjrlD7Kco7bI1pzoK33VVMD17 muIO/OkZIFAzczKZQi4PcG5pjKr6RSSOwwjg9+RPOznIMyGA2ZUWWduhTsiI2Mg7Hpl/ JlEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=F9o8IbO7BuI5UkE49nZ1zkI6iT+uS2Mc8/UsqLotu1c=; b=uvBRfWOaohEjYYbmEfQR9BlHCy3ui8NpVo8I634LMuhfwMpPvNmpSpMlkH0gMh9vgc w3AITAw5Led1Qa1jKmFbYyLIlVU4mLBoPBXREqWFFajxUX/2SU1kmUwPD2cBelQ/DpXM 3VusjZZN1aj3/6p3cG27hdX6FD3DzGFwvfcEBC0mLBl3mC9DJiwbzkFaxgblhgF21lSK Cy9IJ2lYNTU9vk3RS4Gdap1jSOeKkF1Pt/r7BMqgRXmSCuRl6MC1OrcLV4duSFjEKhAz TFmFFk66GFvMg4d8F8qbERh+R6VSxm0BJ1ouWgRTRkx7R9Ar3MHBB3z1UdqayUP7tfx/ SHxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=B27W27mq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o94sor3805347pje.28.2020.07.21.08.06.21 for (Google Transport Security); Tue, 21 Jul 2020 08:06:21 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=B27W27mq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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();