Alban Bedel
5b235dc264
MIPS: Fix the build on jz4740 after removing the custom gpio.h
...
Somehow the wrong version of the patch to remove the use of custom
gpio.h on mips has been merged. This patch add the missing fixes for a
build error on jz4740 because linux/gpio.h doesn't provide any machine
specfics definitions anymore.
Signed-off-by: Alban Bedel <albeu@free.fr >
Cc: Paul Burton <paul.burton@imgtec.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Brian Norris <computersforpeace@gmail.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11089/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-10-01 09:06:26 +02:00
Paul Burton
8838245d76
MIPS: JZ4740: use Ingenic SoC UART driver
...
Remove the serial support from arch/mips/jz4740 & make use of the new
Ingenic SoC UART driver. This is done for both regular & early console
output.
Signed-off-by: Paul Burton <paul.burton@imgtec.com >
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk >
Cc: Kumar Gala <galak@codeaurora.org >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Mark Rutland <mark.rutland@arm.com >
Cc: Pawel Moll <pawel.moll@arm.com >
Cc: Rob Herring <robh+dt@kernel.org >
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Stephen Warren <swarren@wwwdotorg.org >
Cc: linux-kernel@vger.kernel.org
Cc: Brian Norris <computersforpeace@gmail.com >
Cc: Apelete Seketeli <apelete@seketeli.net >
Cc: Alexandre Courbot <gnurou@gmail.com >
Patchwork: https://patchwork.linux-mips.org/patch/10160/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-06-21 21:53:26 +02:00
Paul Burton
ff1930c6bd
MIPS,clk: migrate JZ4740 to common clock framework
...
Migrate the JZ4740 & the qi_lb60 board to use common clock framework
via the new Ingenic SoC CGU driver. Note that the JZ4740-specific
debugfs code is removed since common clock framework provides its own
debug capabilities.
Signed-off-by: Paul Burton <paul.burton@imgtec.com >
Co-authored-by: Paul Cercueil <paul@crapouillou.net >
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk >
Cc: Kumar Gala <galak@codeaurora.org >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Mark Rutland <mark.rutland@arm.com >
Cc: Mike Turquette <mturquette@linaro.org >
Cc: Pawel Moll <pawel.moll@arm.com >
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Stephen Boyd <sboyd@codeaurora.org >
Cc: devicetree@vger.kernel.org
Cc: linux-clk@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Fabian Frederick <fabf@skynet.be >
Cc: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Stephen Warren <swarren@wwwdotorg.org >
Cc: linux-kernel@vger.kernel.org
Cc: Brian Norris <computersforpeace@gmail.com >
Patchwork: https://patchwork.linux-mips.org/patch/10151/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-06-21 21:53:15 +02:00
Lars-Peter Clausen
cd145af998
mtd: nand: jz4740: Convert to GPIO descriptor API
...
Use the GPIO descriptor API instead of the deprecated legacy GPIO API to
manage the busy GPIO.
The patch updates both the jz4740 nand driver and the only user of the driver
the qi-lb60 board driver.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Acked-by: Ralf Baechle <ralf@linux-mips.org >
Signed-off-by: Brian Norris <computersforpeace@gmail.com >
2015-02-02 01:04:36 -08:00
Linus Walleij
0a6d315827
gpio: split gpiod board registration into machine header
...
As per example from the regulator subsystem: put all defines and
functions related to registering board info for GPIO descriptors
into a separate <linux/gpio/machine.h> header.
Cc: Andrew Victor <linux@maxim.org.za >
Cc: Nicolas Ferre <nicolas.ferre@atmel.com >
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: Thierry Reding <thierry.reding@gmail.com >
Acked-by: Stephen Warren <swarren@wwwdotorg.org >
Reviewed-by: Alexandre Courbot <gnurou@gmail.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2014-07-28 12:23:35 +02:00
Lars-Peter Clausen
218e18a372
ASoC: qi_lb60: Use GPIO descriptor API
...
The new GPIO descriptor API is now the preferred way for handling GPIOs. It also
allows us to separate the platform depended code from the platform independent
code (Which will make it possible to increase build test coverage of the
platform independent code).
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Acked-by: Ralf Baechle <ralf@linux-mips.org >
Signed-off-by: Mark Brown <broonie@linaro.org >
2014-04-23 12:18:36 +01:00
Apelete Seketeli
c330fd90b1
MIPS: jz4740: update platform data for JZ4740 usb device controller
...
The platform data already available in tree for JZ4740 USB Device
Controller was previously used by an out-of-tree USB gadget driver
which was not relying on the musb driver and was written by Ingenic
and the Qi-Hardware community.
Update platform data for JZ4740 USB device controller to be used with
musb driver.
Signed-off-by: Apelete Seketeli <apelete@seketeli.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/6265/
2014-01-24 22:39:46 +01:00
Lars-Peter Clausen
cdcb90ad48
MIPS: jz4740: Register jz4740 DMA device
...
Register a device for the newly added jz4740 dmaengine driver.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Acked-by: Ralf Baechle <ralf@linux-mips.org >
[manually edited to align struct assignment]
Signed-off-by: Vinod Koul <vinod.koul@intel.com >
2013-07-05 11:40:51 +05:30
Ralf Baechle
7034228792
MIPS: Whitespace cleanup.
...
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2013-02-01 10:00:22 +01:00
Thierry Reding
f6b8a57000
pwm: Add Ingenic JZ4740 support
...
This commit moves the driver to drivers/pwm and converts it to the new
PWM framework.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Tested-by: Lars-Peter Clausen <lars@metafoo.de >
Acked-by: Ralf Baechle <ralf@linux-mips.org >
2012-10-05 20:56:42 +02:00
Maarten ter Huurne
56635d7993
MIPS: JZ4740: qi_lb60: Look for NAND chip in bank 1.
...
All NanoNotes have their NAND in bank 1.
Specifying the bank is required since multi-bank support was introduced.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3561/
Acked-By: David Woodhouse <David.Woodhouse@intel.com >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:56:20 +01:00
Axel Lin
b33005f3ef
ASoC: jz4740: Convert qi_lb60 to use snd_soc_register_card()
...
Use snd_soc_register_card() instead of creating a "soc-audio" platform device.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-01-20 13:58:29 +00:00
Ralf Baechle
ab75dc02c1
MIPS: Fix up inconsistency in panic() string argument.
...
Panic() invokes printk() to add a \n internally, so panic arguments should
not themselves end in \n. Panic invocations in arch/mips and elsewhere
are inconsistently sometimes terminating in \n, sometimes not.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:01:45 +00:00
Lucas De Marchi
25985edced
Fix common misspellings
...
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi >
2011-03-31 11:26:23 -03:00
Lars-Peter Clausen
c8fb4022cf
MIPS: JZ4740: Set nand ecc offsets for the qi_lb60 board
...
The jz4740 nand driver now requires that the ecc offsets are set.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2058/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-03-25 18:45:21 +01:00
Lars-Peter Clausen
0b4cf1813f
MIPS: JZ4740: qi_lb60: Add gpio-charger device
...
Register the gpio-charger device which reports whether device is currently
charging or not.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2059/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-03-25 18:45:21 +01:00
Jiri Kosina
4b7bd36470
Merge branch 'master' into for-next
...
Conflicts:
MAINTAINERS
arch/arm/mach-omap2/pm24xx.c
drivers/scsi/bfa/bfa_fcpim.c
Needed to update to apply fixes for which the old branch was too
outdated.
2010-12-22 18:57:02 +01:00
Lars-Peter Clausen
fe749aab1d
MIPS: jz4740: qi_lb60: Fix gpio for the 6th row of the keyboard matrix
...
This patch fixes the gpio number for the 6th row of the keyboard matrix.
(And fixes a typo in my name...)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Cc: linux-mips@linux-mips.org
Cc: stable@kernel.org
Signed-off-by: https://patchwork.linux-mips.org/patch/1754/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-12-16 18:10:53 +00:00
Uwe Kleine-König
b595076a18
tree-wide: fix comment/printk typos
...
"gadget", "through", "command", "maintain", "maintain", "controller", "address",
"between", "initiali[zs]e", "instead", "function", "select", "already",
"equal", "access", "management", "hierarchy", "registration", "interest",
"relative", "memory", "offset", "already",
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
2010-11-01 15:38:34 -04:00
Lars-Peter Clausen
e6b78c4f22
MIPS: JZ4740: Add qi_lb60 board support
...
Add support for the qi_lb60 (a.k.a QI Ben NanoNote) clamshell device.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1472/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:20 +01:00