2005-04-17 00:20:36 +02:00
|
|
|
#
|
|
|
|
# Makefile for the kernel character device drivers.
|
|
|
|
#
|
|
|
|
|
2010-11-04 19:10:29 +01:00
|
|
|
obj-y += mem.o random.o
|
2010-08-25 20:44:07 +02:00
|
|
|
obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-y += misc.o
|
|
|
|
obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o
|
2011-02-01 05:01:25 +01:00
|
|
|
obj-$(CONFIG_VIRTIO_CONSOLE) += virtio_console.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_RAW_DRIVER) += raw.o
|
2005-04-25 22:28:52 +02:00
|
|
|
obj-$(CONFIG_SGI_SNSC) += snsc.o snsc_event.o
|
2011-03-24 00:42:55 +01:00
|
|
|
obj-$(CONFIG_MSM_SMD_PKT) += msm_smd_pkt.o
|
2006-09-27 10:50:11 +02:00
|
|
|
obj-$(CONFIG_MSPEC) += mspec.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_MMTIMER) += mmtimer.o
|
2009-09-24 00:57:15 +02:00
|
|
|
obj-$(CONFIG_UV_MMTIMER) += uv_mmtimer.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_VIOTAPE) += viotape.o
|
2008-07-08 07:45:11 +02:00
|
|
|
obj-$(CONFIG_IBM_BSR) += bsr.o
|
2005-04-25 22:09:41 +02:00
|
|
|
obj-$(CONFIG_SGI_MBCS) += mbcs.o
|
2006-07-04 07:06:20 +02:00
|
|
|
obj-$(CONFIG_BRIQ_PANEL) += briq_panel.o
|
2008-04-25 02:04:56 +02:00
|
|
|
obj-$(CONFIG_BFIN_OTP) += bfin-otp.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2006-03-24 18:10:34 +01:00
|
|
|
obj-$(CONFIG_PRINTER) += lp.o
|
|
|
|
|
2007-02-09 18:08:57 +01:00
|
|
|
obj-$(CONFIG_APM_EMULATION) += apm-emulation.o
|
|
|
|
|
2006-03-24 18:10:34 +01:00
|
|
|
obj-$(CONFIG_DTLK) += dtlk.o
|
|
|
|
obj-$(CONFIG_APPLICOM) += applicom.o
|
|
|
|
obj-$(CONFIG_SONYPI) += sonypi.o
|
|
|
|
obj-$(CONFIG_RTC) += rtc.o
|
|
|
|
obj-$(CONFIG_HPET) += hpet.o
|
|
|
|
obj-$(CONFIG_GEN_RTC) += genrtc.o
|
|
|
|
obj-$(CONFIG_EFI_RTC) += efirtc.o
|
|
|
|
obj-$(CONFIG_DS1302) += ds1302.o
|
2008-02-05 18:24:09 +01:00
|
|
|
obj-$(CONFIG_XILINX_HWICAP) += xilinx_hwicap/
|
2005-04-17 00:20:36 +02:00
|
|
|
ifeq ($(CONFIG_GENERIC_NVRAM),y)
|
2006-03-24 18:10:34 +01:00
|
|
|
obj-$(CONFIG_NVRAM) += generic_nvram.o
|
2005-04-17 00:20:36 +02:00
|
|
|
else
|
2006-03-24 18:10:34 +01:00
|
|
|
obj-$(CONFIG_NVRAM) += nvram.o
|
2005-04-17 00:20:36 +02:00
|
|
|
endif
|
2006-03-24 18:10:34 +01:00
|
|
|
obj-$(CONFIG_TOSHIBA) += toshiba.o
|
|
|
|
obj-$(CONFIG_I8K) += i8k.o
|
|
|
|
obj-$(CONFIG_DS1620) += ds1620.o
|
2006-06-26 09:24:59 +02:00
|
|
|
obj-$(CONFIG_HW_RANDOM) += hw_random/
|
2006-03-24 18:10:34 +01:00
|
|
|
obj-$(CONFIG_PPDEV) += ppdev.o
|
|
|
|
obj-$(CONFIG_NWBUTTON) += nwbutton.o
|
|
|
|
obj-$(CONFIG_NWFLASH) += nwflash.o
|
2006-06-27 11:54:27 +02:00
|
|
|
obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o
|
|
|
|
obj-$(CONFIG_PC8736x_GPIO) += pc8736x_gpio.o
|
|
|
|
obj-$(CONFIG_NSC_GPIO) += nsc_gpio.o
|
2007-05-06 23:51:58 +02:00
|
|
|
obj-$(CONFIG_GPIO_TB0219) += tb0219.o
|
2006-03-24 18:10:34 +01:00
|
|
|
obj-$(CONFIG_TELCLOCK) += tlclk.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_MWAVE) += mwave/
|
|
|
|
obj-$(CONFIG_AGP) += agp/
|
|
|
|
obj-$(CONFIG_PCMCIA) += pcmcia/
|
|
|
|
obj-$(CONFIG_IPMI_HANDLER) += ipmi/
|
|
|
|
|
|
|
|
obj-$(CONFIG_HANGCHECK_TIMER) += hangcheck-timer.o
|
|
|
|
obj-$(CONFIG_TCG_TPM) += tpm/
|
|
|
|
|
2007-07-21 13:37:48 +02:00
|
|
|
obj-$(CONFIG_PS3_FLASH) += ps3flash.o
|
2010-05-26 23:43:54 +02:00
|
|
|
obj-$(CONFIG_RAMOOPS) += ramoops.o
|
2007-07-21 13:37:48 +02:00
|
|
|
|
2007-07-22 09:37:48 +02:00
|
|
|
obj-$(CONFIG_JS_RTC) += js-rtc.o
|
|
|
|
js-rtc-y = rtc.o
|
arch/tile: add hypervisor-based character driver for SPI flash ROM
The first version of this patch proposed an arch/tile/drivers/ directory,
but the consensus was that this was probably a poor choice for a place to
group Tilera-specific drivers, and that in any case grouping by platform
was discouraged, and grouping by function was preferred.
This version of the patch addresses various issues raised in the
community, primarily the absence of sysfs integration. The sysfs
integration now handles passing information on sector size, page size,
and total partition size to userspace as well. In addition, we now
use a single "struct cdev" to manage all the partition minor devices,
and dynamically discover the correct number of partitions from the
hypervisor rather than using a module_param with a default value.
This driver has no particular "peer" drivers it can be grouped with.
It is sort of like an MTD driver for SPI ROM, but it doesn't group well
with the other MTD devices since it relies on hypervisor virtualization
to handle many of the irritating aspects of flash ROM management: sector
awareness, background read for sub-sector writes, bit examination to
determine whether a sector erase needs to be issued, etc. It is in fact
more like an EEPROM driver, but the hypervisor virtualization does require
a "flush" command if you wish to commit a sector write prior to writing
to a different sector, and this is sufficiently different from generic
I2C/SPI EEPROMs that as a result it doesn't group well with them either.
The simple character device is already in use by a range of Tilera
SPI ROM management tools, as well as by customers. In addition, using
the simple character device actually simplifies the userspace tools,
since they don't need to manage sector erase, background read, etc.
This both simplifies the code (since we can uniformly manage plain files
and the SPI ROM) as well as makes the user code portable to non-Linux
platforms that don't offer the same MTD ioctls.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
2011-06-10 19:07:48 +02:00
|
|
|
|
|
|
|
obj-$(CONFIG_TILE_SROM) += tile-srom.o
|