10 Jul, 2008
8 commits
-
As well as moving all the device declarations to a single one in devices.c
this causes all platforms to register the I/O and interrupt resources for
the AC97 controller.Cc: eric miao
Cc: Mike Rapoport
Cc: Lennert Buytenhek
Cc: Jürgen Schindele
Cc: Juergen Beisert
Signed-off-by: Mark Brown
Signed-off-by: Russell King -
The pxa2xx_udc.c driver is renamed to pxa25x_udc.c (the platform
driver name changes from pxa2xx-udc to pxa25x-udc) and the
platform driver name of pxa27x_udc.c is fixed to pxa27x-udc.
pxa_device_udc in devices.c is split into pxa25x and pxa27x flavors
and the pxa27x_device_udc is enabled in pxa27x.c.Signed-off-by: Philipp Zabel
Acked-by: Nicolas Pitre
Acked-by: Eric Miao
Signed-off-by: Russell KingIncluding from Ian Molton:
Fixes for mistakes left over from the PXA2{5,7}X UDC split.
Signed-off-by: Ian Molton
Signed-off-by: Russell King -
is handled in board code
Signed-off-by: Dmitry Baryshkov
Signed-off-by: Russell King -
Provide a set of functions to control state of pins dedicated to IrDA.
Signed-off-by: Dmitry Baryshkov
Signed-off-by: Russell King -
Signed-off-by: Dmitry Baryshkov
Signed-off-by: Russell King -
pxa_set_cken() is now unused, remove it.
Signed-off-by: Russell King
-
We need to support more than one name+device for a struct clk for a
small number of peripherals. We do this by re-using struct clk alias
to another struct clk - IOW, if we find that the entry we're using is
an alias, we return the aliased entry not the one we found.Signed-off-by: Russell King
07 Jul, 2008
4 commits
-
Warn people when using pxa2xx-gpio.h as it is only here for backwards
compatibility. The new mfp-pxa2[57]x.h and the relevant API should be used
instead.Signed-off-by: Stefan Schmidt
Signed-off-by: Russell King -
Both i2c-pxa.c and irq.c still include pxa2xx-gpio.h although is is not
needed anymore.Signed-off-by: Philipp Zabel
Acked-by: Eric Miao
Signed-off-by: Russell King -
This patch adds exit and remove handlers to pxafb so that it can be loaded
and unloaded as a module.Signed-off-by: Jaya Kumar
Acked-by: Krzysztof Helt
Acked-by: Eric Miao
Signed-off-by: Russell King -
Signed-off-by: Eric Miao
Acked-by: Mark Brown
Signed-off-by: Russell King
03 Jul, 2008
11 commits
-
PCM990 boards can be assembled with either a Sharp STN or a NEC TFT LCD. This
patch adds support for these displays and for the backlight, using the pwm_bl
driver.Signed-off-by: Guennadi Liakhovetski
Signed-off-by: Russell King -
magician has a GPIO that modifies the brightness level additionally to
the PWM duty value. This patch makes use of the pwm_bl notify callback
to present userspace with a single brightness scale.
This gets rid of the pxa_set_cken calls and direct PWM register access.Signed-off-by: Philipp Zabel
Signed-off-by: Russell King -
Make the return of pwm_request() be more informative than just
being NULL on error by using PTR_ERR() to respond with an
approriate error.Signed-off-by: Ben Dooks
Signed-off-by: Russell King -
This allows platform code to manipulate GPIOs and brightness level as
needed.Signed-off-by: Philipp Zabel
Signed-off-by: Russell King -
Acked-by: Lennert Buytenhek
Signed-off-by: Russell King -
Signed-off-by: Russell King
-
Patch mostly by Eric Miao, minor edits by rmk.
Signed-off-by: eric miao
Signed-off-by: Russell King -
Patch mostly from Eric Miao, with minor edits by rmk to convert
Eric's driver to a generic PWM-based backlight driver.Signed-off-by: eric miao
Signed-off-by: Russell King -
Allow pwm_enable()/pwm_disable() to be called as many times
as the driver wants (and not even count them).
The PWM model is different from things like the clock API
where we need enable counting, because PWMs have one
exclusive user per PWM whereas the clock API can have
multiple users of the same clock.Acked-by: eric miao
Signed-off-by: Robert Jarzmik
Signed-off-by: Russell King -
as a module
Without a GPL-compatible license this driver cannot be built as a module,
because the platform_driver_* API is only exported to GPL modules.Signed-off-by: Guennadi Liakhovetski
Acked-by: Eric Miao
Signed-off-by: Russell King -
Currently PWM0/2 (pxa27x_device_pwm0 at 0x40b00000 and 0x40b00010
are registered as as pwm_id 0 and 1, PWM1/3 (pxa27x_device_pwm1 at
0x40c00000 and 0x40c00010) are registered as pwm_id 2 and 3.
This patch corrects the pwm_ids to match the documented register names.Signed-off-by: Philipp Zabel
Acked-by: Eric Miao
Signed-off-by: Russell King
16 Jun, 2008
2 commits
-
This adds the definition for the third USB port control register UP3OCR. It is
used on the EZX GSM mobile phones.Signed-off-by: Stefan Schmidt
Acked-by: Eric Miao
Signed-off-by: Russell King -
and include pxa2xx-regs.h as build fix since PSSR definitions
moved from pxa-regs.h into pxa2xx-regs.h.Note: This change is temporary as pxa27x processor specific
code will be finally moved elsewhere (both drivers should
support pxa3xx, too).Signed-off-by: Philipp Zabel
Acked-by: Eric Miao
Signed-off-by: Russell King
03 Jun, 2008
8 commits
-
As nothing in the code references to the PXA_SHARPSL_25x/27x,
we can drop that Kconfig case and permit all-zaurus builds.Signed-off-by: Dmitry Baryshkov
Acked-by: Richard Purdie
Signed-off-by: Russell King -
Signed-off-by: Dmitry Baryshkov
Acked-by: Richard Purdie
Signed-off-by: Russell King -
Signed-off-by: Dmitry Baryshkov
Acked-by: Richard Purdie
Signed-off-by: Russell King -
Combine cm_x270_defconfig and em_x270_defconfig to allow running the
same kernel on both machinesSigned-off-by: Mike Rapoport
Signed-off-by: Russell King -
Convert the 'choice' into a 'menu' to allow multiple platforms to be
selected.This means to do a build check across PXA, you don't end up spending
a lifetime building _twenty_ sodding kernels.Signed-off-by: Russell King
-
Adjust zones for PCI DMA only if machine_is_armcore() to allow running
the same kernel on different PXA machines.Signed-off-by: Mike Rapoport
Signed-off-by: Russell King -
The power manager and core clock registers aren't present in PXA3
CPUs. Move them out of pxa-regs.h into pxa2xx-regs.h, and include
pxa2xx-regs.h where necessary.Signed-off-by: Russell King
-
This fixes a build error introduced when the power manager
register definitions were moved into pxa2xx-regs.h.Signed-off-by: Philipp Zabel
Signed-off-by: Russell King
02 Jun, 2008
5 commits
-
standby.S contains both PXA2 and PXA3 specific code. The PXA3
specific constants clash with the PXA2 ones, so give them a prefix.Signed-off-by: Russell King
-
When a dynamically allocated platform device is 'put', the platform
device's platform_data is kfree'd. This is bad if it's pointing at
static data. Use the provided function to register platform data
for these devices.This also means we can mark the pcmcia ops structures as __initdata.
Signed-off-by: Russell King
-
cm_x270 and mainstone both register their PCMCIA devices using the same
name, resulting in a warning message from the kernel. Avoid this by
making the cm_x270 and mainstone PCMCIA initialisation conditional on
the machine type we're running on.Signed-off-by: Russell King
-
Don't register the LPD270 cpld_irq system device when we're not running
on a LPD270 machine - "cpld_irq" is also registered (separately) by
Lubbock and Mainstone.Signed-off-by: Russell King
-
Signed-off-by: Dmitry Baryshkov
Acked-by: Richard Purdie
Signed-off-by: Russell King
19 May, 2008
2 commits
-
The PXA25x and PXA27x USB device controller register definitions are
different. Currently, they live side by side in pxa-regs.h, but only
one set is available depending on the setting of PXA25x or PXA27x.This means that if we build to support both PXA25x and PXA27x, the
PXA27x definitions are unavailable, even to PXA27x specific code.Remove these definitions from pxa-regs.h, and place them in separate
files. Include these files where appropriate.Note: according to the dependencies in drivers/usb/gadget/Kconfig,
we do not support the UDC on PXA27x nor PXA3xx CPUs, so remove the
platform devices from pxa27x.c and pxa3xx.c.Signed-off-by: Russell King
-
If CONFIG_BACKLIGHT_CORGI is not selected, then corgibl_limit_intensity()
is not present. However, both corgi_pm.c and sharp_pm.c reference this
symbol, resulting in a link error.Wrap the references with the relevant ifdefs, and avoid the resulting
NULL pointer dereference by making the code in sharpsl_pm.c also
conditional on the config symbol.Signed-off-by: Russell King