From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD247C48BE0 for ; Fri, 11 Jun 2021 16:16:25 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 12FE660720 for ; Fri, 11 Jun 2021 16:16:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12FE660720 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=in.bosch.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F662828E1; Fri, 11 Jun 2021 18:14:58 +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="ToOWb6Hr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77C658284C; Fri, 11 Jun 2021 18:14:48 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03on0628.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe08::628]) (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 E884682052 for ; Fri, 11 Jun 2021 18:14:42 +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=DwEmprS8UXUsE/lY+zZXuv6N5VFf3P9rYrWsCocqe6QfX5S014cv2+1ResX23W8Nf/nQJM9p0yDeeSKlWZO3IAxbzjMkJ3DR8NvA2Gx9KF1CJO1gzoL/pJWGfs74CSplhIFINK5P7Xo/CsHqgk+ZAVfnqfkB5w0Ogu4AJPYWsZh7TgLXcc7fEp0hANEIpqRy6Dv93kYMKC0xH2SLihPYhcAkJBc2H2haU6bLVM375VTHccWMm0L3fV5IxS8wlUxu/VxyYLnGoD8NbNynFY02ADhvbwANg9kp13Yq6BFccNCwFcw+vF+efmXYrucECr58XfAntlOPEOmyMmDabMvw+w== 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=KOdfLZ7n/nvEqAnNbvJ2SwmTU8d5XprhanPsPwAdAJlyViAlIxSiq/kMY79ne0CyIMxPknJH3INWD+FblT1wG6o/OVtCu0TthrHPeAgzd0Dqk/wvQuJQf1Lpnq5gqMt1z4r1f+bf0wJ836/+OkEqWysflcRBXexWRkm6lc+Abui2YwL48cvI+V8PF5tKduP6Jee8r1Z+6sRkkYRNqtwqmuzFhxKzzovn8dSx0hkxOaGViGTpNvKIVdHnj4O+BvkNuLNqhLIqXmRvPq1lnTxCOO2B8B8VflZ3eMv25uwmV06SeouBkLPFxAZ59lWZ7TeO3cNtpICdVyuFXOEOW4vQhw== 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=ToOWb6Hrixe/C+YDT6DkXyrsVocAGaqHoz/fhc7enXn0vb7XZ7l4PEDzN7DvkpBU5gd5iPjxWEtrcQ/sKRX8heSzJCAWDyPkh2HnsaF9dtjPLw+s9TN7KUMcj7JKm3Ic/Yhp/qRDwFdzHD8aYZNdrUf8zCnRXxeUXZU+v2miqBY= Received: from AM5PR0601CA0055.eurprd06.prod.outlook.com (2603:10a6:206::20) by AM8PR10MB4098.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:1ca::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Fri, 11 Jun 2021 16:14:42 +0000 Received: from VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:0:cafe::b5) by AM5PR0601CA0055.outlook.office365.com (2603:10a6:206::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14: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 VE1EUR03FT060.mail.protection.outlook.com (10.152.19.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:41 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) 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, 11 Jun 2021 18:14:27 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:27 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:24 +0200 From: To: , , CC: , , Subject: [PATCH v4 08/18] am335x, guardian: code cleanup and boot optimization Date: Fri, 11 Jun 2021 16:13:40 +0000 Message-ID: <20210611161350.2141-9-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3373788f-efb1-4819-c2b0-08d92cf40534 X-MS-TrafficTypeDiagnostic: AM8PR10MB4098: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: euQcFV8reOC/e7/328E5MTclCreTzMB0mfEuUJJSvUomJSDYqxUDxGjxsL6Ed1xpuIgxCB9gY3oYYkKjKEfvXMEIlFbkZby9A9Y8hvEcYkxe1QFf+8kXTQxkVdfxi0jCwOmjs9FxwkWyPAe9392/RT6WTSB19l2NGjBIja056eDUJ4p+BpQAnQXE/Ia3mXu02J05zEY3NdBcTYGEvdSeznlitj8meSp4c1CbrgBk3ABO91iaK9Qpyeu3ETRoy8Kg237jhSIF1aI1Xd1nrrucsYW5QCARA+loZijll90lITopPUdOoul+1RMaTBR5SSMwIpyeblVV3/OATHqZFdkd/BqwBjHn/8d5XlhMvB1chB4VAVHTT5KmG4KrXCnb9zfbj1y2oy7mxq726j3hej+Moas34DfdSn4xYmg2a5WOBwlPt577flpCtL5EM1h8POL/0mxXMjFVN3zZDrHoayW6PLmqQr0i1Mo3Y7iUIzONOvXy53TJKNi1p2Gr7dWtE3DUE9/YJvFIQcdnXItEfE9s2M6c1FayoWQ07MnKPfqG5oD6kFzioQ/XduKZ1VzF9VRRLScyHoxTVajUFaesyGNToWFyX5wqFEw7NMudxDtlj3/QtMHn2TklMt0aRTcsh7CBgaMoP0yWlNf/4FZQi5SQod+vFKJxhNvZPgcrLuq88YCLpBsS1aqgdhC46D1KoMbM 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)(46966006)(36840700001)(2906002)(8676002)(70206006)(107886003)(70586007)(356005)(6666004)(2876002)(82310400003)(86362001)(8936002)(498600001)(16526019)(36860700001)(2616005)(336012)(1076003)(4326008)(83380400001)(47076005)(54906003)(186003)(110136005)(81166007)(26005)(5660300002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:41.9492 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3373788f-efb1-4819-c2b0-08d92cf40534 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: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR10MB4098 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath - remove redundant headers and boot modes from board file Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 21 --------------------- 1 file changed, 21 deletions(-) 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 -#include #include -#include #include #include #include -#include #include -#include #include #include #include -#include #include #include #include @@ -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); -- 2.20.1