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 6FDDCC636D4 for ; Wed, 1 Feb 2023 20:34:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 116D385D38; Wed, 1 Feb 2023 21:33:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="O2xHC5Rx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2BDEE859EA; Wed, 1 Feb 2023 21:31:42 +0100 (CET) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 4DCEF85D08 for ; Wed, 1 Feb 2023 21:22:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd33.google.com with SMTP id w24so4058731iow.13 for ; Wed, 01 Feb 2023 12:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=27oXPd5BNkZnKw2H4FDokZDS9PFU+eHGu8QuS+1eiDs=; b=O2xHC5Rx1SPDDSzbIUX6YZ4fc9yQTmOaXX0cOHMTp9huzHQHzxSq8633tN8W2fNhWn AchESXDmxiw4NLZQ1ykmaHwiVTSVvcwTzwhBubFyVJLfGmElazeRz9zcwdYQd+ED60Ae 6mxb3fYlTzuWM9ibSaPr1snPPr+fv2Wr52Rng= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=27oXPd5BNkZnKw2H4FDokZDS9PFU+eHGu8QuS+1eiDs=; b=MKfkYm0W+lhojVisqvtROzqbSRHglvhOv3rf8NhqhDxcYtqbeySUPX5CiSYlsGjVrU f7yQO9oOwEbkc4JxaKhtBiQESnpibHz1Iz7kIU4RhfNT0zgRtbnmUDwSqEtg/RaKYYa9 B1wnTQl9k+oH70VkPahfhO3jUyevmjzzu14FnZb2rjM6wgKu8+zGq77RH/Pa0Wf62O4M tatjbpbgrvwC0pb3/1LMUc87rwwmT25hyM8tCqlvIIlTcr7giydqo7GGAfPXrgd/q40h AYE9vLvCPJyiCKbYqAv+gNUcDbniAUocX+rsESco2kbglkYmH0fTrc/k+o/SP0mJcLmc ncqQ== X-Gm-Message-State: AO0yUKU0TPMtCOzhNUU2EDllpgjZYPvrGA9e75aBhAOMcYH1ibiboOi1 z5Mm78dJjnTqLwz5ZUb/J0lSzUG1SYZEPdnJ X-Google-Smtp-Source: AK7set838qTX+Vj5wP1DCs53DiwQ80/kFSAph4SiQlCiF4Jk/3Uqmzpc77XCw93/okKNdbHuhlSa0g== X-Received: by 2002:a05:6602:1587:b0:721:90c5:7d0e with SMTP id e7-20020a056602158700b0072190c57d0emr3102179iow.9.1675282924103; Wed, 01 Feb 2023 12:22:04 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:1fda:cca0:9a42:148c]) by smtp.gmail.com with ESMTPSA id i1-20020a6bf401000000b00704608527d1sm6166498iog.37.2023.02.01.12.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 12:22:03 -0800 (PST) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Simon Glass Subject: [PATCH v3 49/76] power: Drop unused muic_max77693 driver and mfd code Date: Wed, 1 Feb 2023 13:20:00 -0700 Message-Id: <20230201202027.1943031-50-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230201202027.1943031-1-sjg@chromium.org> References: <20230201202027.1943031-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean This driver is not used and has lain unconverted since: fc47cf9d054 arm: exynos: i2c: Convert exynos boards to use DM_I2C Drop it and the entire mfd directory, since there is nothing left. Signed-off-by: Simon Glass --- (no changes since v1) drivers/power/Makefile | 1 - drivers/power/mfd/Makefile | 6 --- drivers/power/mfd/muic_max77693.c | 77 ------------------------------- 3 files changed, 84 deletions(-) delete mode 100644 drivers/power/mfd/Makefile delete mode 100644 drivers/power/mfd/muic_max77693.c diff --git a/drivers/power/Makefile b/drivers/power/Makefile index 93003e97e01..ba64b2c5938 100644 --- a/drivers/power/Makefile +++ b/drivers/power/Makefile @@ -5,7 +5,6 @@ obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += acpi_pmc/ obj-$(CONFIG_$(SPL_TPL_)POWER_DOMAIN) += domain/ -obj-y += mfd/ obj-y += pmic/ obj-y += regulator/ diff --git a/drivers/power/mfd/Makefile b/drivers/power/mfd/Makefile deleted file mode 100644 index b5ec8f00bb0..00000000000 --- a/drivers/power/mfd/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# Copyright (C) 2013 Samsung Electronics -# Piotr Wilczek - -obj-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o diff --git a/drivers/power/mfd/muic_max77693.c b/drivers/power/mfd/muic_max77693.c deleted file mode 100644 index 36ee44b9a2c..00000000000 --- a/drivers/power/mfd/muic_max77693.c +++ /dev/null @@ -1,77 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright (C) 2013 Samsung Electronics - * Piotr Wilczek - */ - -#include -#include -#include -#include -#include -#include -#include - -static int power_chrg_get_type(struct pmic *p) -{ - unsigned int val; - unsigned int charge_type, charger; - - /* if probe failed, return cable none */ - if (pmic_probe(p)) - return CHARGER_NO; - - pmic_reg_read(p, MAX77693_MUIC_STATUS2, &val); - - charge_type = val & MAX77693_MUIC_CHG_MASK; - - switch (charge_type) { - case MAX77693_MUIC_CHG_NO: - charger = CHARGER_NO; - break; - case MAX77693_MUIC_CHG_USB: - case MAX77693_MUIC_CHG_USB_D: - charger = CHARGER_USB; - break; - case MAX77693_MUIC_CHG_TA: - case MAX77693_MUIC_CHG_TA_1A: - charger = CHARGER_TA; - break; - case MAX77693_MUIC_CHG_TA_500: - charger = CHARGER_TA_500; - break; - default: - charger = CHARGER_UNKNOWN; - break; - } - - return charger; -} - -static struct power_chrg power_chrg_muic_ops = { - .chrg_type = power_chrg_get_type, -}; - -int power_muic_init(unsigned int bus) -{ - static const char name[] = "MAX77693_MUIC"; - struct pmic *p = pmic_alloc(); - - if (!p) { - printf("%s: POWER allocation error!\n", __func__); - return -ENOMEM; - } - - debug("Board Micro USB Interface Controller init\n"); - - p->name = name; - p->interface = PMIC_I2C; - p->number_of_regs = MUIC_NUM_OF_REGS; - p->hw.i2c.addr = MAX77693_MUIC_I2C_ADDR; - p->hw.i2c.tx_num = 1; - p->bus = bus; - - p->chrg = &power_chrg_muic_ops; - - return 0; -} -- 2.39.1.456.gfc5497dd1b-goog