Implement full reset of DM9000 network device

A Davicom application note for the DM9000 network device recommends
performing software reset twice to correctly initialise the device.
Without this reset some devices fail to initialise correctly on
system startup.

Signed-off-by: Michael Abbott <michael.abbott@diamond.ac.uk>
Speed up detecting the NAND

It makes no sense to instruct the MTD framework to make use of the in flash
bad block table and then also add the flag to skip its search. This ends up
in scanning all page's OOB to get the bad block info again and again. And it
will slow down the start up process instead of shorten it (as the comment
suggests).

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
s3c2410fb: Don't forget to remove the device attribute

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Remove useless code if debug is not enabled

If one do not want to debug something, why still providing the code to do so?

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Enable display even without graphics console

If no graphics console is enabled the LCD gets not activated otherwise.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Add hwmon capabilities to mini2440

This adds the internal 8 ADC channels to the sysfs. They can be reached via:

 /sys/devices/platform/s3c24xx-adc/s3c-hwmon

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Remove a race from the s3c2410 touch driver

There seems a race in the driver when it uses the bit 15 from the dat0 and dat1
register: These bits are only valid when the pen interrupt feature is enabled.
This is not the case when a regular touchscreen X/Y conversion is running. It
only works due to a small race between s3c24xx_ts_select(), stylus_irq() and
touch_timer_fire(). It is broken immediately when the debug output of the
touchscreen driver will be enabled or the debug output of the ADC driver. In
this case the conversion never stops, even there is no pressure on the touch
anymore.

This patch simplifies the driver and stops any further conversion if the pen up
interrupt is received. Pen up and down detection is now done only in the
pen interrupt routine. This also prevents the driver forwarding garbage data
to userland, because when the pen is up, the X value is always 0.

Note: This patch makes the driver stop working on a S3C2410 CPU.

Singed-off-by: Juergen Beisert <jbe@pengutronix.de>
Add the N43i display unit to the list of known displays

The N43i display unit comes with a NEC NL4827HC19-01B LCD and
touch support. The LCD has a resolution of 480 x 272.

Signed-off-by: amit shah <techlist.amit@gmail.com>
Acked-by: Juergen Beisert <jbe@pengutronix.de>
Mini2440: Enable button 6 as one of the GPIO keys

There is no more restriction to omit button 6

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
samsung-plat: Avoid division by zero

The pwm-beeper driver crashes the PWM driver by calling with a period time of
zero nanoseconds.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
ARM: SAMSUNG: Add over sampling preventing code

Multiple calling adc by other device have happend over sampling.
It can be TS(TouchScreen), in the issue, while the adc is approaching.
This commit is preventing code for over sampling.

Signed-off-by: Dongsoo Ha <dsfine.ha@samsung.com>
Signed-off-by: Huisung Kang <hs1218.kang@samsung.com>
S3C24xx: Fix a missing dependency

Using the S3C2440 DMA unit must force the corresponding driver

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
PWM based beeper: adapt it to the new PWM framework and its symbols

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>