Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2661514yba; Mon, 22 Apr 2019 10:41:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyP/2B14UAnpBihq03MjzGWxnvUrbLArKunFb+sIv9ZSmoWeu8dWOWCwPUc94nru7oE9ia X-Received: by 2002:a65:614e:: with SMTP id o14mr20475239pgv.196.1555954868701; Mon, 22 Apr 2019 10:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555954868; cv=none; d=google.com; s=arc-20160816; b=IBamy2uqrMeNmpJQ8ROphy6H01gLoc2Vxa7A6d6/Gb2CzJ+5Uy0QG7wf3FJftU2NWl RNUejY0jP3cGNb3LZa5LEfrJm/dVFaU9IqDqvg9LtPncXNSbESFiguXKDlJG76wMF/vu sMEFqx/SJFc6BnjGihRBZ+yhHle8lDnuAHQXZQ+9MhFzATZ4vBstMmhMcTlfznqp2ujr gX7ZXfPHZ0H/dlDwT+VKP0imiuMY6dc0tH6SeknBCJNdCmHURTGXg3MToK+BPhv3NxOP j/NhekQ6vsWf2Vz79FV3aPM4zCiJ2+rbRphAXnENe7G8AzHr7eY3+ZuWQEtwXl4DDKyy 20vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=NuOa1RX9TCSciep2Bzi4c46CphhFhaN4A1HmfzAGdU0=; b=wuSIV2XKFl5fRfBK1zsTLF62m+D751Uj8BtKo610FLCz4REazowLDJhZPXiuKoilv3 jES73wQj+MoJ3ERPdvbfAPmMAqEWuDZYxo2l+qp8Pobe49gHAvYarXvQcnYV9iZ3urEH ScthTNSathraMWuyM9dgAA9dQ66rrAwm+C4wh/DUa2oqyYBJTUezi4ZJyVw6dyc0Aemf kX/SQFA61UJFrOD4ObGC4MkO+4eIseukvykvZUK63odggonUzo+bsyxYcVJp9xZ8T6eE cIaeHXh5via2B+c80BU6xnB6wToUyaTsqc40oYW3UTUhY1dH9mftFru8tQ+bi67UCzto h2tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Wcph36z4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si13430799plv.329.2019.04.22.10.40.53; Mon, 22 Apr 2019 10:41:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Wcph36z4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727503AbfDVRin (ORCPT + 99 others); Mon, 22 Apr 2019 13:38:43 -0400 Received: from mail-qk1-f201.google.com ([209.85.222.201]:33685 "EHLO mail-qk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726260AbfDVRin (ORCPT ); Mon, 22 Apr 2019 13:38:43 -0400 Received: by mail-qk1-f201.google.com with SMTP id a188so11018945qkf.0 for ; Mon, 22 Apr 2019 10:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=NuOa1RX9TCSciep2Bzi4c46CphhFhaN4A1HmfzAGdU0=; b=Wcph36z4bcFF49T7brG+b5KaeVJ79BrE6yrhuayy9Upnv62Q0ne8ossRbXz04OKwNE 9ynHQBsVC+gMW7l9ZZoqkatipBLMUTdvyogp/XPxWeRr+IYs5n0Fiuu5dP0niBv6+w2e Nz8oQrvyYZAn9pV5nAhWhPmqfWqBbV7uyjahcNUXAxbNo+GTXzrPIO6mKxyNwxifxtxc fqrAfUfM94N97fsBFu1Qs+Us1AhpSYjy9yR3QZzgBfQxQlZzcJaI0f5GJh5Nn2aKhbi6 gZhkTB3LBaXLMVDkh8qCT7ik5qZwEutGSDvDdACjQSHB+PHmQaU9GESkIK4eHD6QvBrH Ynfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=NuOa1RX9TCSciep2Bzi4c46CphhFhaN4A1HmfzAGdU0=; b=C/zZapS7GwrIZ5CsUUv01A1mmdzIJvTGT4tUYzsOZnAzGDPBYwHfJAxsEI0QPttjXA +Dq0Z36MdqQtbTVc9479q/3LZxOJ4msoH3HQCAsK2+HLzxVhF7Gv7buO0Y3DDdEJLOTO 8udMfbFXj5F4jC7r0UASGGOKbD012FJ7ftEcmOU8Z/8V2XVQFMf6T1FsJj0DBMB6IooF EI1GgTwNjUs6O60aK+iOPSMm3TQtKsOlI4vC0+Zz4YIpyEra6mxYkkwAVaNFRQunNqnE 9+Vwcc7Fin1kHN2rLUap6s2IEZaLs6C8YuDLq/InYnwBumRh68/p3/1PlI21gpLrUYU7 13cw== X-Gm-Message-State: APjAAAX713TQLs42kl6cirtHbwUyOEcQzBXlHe6j3xRsLNn70sxAy5iM ZlzZ+B/Myxst4HukKx6dmZ9iX7Bgj+a2 X-Received: by 2002:a0c:9b09:: with SMTP id b9mr3197789qve.240.1555954721656; Mon, 22 Apr 2019 10:38:41 -0700 (PDT) Date: Mon, 22 Apr 2019 10:38:38 -0700 Message-Id: <20190422173838.182736-1-venture@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog Subject: [PATCH] soc: add aspeed folder and misc drivers From: Patrick Venture To: venture@google.com, arnd@arndb.de, gregkh@linuxfoundation.org, joel@jms.id.au, andrew@aj.id.au Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create a SoC folder for the ASPEED parts and place the misc drivers currently present into this folder. These drivers are not generic part drivers, but rather only apply to the ASPEED SoCs. Signed-off-by: Patrick Venture --- drivers/misc/Kconfig | 16 ---------------- drivers/misc/Makefile | 2 -- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/aspeed/Kconfig | 19 +++++++++++++++++++ drivers/soc/aspeed/Makefile | 2 ++ .../{misc => soc/aspeed}/aspeed-lpc-ctrl.c | 0 .../{misc => soc/aspeed}/aspeed-lpc-snoop.c | 0 8 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 drivers/soc/aspeed/Kconfig create mode 100644 drivers/soc/aspeed/Makefile rename drivers/{misc => soc/aspeed}/aspeed-lpc-ctrl.c (100%) rename drivers/{misc => soc/aspeed}/aspeed-lpc-snoop.c (100%) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 42ab8ec92a04..b80cb6af0cb4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -496,22 +496,6 @@ config VEXPRESS_SYSCFG bus. System Configuration interface is one of the possible means of generating transactions on this bus. -config ASPEED_LPC_CTRL - depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON - tristate "Aspeed ast2400/2500 HOST LPC to BMC bridge control" - ---help--- - Control Aspeed ast2400/2500 HOST LPC to BMC mappings through - ioctl()s, the driver also provides a read/write interface to a BMC ram - region where the host LPC read/write region can be buffered. - -config ASPEED_LPC_SNOOP - tristate "Aspeed ast2500 HOST LPC snoop support" - depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON - help - Provides a driver to control the LPC snoop interface which - allows the BMC to listen on and save the data written by - the host to an arbitrary LPC I/O port. - config PCI_ENDPOINT_TEST depends on PCI select CRC32 diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index d5b7d3404dc7..b9affcdaa3d6 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -54,8 +54,6 @@ obj-$(CONFIG_GENWQE) += genwqe/ obj-$(CONFIG_ECHO) += echo/ obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o obj-$(CONFIG_CXL_BASE) += cxl/ -obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o -obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o obj-$(CONFIG_OCXL) += ocxl/ obj-y += cardreader/ diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index c07b4a85253f..b750a88547c7 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -2,6 +2,7 @@ menu "SOC (System On Chip) specific Drivers" source "drivers/soc/actions/Kconfig" source "drivers/soc/amlogic/Kconfig" +source "drivers/soc/aspeed/Kconfig" source "drivers/soc/atmel/Kconfig" source "drivers/soc/bcm/Kconfig" source "drivers/soc/fsl/Kconfig" diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile index 90b686e586c6..83a032db3e44 100644 --- a/drivers/soc/Makefile +++ b/drivers/soc/Makefile @@ -4,6 +4,7 @@ # obj-$(CONFIG_ARCH_ACTIONS) += actions/ +obj-y += aspeed/ obj-$(CONFIG_ARCH_AT91) += atmel/ obj-y += bcm/ obj-$(CONFIG_ARCH_DOVE) += dove/ diff --git a/drivers/soc/aspeed/Kconfig b/drivers/soc/aspeed/Kconfig new file mode 100644 index 000000000000..457282cd1da5 --- /dev/null +++ b/drivers/soc/aspeed/Kconfig @@ -0,0 +1,19 @@ +menu "Aspeed SoC drivers" + +config ASPEED_LPC_CTRL + depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON + tristate "Aspeed ast2400/2500 HOST LPC to BMC bridge control" + ---help--- + Control Aspeed ast2400/2500 HOST LPC to BMC mappings through + ioctl()s, the driver also provides a read/write interface to a BMC ram + region where the host LPC read/write region can be buffered. + +config ASPEED_LPC_SNOOP + tristate "Aspeed ast2500 HOST LPC snoop support" + depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON + help + Provides a driver to control the LPC snoop interface which + allows the BMC to listen on and save the data written by + the host to an arbitrary LPC I/O port. + + diff --git a/drivers/soc/aspeed/Makefile b/drivers/soc/aspeed/Makefile new file mode 100644 index 000000000000..cfaa9adc67b5 --- /dev/null +++ b/drivers/soc/aspeed/Makefile @@ -0,0 +1,2 @@ +obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o +obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o diff --git a/drivers/misc/aspeed-lpc-ctrl.c b/drivers/soc/aspeed/aspeed-lpc-ctrl.c similarity index 100% rename from drivers/misc/aspeed-lpc-ctrl.c rename to drivers/soc/aspeed/aspeed-lpc-ctrl.c diff --git a/drivers/misc/aspeed-lpc-snoop.c b/drivers/soc/aspeed/aspeed-lpc-snoop.c similarity index 100% rename from drivers/misc/aspeed-lpc-snoop.c rename to drivers/soc/aspeed/aspeed-lpc-snoop.c -- 2.21.0.593.g511ec345e18-goog