Infineion TLE62X0 device driver
PATCH 1/1 Infineion TLE62X0 device driver
Add support for the Infineon TLE62x0 series of low-side driver chips, such as the TLE6220 or TLE6230.
include/linux/spi/tle62x0.h new file +23 -0
@@ -0,0 +1,23 @@ +/* include/linux/spi/tle62x0.h +* +* Copyright 2007 Simtec Electronics +* Ben Dooks <ben-Y5A6D6n0/[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +struct tle62x0_pdata { +unsigned int init_state; +unsigned int gpio_count; +};
drivers/spi/Kconfig +7 -0
@@ -160,6 +160,13 @@ config SPI_S3C24XX_GPIO # Add new SPI master controllers in alphabetical order above this line # +config SPI_TLE62X0 + tristate "Infineon TLE62X0" + depends on SPI_MASTER + help + SPI driver for Infineion TLE62X0 series line driver chips, + such as the TLE6220, TLE6230 and TLE6240. + # # There are lots of SPI device types, with sensors and memory # being probably the most widely used ones.
drivers/spi/tle62x0.c new file +312 -0
312 lines not on this page · raw message
drivers/spi/Makefile +1 -0
@@ -28,6 +28,7 @@ obj-$(CONFIG_SPI_S3C24XX) += spi_s3c24x # SPI protocol drivers (device/link on bus) obj-$(CONFIG_SPI_AT25) += at25.o obj-$(CONFIG_SPI_SPIDEV) += spidev.o +obj-$(CONFIG_SPI_TLE62X0) += tle62x0.o # ... add above this line ... # SPI slave controller drivers (upstream link)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
A message that is not in the archive (sent off-list or not yet received): 20070605183244.GE13353-SMNkleLxa3Z6Wcw2j4pizdi2O/[email protected]
Quoted 2 lines · Ben Dooks
Add support for the Infineon TLE62x0 series of low-side driver chips, such as the TLE6220 or TLE6230.
I forwarded a version with minor updates/fixes; thanks.
Ben, you might consider getting rid of the separate "status" file for diagnostic info and just bundling that with as part of each individual line's status ... it seems odd to view that apart from whether the switch is e.g. on or not, and there are sysfs fascists who object to multi-valued files.
Also, it looked to me like the init_state should have been fed to the chip, rather than just assumed to be correct.
- Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/