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.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 38E3CC4338F for ; Thu, 19 Aug 2021 03:13:31 +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 7CF4E610FF for ; Thu, 19 Aug 2021 03:13:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7CF4E610FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5269282EDA; Thu, 19 Aug 2021 05:13:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D515382BCE; Thu, 19 Aug 2021 05:12:59 +0200 (CEST) Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6C99782C8B for ; Thu, 19 Aug 2021 05:12:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qv1-f41.google.com with SMTP id cu12so1314735qvb.10 for ; Wed, 18 Aug 2021 20:12:52 -0700 (PDT) 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; bh=op53FBZDB+MR+z7C2eKwMSb88mjDDzt0oPy9CmKwMjs=; b=HuiaTv5Mrzjqot3qAg7GLdRRaI6xmLbpf+BT/UPj0E1xf0W5aq8c8nmmjV3SDKoJTQ EdDCACojb7VcupbRefZ7ddv21C/oKva8i6km6lZREwQiNnmd1oe94hTfV6vA5impRTS9 FwiNP+geqfoCgX74NxKga/Jbv/ZAbPrWkalk0yJLXiO2F6wU9Dt/GoRL9RKmLFHUW6+u kPqKHYLb8+0lMepqMRNHso5DTxKNt3JbdAYFWeD78sz3czAAFhX2MxrGRUx0kEG68B7U GXe+VCzmBIbwN+yb3SX2Pog9Kmscxkh3BlbUWqLFXqjuyOwOmDM92PMW/ROHm6XIUsi4 9Obg== X-Gm-Message-State: AOAM532hBcMTrTkp0yZn/kxgNWs/2dIw00/LlNX/WpV+VJ5E3A5Qx6tu /fZrEvRZuEyWR1e6MHzXWmmFYJ1Rrwx9 X-Google-Smtp-Source: ABdhPJxfdNXqStD0kp7+8zWh6sUyW+r7I/18lHmpjk11S2SKHUoxCFRNKdM5w94TcXQVef1pp95G7Q== X-Received: by 2002:a05:6214:519a:: with SMTP id kl26mr12422246qvb.49.1629342771024; Wed, 18 Aug 2021 20:12:51 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-c592-d3ae-4d6b-6c5e.res6.spectrum.com. [2603:6081:7b01:cbda:c592:d3ae:4d6b:6c5e]) by smtp.gmail.com with ESMTPSA id h140sm984045qke.112.2021.08.18.20.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 20:12:50 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Lokesh Vutla Subject: [PATCH 05/16] am43xx: Drop non-DM_I2C code Date: Wed, 18 Aug 2021 23:12:28 -0400 Message-Id: <20210819031239.19772-6-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210819031239.19772-1-trini@konsulko.com> References: <20210817220009.22721-1-trini@konsulko.com> <20210819031239.19772-1-trini@konsulko.com> 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 On this platform, we have DM_I2C and SPL_DM_I2C always enabled. Remove legacy options. Cc: Lokesh Vutla Signed-off-by: Tom Rini --- board/ti/am43xx/board.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index a71b588efcb0..e4e0c67275f7 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -393,13 +393,8 @@ void scale_vcores_generic(u32 m) { int mpu_vdd, ddr_volt; -#if !CONFIG_IS_ENABLED(DM_I2C) - if (i2c_probe(TPS65218_CHIP_PM)) - return; -#else if (power_tps65218_init(0)) return; -#endif switch (m) { case 1000: @@ -451,13 +446,8 @@ void scale_vcores_idk(u32 m) { int mpu_vdd; -#if !CONFIG_IS_ENABLED(DM_I2C) - if (i2c_probe(TPS62362_I2C_ADDR)) - return; -#else if (power_tps62362_init(0)) return; -#endif switch (m) { case 1000: @@ -492,10 +482,6 @@ void gpi2c_init(void) if (first_time) { enable_i2c0_pin_mux(); -#if !CONFIG_IS_ENABLED(DM_I2C) - i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, - CONFIG_SYS_OMAP24_I2C_SLAVE); -#endif first_time = false; } } @@ -632,28 +618,15 @@ void sdram_init(void) int power_init_board(void) { int rc; -#if !CONFIG_IS_ENABLED(DM_I2C) - struct pmic *p = NULL; -#endif if (board_is_idk()) { rc = power_tps62362_init(0); if (rc) goto done; -#if !CONFIG_IS_ENABLED(DM_I2C) - p = pmic_get("TPS62362"); - if (!p || pmic_probe(p)) - goto done; -#endif puts("PMIC: TPS62362\n"); } else { rc = power_tps65218_init(0); if (rc) goto done; -#if !CONFIG_IS_ENABLED(DM_I2C) - p = pmic_get("TPS65218_PMIC"); - if (!p || pmic_probe(p)) - goto done; -#endif puts("PMIC: TPS65218\n"); } done: -- 2.17.1