Message ID | 20210528093030.1483-10-Gireesh.Hiremath@in.bosch.com |
---|---|
State | Changes Requested |
Delegated to: | Lokesh Vutla |
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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=ei8FEMbr; 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 4Frzx711yQz9sVb for <incoming@patchwork.ozlabs.org>; Fri, 28 May 2021 19:32:26 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 450C882EF0; Fri, 28 May 2021 11:31:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.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=in.bosch.com header.i=@in.bosch.com header.b="ei8FEMbr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0CDE182EE5; Fri, 28 May 2021 11:31:51 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on061f.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::61f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 16DC682EDB for <u-boot@lists.denx.de>; Fri, 28 May 2021 11:31:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=myMYrFoHsJgTk0q6V+ocTMR5DDs/hnUXExcvXbC4TdOXdMVrvAF4SsiEp8+mFEIzd3lBU0fuW7nQ6igYITEFilUa85XUnFsHamySTEl5oJ5R1/bFz0bMXxOOQMtbH87TmoL6m9XBnrhIWe0tT6+68uvK+ewa8ohohZ3V2AnMo0ycCmyViTHjykadD6RIFI1fDSeWuDuflpES5Wtok55iBqbHQdjct7bEiaIEIRRMGxfrlpk+XSrRIfLRFP497aL3RNiEj7vGaCJ8qqelAM3ZokhoQT0KFBBeXjwkl91osU/UdKaQfxfS/3YkRMwrbVPeYnQ4BQ4GvXFaucFe+bPatw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L3ogb9vZpnzjOmP2lO6Az1az9c1Tn9oO0v09ZDudbFI=; b=iX7VKXLe/1tNu+Cy2ftC/ERKits1Gsx/ZE3FmVxm87iyQ2DUFpUp1ddmDZBLEKls3RXapRJwrF3wPfTjG0DdamFFWp/3H59KTB9hxYksjQf2DErbqU1cgfCG8+gW09Tn+4WUJQU8MFyANFqodxMv3CfpAcMYYI+xY1iNn+7Z8VrOfJkWuRprAk3IUFE3KPjzuUaJNN57Us6+CivSV8yycf61hSydtFWYKiEKOAcebC09oXrgjggamgx+jC/00P36tuquRWmek0U65NIT1ehRtO/HOzOFpBRxG7F080HttnteoYMWLm8U5FeA7hsfpgoPtK3H13kOPZVtJrcyTIJbuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.203) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L3ogb9vZpnzjOmP2lO6Az1az9c1Tn9oO0v09ZDudbFI=; b=ei8FEMbrGMKh9+7QOrwggLX8Kdm7E2Pg/1Naf4Iw/RXnrMKc4r4q+AA4gz9FEU2fijUp/75gHn/trSZHlCN0ay3rdpZZ+P9IbJlJhsRU76KCkGr9DDkgye8e2X0HjO8FvCID3wpT0Ew06F44O4n3hJYIG6uJLO9J7uowWXyhMTc= Received: from AM5PR0601CA0073.eurprd06.prod.outlook.com (2603:10a6:206::38) by VI1PR10MB3566.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:131::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21; Fri, 28 May 2021 09:31:42 +0000 Received: from AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:0:cafe::72) by AM5PR0601CA0073.outlook.office365.com (2603:10a6:206::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Fri, 28 May 2021 09:31:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.203) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.203 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.203; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.203) by AM5EUR03FT032.mail.protection.outlook.com (10.152.16.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.30 via Frontend Transport; Fri, 28 May 2021 09:31:42 +0000 Received: from FE-EXCAS2000.de.bosch.com (10.139.217.199) by eop.bosch-org.com (139.15.153.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 28 May 2021 11:31:26 +0200 Received: from FE-HUB2000.de.bosch.com (10.4.103.109) by FE-EXCAS2000.de.bosch.com (10.139.217.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 28 May 2021 11:31:25 +0200 Received: from localhost.localdomain (10.142.41.29) by FE-HUB2000.de.bosch.com (10.4.103.109) with Microsoft SMTP Server id 15.1.2176.14; Fri, 28 May 2021 11:31:23 +0200 From: <Gireesh.Hiremath@in.bosch.com> To: <u-boot@lists.denx.de>, <Gireesh.Hiremath@in.bosch.com>, <trini@konsulko.com> CC: <sjoerd.simons@collabora.co.uk>, <VinayKumar.Shettar@in.bosch.com>, <Govindaraji.Sivanantham@in.bosch.com> Subject: [PATCH v3 09/19] am335x, guardian: code cleanup and boot optimization Date: Fri, 28 May 2021 09:30:20 +0000 Message-ID: <20210528093030.1483-10-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210528093030.1483-1-Gireesh.Hiremath@in.bosch.com> References: <20210528093030.1483-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.142.41.29] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b04ef454-fd3e-4010-9290-08d921bb673d X-MS-TrafficTypeDiagnostic: VI1PR10MB3566: X-Microsoft-Antispam-PRVS: <VI1PR10MB35663F89DE3E21F473683F53A6229@VI1PR10MB3566.EURPRD10.PROD.OUTLOOK.COM> X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r4Gg+NodAuuEVUt6ygR5FpSConTrBPD9JOkKFwUDmXiFztwHYs1hhzzF+iCKux0JPSELtxcP5UXJdj8wE67Ef0/4kQ4kOwU5v8ClSiiUnazvx9cKff4xcKwA+SvL6fnMdEHLKK8d2iKBK10MA4dJfwGHo9unw26eJMotTgHpd8EIfcZEfiLnRUEz1nyCMZmyBZr9BNVSWDU23p3WJ9WU/KqcAzYMwCNaqKJTZ4i1tgVdT5AzD1TUe57k3b2roIjpR44o+Yu7JWdlhH/FzForc9DOD86Lq75te1rD9e5+5F9HHaZyZeRXR7tm9CjJXp3H3AEnuPDZ8Vz/oySlEvy7eGrOO4Z7YTCszvtBmZAX/dywacF0l2UW7eaFToUcxZfLT6DUugQiseLWZGstxMSgJ2+MlSY9yPPMvTTnEwoxf7asUZ1J17kCR4jUgYfF+7rIoxzhw+eRNmdzD6wzjjhL3GDc1L+0rp70Ydeli6SpGIWvE85J3VW5uQIuyifuMyO7batdXUIXKjsa+1jKS5grQxO6VaDO7rSjGVbGrEQdZZnmHj7gy68WgYeWaB77XcGq+icoOgNncrKcqg4KJMkc1uIi6KkAQ7lgMQ0g7qTAKVr4rR+gcwsE/ob7gzduVSHsT+z2apTGfhAUCrShf+NpcklEsO5LKt/z6bhzd1dx1c6gf/BdVQ6BN9wmYV+ZvDJc X-Forefront-Antispam-Report: CIP:139.15.153.203; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(136003)(39860400002)(46966006)(36840700001)(5660300002)(82740400003)(86362001)(70206006)(81166007)(2906002)(70586007)(1076003)(47076005)(82310400003)(83380400001)(356005)(336012)(2616005)(26005)(2876002)(16526019)(107886003)(36860700001)(8936002)(4326008)(478600001)(186003)(110136005)(54906003)(316002)(8676002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2021 09:31:42.3495 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b04ef454-fd3e-4010-9290-08d921bb673d X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.203]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3566 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.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
am335x, guardian: update board specific changes
|
expand
|
diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index 9429454a74..12d047b74b 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -9,19 +9,14 @@ */ #include <common.h> -#include <cpsw.h> #include <dm.h> -#include <env.h> #include <env_internal.h> #include <errno.h> #include <i2c.h> -#include <init.h> #include <led.h> -#include <miiphy.h> #include <panel.h> #include <asm/global_data.h> #include <power/tps65217.h> -#include <power/tps65910.h> #include <spl.h> #include <watchdog.h> #include <asm/arch/clock.h> @@ -193,27 +188,11 @@ int board_init(void) #ifdef CONFIG_BOARD_LATE_INIT static void set_bootmode_env(void) { - char *boot_device_name = NULL; char *boot_mode_gpio = "gpio@44e07000_14"; int ret; - int value; struct gpio_desc boot_mode_desc; - switch (gd->arch.omap_boot_device) { - case BOOT_DEVICE_NAND: - boot_device_name = "nand"; - break; - case BOOT_DEVICE_USBETH: - boot_device_name = "usbeth"; - break; - default: - break; - } - - if (boot_device_name) - env_set("boot_device", boot_device_name); - ret = dm_gpio_lookup_name(boot_mode_gpio, &boot_mode_desc); if (ret) { printf("%s is not found\n", boot_mode_gpio);