Message ID | 20190722120221.25468-24-kever.yang@rock-chips.com |
---|---|
State | Accepted |
Delegated to: | Kever Yang |
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=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Nv/HD7hH"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45sp3J629yz9s7T for <incoming@patchwork.ozlabs.org>; Tue, 23 Jul 2019 03:08:28 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 784A4C21E16; Mon, 22 Jul 2019 17:08:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2C3E8C21CB6; Mon, 22 Jul 2019 12:10:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 53779C22030; Mon, 22 Jul 2019 12:10:00 +0000 (UTC) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by lists.denx.de (Postfix) with ESMTPS id 5BB48C21CB6 for <u-boot@lists.denx.de>; Mon, 22 Jul 2019 12:03:15 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id u14so17289907pfn.2 for <u-boot@lists.denx.de>; Mon, 22 Jul 2019 05:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=3N36SlaO5DpxXK8hJ53WUbv2wVpm660VzhwYAM22y8E=; b=Nv/HD7hH/JkBJQ4AaMyFXERbyT4eWV7Beb3/BASms5xAgJTWMpl3hyZyDY8/K/Pebt ecR/sbODLJZp93dHc05aYCqIfUWDGrxG7lhSWgghboLv0TaoI/v52LuIE38lzZK5tDpF HDp7XaEfczGloBiQYBFjlOz+wXD30vZoxOFgLPfWIBxgrnRFh+X/AwUd+xwY0Arzzme0 XUbnLCvdZ2Q3gZXR7nhYrabz+NbIzcYhUgGgeMIrQOvbqT7iJR1Fvz/0Zm15Z6d66YY+ 98qYvhKzzwpYqjxEFIDpVkS0q1cuXJb7zIq87zXG5F7cbPkzbtAHeJGnUnxM7ES1ZXLN +BdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=3N36SlaO5DpxXK8hJ53WUbv2wVpm660VzhwYAM22y8E=; b=oIDl2wwjdL91RtGnjZj41YsqRLeDvnr07mFqSXIKTZjeLo6fDL88gfR1LljBRg1erY nRKGNYWZiFZhU30so5UzPvh4PExou8KG35x7arFEao/unExIvZKBEnAQZLbzK/dE6uqV U75ECbMCwIcaM6sYbWtVRUV6SiPnL/uXHUvPeLfD/oKQOWKG7ODNBaC5ihiFm2iYxAZ9 oMGbzhpaQKuF3dGb0eL5JsXQYVc9oXS9HHi8nJR7SRLBlcS5mIT2OlfZG9ljm5ayuNn8 pugY2+6jZ4Tlh8rOJWeMLejUv1ZogMplQhthgq4uKkAaF8ZbcWSJAzrw6HBUi/GVJuMD i9mQ== X-Gm-Message-State: APjAAAXeh3UHh4RS9+mNMkivZvV81WoeKoub0sVPBE+yr1r5S/m6agne qAMGzPCJHKfqldLkpMiRybIuYxeL X-Google-Smtp-Source: APXvYqzy3iAW2b09oNQAMAqQzJLLl/el70m/wznZwz49QJ8olBOrtz+5wKkNFRQm+JYUdKHoy9fN2A== X-Received: by 2002:a17:90a:23ce:: with SMTP id g72mr45802646pje.77.1563796993949; Mon, 22 Jul 2019 05:03:13 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id a25sm13121969pfo.60.2019.07.22.05.03.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 05:03:13 -0700 (PDT) From: Kever Yang <kever.yang@rock-chips.com> To: u-boot@lists.denx.de Date: Mon, 22 Jul 2019 20:02:20 +0800 Message-Id: <20190722120221.25468-24-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190722120221.25468-1-kever.yang@rock-chips.com> References: <20190722120221.25468-1-kever.yang@rock-chips.com> Cc: Otavio Salvador <otavio@ossystems.com.br> Subject: [U-Boot] [PATCH 23/24] rockchip: elgin-rv1108: use board_early_init_f for per-boar init X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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: <http://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> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
rockchip: Migrate to use common board file
|
expand
|
diff --git a/board/elgin/elgin_rv1108/elgin_rv1108.c b/board/elgin/elgin_rv1108/elgin_rv1108.c index 0de1f4243e..6f33f2ce6f 100644 --- a/board/elgin/elgin_rv1108/elgin_rv1108.c +++ b/board/elgin/elgin_rv1108/elgin_rv1108.c @@ -50,11 +50,14 @@ int mach_cpu_init(void) #define MODEM_ENABLE_GPIO 111 -int board_init(void) +int board_early_init_f(void) { gpio_request(MODEM_ENABLE_GPIO, "modem_enable"); gpio_direction_output(MODEM_ENABLE_GPIO, 0); +} +int board_init(void) +{ return 0; }
Use board_early_init_f() for per-board init operation and use board_init() from common board file. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> --- board/elgin/elgin_rv1108/elgin_rv1108.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)