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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EB6D3C433EF for ; Wed, 4 May 2022 11:03:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 79DC583EDF; Wed, 4 May 2022 13:03:31 +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="NWNr0nWY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BF5E80029; Wed, 4 May 2022 13:03:25 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20620.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::620]) (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 349E580029 for ; Wed, 4 May 2022 13:03:22 +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=KYVmkWIcbzdD9RRzga4684rj1BYsAeYGK7TsD8jjtZeKCco8T/TE5XfK5gXXBOjmYtsRB9Qy4AEL5ijgnoi94NY1ivWCxwJ+WMhJvuUt1D6QH3DCZsQwuHb5dRHM5L9b28EVgsAaQiTTgYKcpSBWWXlp+tgJuk954sQm1gsF2RVCsRuH1BGKomQ6XATJPFLBJwyFp021ksJWkDVS6cLzeJwDfvXXKkXZAIPlfZOolhuX6c9BcNlqVUYTU9gf6s3daNMXkBNCsMM5ieB4eFN4hIZ/JOTFeI9YJCRSlheKGV/OtQE1SaoGLQuG6bJUXb88V34q2DKrTXpRRva3FfOvHg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sMPe99reLA2yIhKcNlkAHrKUNwMY4hu/xF2mfhYFBNc=; b=VYj1Uggv9/7pcAgYTNHbTH7/XWgA+ZAYxE9Qmk4n+dtE9FMLgHFfdxESFIb/nL0Rjs1AyYFFG17HDM7rzAJKcvR8tG065RYtSwsmLITNHBWHKJPs0g8FWoYLiGFVjduX8tZffggNzNiJ2D5QmLaqhCPxqPemRkh0ozu+THSkMZZWQjnI7Jzl9gzEH3NiFYr3DlU1vr10ioMMXluJlLGVup17I9KsEYPWRSu8FTNvy6+5pOGXf84xrCXyiySHm/aLnmmXM900Ur2yjflZ0ppvqg0ikj7+1+OgB7O77ZRcpF1lbYbKpUrts867cK+MZ7IAr9SLlKrBorQtQu3lFg2qCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=ti.com 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=sMPe99reLA2yIhKcNlkAHrKUNwMY4hu/xF2mfhYFBNc=; b=NWNr0nWYUPftnAb0RmlJt0vKeKG/Z0EffoU1SLDclffdVK64Eys4rBs+X1iURSoZp8og79NL2bAe9/Vup6IirjEmjU2Jc+eLrZnd4zr8oQ+HErPyETFqX98a2MqLwMhuRCi1oiM5FQLPur9kR43bwl+Qj6Jt9wKaTCQfMrbn3Y0= Received: from AM5PR0601CA0049.eurprd06.prod.outlook.com (2603:10a6:206::14) by VI1PR1001MB1279.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:df::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Wed, 4 May 2022 11:03:21 +0000 Received: from AM5EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:0:cafe::f0) by AM5PR0601CA0049.outlook.office365.com (2603:10a6:206::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.24 via Frontend Transport; Wed, 4 May 2022 11:03:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by AM5EUR03FT011.mail.protection.outlook.com (10.152.16.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.15 via Frontend Transport; Wed, 4 May 2022 11:03:20 +0000 Received: from FE-EXCAS2001.de.bosch.com (10.139.217.200) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.24; Wed, 4 May 2022 13:03:16 +0200 Received: from FE-HUB2000.de.bosch.com (10.4.103.109) by FE-EXCAS2001.de.bosch.com (10.139.217.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.24; Wed, 4 May 2022 13:03:16 +0200 Received: from localhost.localdomain (10.167.1.123) by FE-HUB2000.de.bosch.com (10.4.103.109) with Microsoft SMTP Server id 15.1.2375.24; Wed, 4 May 2022 13:03:13 +0200 From: To: , , CC: , , , Subject: [PATCH 3/3] am335x, guardian: Drop non DM_I2C code Date: Wed, 4 May 2022 11:02:58 +0000 Message-ID: <20220504110258.1628-3-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220504110258.1628-1-Gireesh.Hiremath@in.bosch.com> References: <20220504110258.1628-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.167.1.123] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59832ad6-894c-443b-1336-08da2dbdb33e X-MS-TrafficTypeDiagnostic: VI1PR1001MB1279:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +HLRmuZqE5O7NHr2YiB98TgmZOjSlvlGH8qiEB25jISSx7B22Qjz+83Sqa2RKzyzfMtYLtkG3RBVIojkFwTNDc4Xqlu7w5TZLEomm1ctSOsL8zi8lZIaqvZ35qAM2sSol6QBmg/U3NNPppM0UodIIvbMS97m1mKRijDomL19l6Hizbk3hdPV9Vv3QHQ3Buu3Uz0NH5aG+bC/y4IkRx47a1HP43UJE36d+F/+4dPNwlcA+SoE06pzLOmAEUZu28XbnkxR6fL75AwVwd1ISQKG01LU5v5N4wZPDoRGVN7pYVLAUo0sYJJ45to6l3XYMIAsV4FaArvEV9uAA/ePufEh6sTPhU7p5pivNtHbCxsEnRkNFhZ/JzV8U8o9W58adK1fQRifolOTUPvS1e6Z5YNuRcNa90l6+7ziJrTJoDRdRAI0mXPNNltcjy6P8YWN+lPu7+qHDCzo+q6Ue8U5PJk5/vswfC3qQ4g25gjuPi6TS2ymrLCq406fLjnIV8egTgE92yAEeFYbZBQ2UYeNH50raBMoR0vvb374p2RK7SQU2LI+ACG5t4Tqh7OQS1u9/jVL3fQYChx1tMhBJYqHngO4DgIR+4R+OtSIBlABSOJeXrvYljns85fJzER4sRNW2F/xpghJ8p2Nx+ZVDV7O/5klhiTCFz53osMDLPw0tikfKrdyQiWptfnc/vLPwXseTy0JAyOf0QkwAe34JCEp32w2Tg== X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(4326008)(107886003)(1076003)(336012)(16526019)(186003)(8676002)(47076005)(86362001)(7049001)(70586007)(70206006)(26005)(508600001)(54906003)(110136005)(356005)(81166007)(82960400001)(8936002)(6666004)(316002)(36860700001)(2906002)(2876002)(5660300002)(82310400005)(40460700003)(83380400001)(2616005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2022 11:03:20.4781 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59832ad6-894c-443b-1336-08da2dbdb33e 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.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR1001MB1279 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath On this platform DM_I2C and SPL_DM_I2C enabled. Remove legacy code. Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index 105b75e65e..c4708740a8 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -83,7 +83,8 @@ void am33xx_spl_board_init(void) /* Get the frequency */ dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); - if (i2c_probe(TPS65217_CHIP_PM)) + /* Initialize for Power Management */ + if (power_tps65217_init(0)) return; /* @@ -142,7 +143,6 @@ void am33xx_spl_board_init(void) const struct dpll_params *get_dpll_ddr_params(void) { enable_i2c0_pin_mux(); - i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); return &dpll_ddr; } @@ -338,6 +338,10 @@ int board_late_init(void) return ret; } + /* Initialize to enable backlight */ + if (power_tps65217_init(0)) + return 0; + lcdbacklight_en(); if (IS_ENABLED(CONFIG_AM335X_LCD)) splash_screen(); -- 2.20.1