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 8484AC636D4 for ; Wed, 1 Feb 2023 20:36:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 369AB85DD7; Wed, 1 Feb 2023 21:35:43 +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="D2ZK4gh4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7DB9985A8A; Wed, 1 Feb 2023 21:31:47 +0100 (CET) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (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 9A94E85A8A 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-xd2b.google.com with SMTP id 65so4597911iou.3 for ; Wed, 01 Feb 2023 12:22:06 -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=N9nGsVbr+hQMdK4q3XGu7ge7+3lbcfi8gncKK8Z2Bzk=; b=D2ZK4gh4z1tx+r4bIKXt80+t4/d4IoGmBYLwgvTeazqXXsVQEiR/TYwPRKHUy5T8cg z0dl36NJJxl3LwUxXzQJXg+7NpG7Kyh3/Whag+Gzxl71gMjTbQNZ0aT/nF8I0kCxSMkt b8WXKoZxPdRKb+AOTf3UKS4LD2b3icweM+aq8= 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=N9nGsVbr+hQMdK4q3XGu7ge7+3lbcfi8gncKK8Z2Bzk=; b=DrEhfpzyjtOQ08sJHbF5A3Sj+4yFxvhdXmloQv08UCEyq3QqipKY04fVsVTfCmOA+Y 6CwlasKtkQXqrjGm0CJ5juLE3lOZaoGUUht2ofhjFIN8HDLlFoUm41Eas+LzpCnpzgTh PmNrMVQPCXvoeQtwQKSAar1wePbrS4i2/Gq577mOQ+EH1Z9TD8t2B40HlJVk4rTfNuIO //l3S+3FVIaa9/bE47dwBDdEb3pcRrjMKotTB3B7wp88exGAS3ksTg4/qnQexo5+z2kM CteqkKm/0JgO7t/2sQCpYPWgqe6omtv6o0sUpW2jCZuOY2T5iSsWrTthC6yYJLP1JbXH nyKw== X-Gm-Message-State: AO0yUKUPz6bFcykT2V5jKZV2daKdZN0MvjEg4PIlx4u91Nz0yn28uZjT IgvC4XYae1lki0fvMaEtvr6wYSFGvZTYYBw3 X-Google-Smtp-Source: AK7set98pAcEEXU7w3qO0LBkxPmcg+dcsZgd1BHNwrUR3R/02lBjMeUmTGc/ffAtqtO9bSGJx002uw== X-Received: by 2002:a5e:c017:0:b0:71c:3371:b638 with SMTP id u23-20020a5ec017000000b0071c3371b638mr2272056iol.12.1675282925957; Wed, 01 Feb 2023 12:22:05 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 12:22:05 -0800 (PST) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Simon Glass Subject: [PATCH v3 51/76] freescale: Drop unused pq-mds-pib driver Date: Wed, 1 Feb 2023 13:20:02 -0700 Message-Id: <20230201202027.1943031-52-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 is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass --- (no changes since v1) board/freescale/common/Makefile | 1 - board/freescale/common/pq-mds-pib.c | 60 ----------------------------- board/freescale/common/pq-mds-pib.h | 9 ----- 3 files changed, 70 deletions(-) delete mode 100644 board/freescale/common/pq-mds-pib.c delete mode 100644 board/freescale/common/pq-mds-pib.h diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile index 9d5f38bb225..bd035d60a58 100644 --- a/board/freescale/common/Makefile +++ b/board/freescale/common/Makefile @@ -36,7 +36,6 @@ obj-$(I2C_COMMON) += i2c_common.o obj-$(CONFIG_FSL_USE_PCA9547_MUX) += i2c_mux.o obj-$(CONFIG_$(SPL_)VID) += vid.o obj-$(CONFIG_FSL_QIXIS) += qixis.o -obj-$(CONFIG_PQ_MDS_PIB) += pq-mds-pib.o ifndef CONFIG_SPL_BUILD obj-$(CONFIG_ID_EEPROM) += sys_eeprom.o endif diff --git a/board/freescale/common/pq-mds-pib.c b/board/freescale/common/pq-mds-pib.c deleted file mode 100644 index 162c8a954f0..00000000000 --- a/board/freescale/common/pq-mds-pib.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2007 Freescale Semiconductor, Inc. - * - * Tony Li - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - */ - -#include -#include -#include - -#include "pq-mds-pib.h" - -int pib_init(void) -{ - u8 val8; - u8 orig_i2c_bus; - - /* Switch temporarily to I2C bus #2 */ - orig_i2c_bus = i2c_get_bus_num(); - i2c_set_bus_num(1); - - val8 = 0; -#if defined(CONFIG_PCI) && !defined(CONFIG_PCISLAVE) - /* Assign PIB PMC slot to desired PCI bus */ - i2c_write(0x23, 0x6, 1, &val8, 1); - i2c_write(0x23, 0x7, 1, &val8, 1); - val8 = 0xff; - i2c_write(0x23, 0x2, 1, &val8, 1); - i2c_write(0x23, 0x3, 1, &val8, 1); - - val8 = 0; - i2c_write(0x26, 0x6, 1, &val8, 1); - val8 = 0x34; - i2c_write(0x26, 0x7, 1, &val8, 1); - val8 = 0xf3; /* PMC1, PMC2, PMC3 slot to PCI bus */ - i2c_write(0x26, 0x2, 1, &val8, 1); - val8 = 0xff; - i2c_write(0x26, 0x3, 1, &val8, 1); - - val8 = 0; - i2c_write(0x27, 0x6, 1, &val8, 1); - i2c_write(0x27, 0x7, 1, &val8, 1); - val8 = 0xff; - i2c_write(0x27, 0x2, 1, &val8, 1); - val8 = 0xef; - i2c_write(0x27, 0x3, 1, &val8, 1); - - eieio(); - - printf("PCI 32bit bus on PMC1 & PMC2 &PMC3\n"); -#endif - - /* Reset to original I2C bus */ - i2c_set_bus_num(orig_i2c_bus); - return 0; -} diff --git a/board/freescale/common/pq-mds-pib.h b/board/freescale/common/pq-mds-pib.h deleted file mode 100644 index 67066fd118d..00000000000 --- a/board/freescale/common/pq-mds-pib.h +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Copyright (C) 2007 Freescale Semiconductor, Inc. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - */ - -extern int pib_init(void); -- 2.39.1.456.gfc5497dd1b-goog