2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# Makefile for misc devices that really don't fit anywhere else.
|
|
|
|
#
|
|
|
|
|
2006-10-02 17:17:36 +08:00
|
|
|
obj-$(CONFIG_IBM_ASM) += ibmasm/
|
2009-12-15 10:00:15 +08:00
|
|
|
obj-$(CONFIG_AD525X_DPOT) += ad525x_dpot.o
|
ad525x_dpot: add support for SPI parts
Split the bus logic out into separate files so that we can handle I2C and
SPI busses independently. The new SPI bus logic brings in support for a
lot more parts:
AD5160, AD5161, AD5162, AD5165, AD5200, AD5201, AD5203,
AD5204, AD5206, AD5207, AD5231, AD5232, AD5233, AD5235,
AD5260, AD5262, AD5263, AD5290, AD5291, AD5292, AD5293,
AD7376, AD8400, AD8402, AD8403, ADN2850
[randy.dunlap@oracle.com: fix ad525X_dpot build]
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-05-25 05:33:14 +08:00
|
|
|
obj-$(CONFIG_AD525X_DPOT_I2C) += ad525x_dpot-i2c.o
|
|
|
|
obj-$(CONFIG_AD525X_DPOT_SPI) += ad525x_dpot-spi.o
|
2011-06-18 06:13:33 +08:00
|
|
|
obj-$(CONFIG_INTEL_MID_PTI) += pti.o
|
2007-10-17 14:26:11 +08:00
|
|
|
obj-$(CONFIG_ATMEL_SSC) += atmel-ssc.o
|
2008-02-23 09:23:23 +08:00
|
|
|
obj-$(CONFIG_ATMEL_TCLIB) += atmel_tclib.o
|
2013-03-21 07:21:21 +08:00
|
|
|
obj-$(CONFIG_DUMMY_IRQ) += dummy-irq.o
|
2008-11-13 05:27:04 +08:00
|
|
|
obj-$(CONFIG_ICS932S401) += ics932s401.o
|
2006-10-02 17:17:36 +08:00
|
|
|
obj-$(CONFIG_LKDTM) += lkdtm.o
|
2006-10-04 17:15:38 +08:00
|
|
|
obj-$(CONFIG_TIFM_CORE) += tifm_core.o
|
|
|
|
obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o
|
2007-05-08 15:31:45 +08:00
|
|
|
obj-$(CONFIG_PHANTOM) += phantom.o
|
2015-07-17 07:55:32 +08:00
|
|
|
obj-$(CONFIG_QCOM_COINCELL) += qcom-coincell.o
|
2010-10-27 05:22:37 +08:00
|
|
|
obj-$(CONFIG_SENSORS_BH1770) += bh1770glc.o
|
2010-10-27 05:22:38 +08:00
|
|
|
obj-$(CONFIG_SENSORS_APDS990X) += apds990x.o
|
2006-10-17 15:09:25 +08:00
|
|
|
obj-$(CONFIG_SGI_IOC4) += ioc4.o
|
2008-02-04 05:40:56 +08:00
|
|
|
obj-$(CONFIG_ENCLOSURE_SERVICES) += enclosure.o
|
2008-03-08 06:34:17 +08:00
|
|
|
obj-$(CONFIG_KGDB_TESTS) += kgdbts.o
|
2008-04-23 03:46:56 +08:00
|
|
|
obj-$(CONFIG_SGI_XP) += sgi-xp/
|
2008-07-30 13:34:01 +08:00
|
|
|
obj-$(CONFIG_SGI_GRU) += sgi-gru/
|
2009-12-15 10:00:37 +08:00
|
|
|
obj-$(CONFIG_CS5535_MFGPT) += cs5535-mfgpt.o
|
2008-07-02 23:38:53 +08:00
|
|
|
obj-$(CONFIG_HP_ILO) += hpilo.o
|
2010-10-27 05:22:41 +08:00
|
|
|
obj-$(CONFIG_APDS9802ALS) += apds9802als.o
|
2009-04-01 06:23:53 +08:00
|
|
|
obj-$(CONFIG_ISL29003) += isl29003.o
|
2010-10-27 05:22:40 +08:00
|
|
|
obj-$(CONFIG_ISL29020) += isl29020.o
|
2010-03-14 03:56:54 +08:00
|
|
|
obj-$(CONFIG_SENSORS_TSL2550) += tsl2550.o
|
2009-12-07 00:06:16 +08:00
|
|
|
obj-$(CONFIG_DS1682) += ds1682.o
|
2009-12-15 10:00:17 +08:00
|
|
|
obj-$(CONFIG_TI_DAC7512) += ti_dac7512.o
|
2008-11-13 05:27:12 +08:00
|
|
|
obj-$(CONFIG_C2PORT) += c2port/
|
2010-08-10 08:21:05 +08:00
|
|
|
obj-$(CONFIG_HMC6352) += hmc6352.o
|
2009-01-27 04:19:53 +08:00
|
|
|
obj-y += eeprom/
|
2009-05-23 02:33:59 +08:00
|
|
|
obj-y += cb710/
|
2011-03-23 07:33:58 +08:00
|
|
|
obj-$(CONFIG_SPEAR13XX_PCIE_GADGET) += spear13xx_pcie_gadget.o
|
2010-09-23 04:04:57 +08:00
|
|
|
obj-$(CONFIG_VMWARE_BALLOON) += vmw_balloon.o
|
2010-09-01 20:16:30 +08:00
|
|
|
obj-$(CONFIG_PCH_PHUB) += pch_phub.o
|
2010-10-07 00:18:15 +08:00
|
|
|
obj-y += ti-st/
|
2011-03-22 00:59:36 +08:00
|
|
|
obj-y += lis3lv02d/
|
2011-07-26 08:13:07 +08:00
|
|
|
obj-$(CONFIG_USB_SWITCH_FSA9480) += fsa9480.o
|
2011-09-23 22:17:41 +08:00
|
|
|
obj-$(CONFIG_ALTERA_STAPL) +=altera-stapl/
|
2012-05-02 06:23:38 +08:00
|
|
|
obj-$(CONFIG_INTEL_MEI) += mei/
|
2013-01-09 07:55:59 +08:00
|
|
|
obj-$(CONFIG_VMWARE_VMCI) += vmw_vmci/
|
2012-12-07 16:06:59 +08:00
|
|
|
obj-$(CONFIG_LATTICE_ECP3_CONFIG) += lattice-ecp3-config.o
|
2013-04-30 07:17:12 +08:00
|
|
|
obj-$(CONFIG_SRAM) += sram.o
|
2017-01-13 04:52:20 +08:00
|
|
|
obj-$(CONFIG_SRAM_EXEC) += sram-exec.o
|
2013-09-06 07:41:31 +08:00
|
|
|
obj-y += mic/
|
2013-12-09 20:30:44 +08:00
|
|
|
obj-$(CONFIG_GENWQE) += genwqe/
|
2014-03-01 06:08:42 +08:00
|
|
|
obj-$(CONFIG_ECHO) += echo/
|
2014-04-23 17:49:31 +08:00
|
|
|
obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o
|
2014-10-08 16:55:01 +08:00
|
|
|
obj-$(CONFIG_CXL_BASE) += cxl/
|
drivers/misc: Add Aspeed LPC control driver
In order to manage server systems, there is typically another processor
known as a BMC (Baseboard Management Controller) which is responsible
for powering the server and other various elements, sometimes fans,
often the system flash.
The Aspeed BMC family which is what is used on OpenPOWER machines and a
number of x86 as well is typically connected to the host via an LPC
(Low Pin Count) bus (among others).
The LPC bus is an ISA bus on steroids. It's generally used by the
BMC chip to provide the host with access to the system flash (via MEM/FW
cycles) that contains the BIOS or other host firmware along with a
number of SuperIO-style IOs (via IO space) such as UARTs, IPMI
controllers.
On the BMC chip side, this is all configured via a bunch of registers
whose content is related to a given policy of what devices are exposed
at a per system level, which is system/vendor specific, so we don't want
to bolt that into the BMC kernel. This started with a need to provide
something nicer than /dev/mem for user space to configure these things.
One important aspect of the configuration is how the MEM/FW space is
exposed to the host (ie, the x86 or POWER). Some registers in that
bridge can define a window remapping all or portion of the LPC MEM/FW
space to a portion of the BMC internal bus, with no specific limits
imposed in HW.
I think it makes sense to ensure that this window is configured by a
kernel driver that can apply some serious sanity checks on what it is
configured to map.
In practice, user space wants to control this by flipping the mapping
between essentially two types of portions of the BMC address space:
- The flash space. This is a region of the BMC MMIO space that
more/less directly maps the system flash (at least for reads, writes
are somewhat more complicated).
- One (or more) reserved area(s) of the BMC physical memory.
The latter is needed for a number of things, such as avoiding letting
the host manipulate the innards of the BMC flash controller via some
evil backdoor, we want to do flash updates by routing the window to a
portion of memory (under control of a mailbox protocol via some
separate set of registers) which the host can use to write new data in
bulk and then request the BMC to flash it. There are other uses, such
as allowing the host to boot from an in-memory flash image rather than
the one in flash (very handy for continuous integration and test, the
BMC can just download new images).
It is important to note that due to the way the Aspeed chip lets the
kernel configure the mapping between host LPC addresses and BMC ram
addresses the offset within the window must be a multiple of size.
Not doing so will fragment the accessible space rather than simply
moving 'zero' upwards. This is caused by the nature of HICR8 being a
mask and the way host LPC addresses are translated.
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-02-17 11:28:49 +08:00
|
|
|
obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o
|
2017-06-03 05:53:22 +08:00
|
|
|
obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o
|
2017-03-27 17:45:14 +08:00
|
|
|
obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o
|
2016-02-23 06:05:44 +08:00
|
|
|
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += lkdtm_core.o
|
2016-06-27 13:17:25 +08:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += lkdtm_bugs.o
|
2016-06-27 12:45:23 +08:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += lkdtm_heap.o
|
2016-06-27 06:12:31 +08:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += lkdtm_perms.o
|
2017-04-25 04:23:21 +08:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += lkdtm_refcount.o
|
2016-02-23 06:09:29 +08:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += lkdtm_rodata_objcopy.o
|
2016-06-26 23:46:23 +08:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += lkdtm_usercopy.o
|
2016-02-23 06:09:29 +08:00
|
|
|
|
2017-03-28 17:57:27 +08:00
|
|
|
KCOV_INSTRUMENT_lkdtm_rodata.o := n
|
|
|
|
|
2016-02-23 06:09:29 +08:00
|
|
|
OBJCOPYFLAGS :=
|
|
|
|
OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \
|
|
|
|
--set-section-flags .text=alloc,readonly \
|
|
|
|
--rename-section .text=.rodata
|
2016-08-02 05:18:34 +08:00
|
|
|
targets += lkdtm_rodata.o lkdtm_rodata_objcopy.o
|
|
|
|
$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o FORCE
|
2016-02-23 06:09:29 +08:00
|
|
|
$(call if_changed,objcopy)
|