2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# Makefile for the kernel character device drivers.
|
|
|
|
#
|
|
|
|
|
2010-11-05 02:10:29 +08:00
|
|
|
obj-y += mem.o random.o
|
2010-08-26 02:44:07 +08:00
|
|
|
obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-y += misc.o
|
|
|
|
obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o
|
2011-02-01 12:01:25 +08:00
|
|
|
obj-$(CONFIG_VIRTIO_CONSOLE) += virtio_console.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_RAW_DRIVER) += raw.o
|
2005-04-26 04:28:52 +08:00
|
|
|
obj-$(CONFIG_SGI_SNSC) += snsc.o snsc_event.o
|
2011-03-24 07:42:55 +08:00
|
|
|
obj-$(CONFIG_MSM_SMD_PKT) += msm_smd_pkt.o
|
2006-09-27 16:50:11 +08:00
|
|
|
obj-$(CONFIG_MSPEC) += mspec.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_MMTIMER) += mmtimer.o
|
2009-09-24 06:57:15 +08:00
|
|
|
obj-$(CONFIG_UV_MMTIMER) += uv_mmtimer.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_VIOTAPE) += viotape.o
|
2008-07-08 13:45:11 +08:00
|
|
|
obj-$(CONFIG_IBM_BSR) += bsr.o
|
2005-04-26 04:09:41 +08:00
|
|
|
obj-$(CONFIG_SGI_MBCS) += mbcs.o
|
2008-04-25 08:04:56 +08:00
|
|
|
obj-$(CONFIG_BFIN_OTP) += bfin-otp.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_PRINTER) += lp.o
|
|
|
|
|
2007-02-10 01:08:57 +08:00
|
|
|
obj-$(CONFIG_APM_EMULATION) += apm-emulation.o
|
|
|
|
|
2006-03-25 01:10:34 +08: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-06 01:24:09 +08:00
|
|
|
obj-$(CONFIG_XILINX_HWICAP) += xilinx_hwicap/
|
2005-04-17 06:20:36 +08:00
|
|
|
ifeq ($(CONFIG_GENERIC_NVRAM),y)
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_NVRAM) += generic_nvram.o
|
2005-04-17 06:20:36 +08:00
|
|
|
else
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_NVRAM) += nvram.o
|
2005-04-17 06:20:36 +08:00
|
|
|
endif
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_TOSHIBA) += toshiba.o
|
|
|
|
obj-$(CONFIG_I8K) += i8k.o
|
|
|
|
obj-$(CONFIG_DS1620) += ds1620.o
|
2006-06-26 15:24:59 +08:00
|
|
|
obj-$(CONFIG_HW_RANDOM) += hw_random/
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_PPDEV) += ppdev.o
|
|
|
|
obj-$(CONFIG_NWBUTTON) += nwbutton.o
|
|
|
|
obj-$(CONFIG_NWFLASH) += nwflash.o
|
2006-06-27 17:54:27 +08:00
|
|
|
obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o
|
|
|
|
obj-$(CONFIG_PC8736x_GPIO) += pc8736x_gpio.o
|
|
|
|
obj-$(CONFIG_NSC_GPIO) += nsc_gpio.o
|
2007-05-07 05:51:58 +08:00
|
|
|
obj-$(CONFIG_GPIO_TB0219) += tb0219.o
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_TELCLOCK) += tlclk.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_MWAVE) += mwave/
|
2013-11-05 20:00:08 +08:00
|
|
|
obj-y += agp/
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_PCMCIA) += pcmcia/
|
|
|
|
|
|
|
|
obj-$(CONFIG_HANGCHECK_TIMER) += hangcheck-timer.o
|
|
|
|
obj-$(CONFIG_TCG_TPM) += tpm/
|
|
|
|
|
2007-07-21 19:37:48 +08:00
|
|
|
obj-$(CONFIG_PS3_FLASH) += ps3flash.o
|
|
|
|
|
2007-07-22 15:37:48 +08: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-11 01:07:48 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_TILE_SROM) += tile-srom.o
|