Re: [PATCH] Add tsc2007 based touchscreen driver.



On Wed, Dec 3, 2008 at 8:21 PM, Trilok Soni <soni.trilok@xxxxxxxxx> wrote:
Hi Lee

Adding linux-omap mailing list. Sometime I am thinking that same chip
might have interface to be connected on another board/cpu through SPI
too, so in this case we will have two drivers doing the same thing and
difference is just a change of the bus interface.

Hi Soni,

At first, I tried to support tsc2007 with ads7846.c. But it required
some kind of
common logic to support both SPI and I2C for the driver, as you thought.

If I modified the ads7846.c to support tsc2007, the driver might be a
bit more complicate.
I do not know which method is better, but making a different driver
was simppler for me.

Thank you.

We should do something v4l2_subdev framework right now going on on
v4l2 mailing list to abstract the sensor drivers from bus.


--
Kwangwoo Lee <kwangwoo.lee@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [spi-devel-general] Accelerometer, Gyros and ADCs etc within the kernel.
    ... say the HW SPI is pushed down to some lower level driver. ... interface via sysfs and something similar to the input subsystems ... a larger ring buffer in the kernel if necessary. ...
    (Linux-Kernel)
  • Re: 2.6.16-rc1-mm3
    ... Driver 'w83627hf' needs updating - please use bus_type methods ... binfmt_misc thermal fan processor ipv6 w83627hf ... # ACPI (Advanced Configuration and Power Interface) Support ...
    (Linux-Kernel)
  • Re: FPGA programming driver architecture
    ... the second a parallel interface. ... as well as better in line with the Linux driver ... Considering the several FPGA models available and ways to program it, ... what goes into the specific interface modules (spi, parallel, etc). ...
    (Linux-Kernel)
  • Re: Stuck creating sysfs hooks for a driver..
    ... You must stay away from writing a driver for the board itself. ... 1* A driver for the SPI interface of your board (basically a parallel ... port SPI bridge). ... This driver doesn't care about what chip is ...
    (Linux-Kernel)
  • [PATCH 1/2] atmel-mci: Unified Atmel MCI drivers (AVR32 & AT91)
    ... Unification of the atmel-mci driver to support the AT91 processors MCI ... tristate "AT91 SD/MMC Card Interface support" ...
    (Linux-Kernel)