Boris BREZILLON
b1afda0e33
mips: nand: make use of mtd_to_nand() where appropriate
...
mtd_to_nand() was recently introduced to avoid direct accesses to the
mtd->priv field. Update all MIPS specific implementations to use this
helper.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com >
Acked-by: Brian Norris <computersforpeace@gmail.com >
Signed-off-by: Brian Norris <computersforpeace@gmail.com >
2015-12-08 13:03:07 -08:00
Alban Bedel
832f5dacfa
MIPS: Remove all the uses of custom gpio.h
...
Currently CONFIG_ARCH_HAVE_CUSTOM_GPIO_H is defined for all MIPS
machines, and each machine type provides its own gpio.h. However
only a handful really implement the GPIO API, most just forward
everythings to gpiolib.
The Alchemy machine is notable as it provides a system to allow
implementing the GPIO API at the board level. But it is not used by
any board currently supported, so it can also be removed.
For most machine types we can just remove the custom gpio.h, as well
as the custom wrappers if some exists. Some of the code found in
the wrappers must be moved to the respective GPIO driver.
A few more fixes are need in some drivers as they rely on linux/gpio.h
to provides some machine specific definitions, or used asm/gpio.h
instead of linux/gpio.h for the gpio API.
Signed-off-by: Alban Bedel <albeu@free.fr >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Cc: linux-mips@linux-mips.org
Cc: Hauke Mehrtens <hauke@hauke-m.de >
Cc: Rafał Miłecki <zajec5@gmail.com >
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com >
Cc: Tejun Heo <tj@kernel.org >
Cc: Alexandre Courbot <gnurou@gmail.com >
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Cc: Florian Fainelli <florian@openwrt.org >
Cc: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Joe Perches <joe@perches.com >
Cc: Daniel Walter <dwalter@google.com >
Cc: Sergey Ryazanov <ryazanov.s.a@gmail.com >
Cc: Huacai Chen <chenhc@lemote.com >
Cc: James Hartley <james.hartley@imgtec.com >
Cc: Andrew Bresticker <abrestic@chromium.org >
Cc: Paul Burton <paul.burton@imgtec.com >
Cc: Jiri Kosina <jkosina@suse.cz >
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Wolfram Sang <wsa@the-dreams.de >
Cc: Randy Dunlap <rdunlap@infradead.org >
Cc: Varka Bhadram <varkabhadram@gmail.com >
Cc: Masanari Iida <standby24x7@gmail.com >
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com >
Cc: Michael Buesch <m@bues.ch >
Cc: abdoulaye berthe <berthe.ab@gmail.com >
Cc: linux-kernel@vger.kernel.org
Cc: linux-ide@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-input@vger.kernel.org
Cc: netdev@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/10828/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-09-03 12:08:02 +02:00
Manuel Lauss
c64bb5f0c2
MIPS: Alchemy: DB1300: Add touch penirq support
...
wire up the WM9713 pendown irq support.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Linux-MIPS <linux-mips@linux-mips.org >
Patchwork: https://patchwork.linux-mips.org/patch/7563/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-09-22 13:35:47 +02:00
Manuel Lauss
c02a505e5a
MIPS: Alchemy: DB1xxx: Explicitly set 50MHz clock for I2C/SPI units.
...
Add an explicit call to set the desired rate to get the correct
clock routing for the PSC clocks. It wasn't broken before, but
now it's less affected by bootloader changes.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Linux-MIPS <linux-mips@linux-mips.org >
Patchwork: https://patchwork.linux-mips.org/patch/7554/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-09-22 13:35:47 +02:00
Manuel Lauss
415e0fec7a
MIPS: Alchemy: db1x00: use clk framework
...
Make use of the clk framework to set up and enable all PSC clocks.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Linux-MIPS <linux-mips@linux-mips.org >
Patchwork: https://patchwork.linux-mips.org/patch/7469/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-07-30 14:10:00 +02:00
Manuel Lauss
9cf12167e9
MIPS: Alchemy: add helpers to access static memory ctrl registers.
...
This patch changes the static memory controller registers to offsets
from base, prefixes them with AU1000_ to avoid silent failures due to
changed addresses and introduces helpers to access them.
No functional changes, comparing assembly of a few select functions shows
no differences.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Linux-MIPS <linux-mips@linux-mips.org >
Patchwork: https://patchwork.linux-mips.org/patch/7463/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-07-30 13:53:52 +02:00
Manuel Lauss
a16afa5327
MIPS: Alchemy: fold mach-db1xxx/db1x00 headers into board code
...
Merge the db1200.h and db1300.h headers into their only users.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Linux-MIPS <linux-mips@linux-mips.org >
Patchwork: https://patchwork.linux-mips.org/patch/6660/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-03-26 23:09:21 +01:00
Manuel Lauss
970e268d6e
MIPS: Alchemy: Unify Devboard support.
...
This patch merges support for all DB1xxx and PB1xxx
boards into a single image, along with a new single defconfig
for them.
Run-tested on DB1300 and DB1500.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Linux-MIPS <linux-mips@linux-mips.org >
Patchwork: https://patchwork.linux-mips.org/patch/6577/
Patchwork: https://patchwork.linux-mips.org/patch/6659/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-03-26 23:09:21 +01:00
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
Manuel Lauss
bd8510df88
MIPS: Alchemy: Single kernel for DB1200/1300/1550
...
Combine support for the DB1200/PB1200, DB1300 and DB1550 boards into
a single kernel image.
defconfig-generated image verified on DB1200, DB1300 and DB1550.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4335/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-10-11 11:11:20 +02:00
H Hartley Sweeten
8b62b0877b
mips: Use the plat_nand default partition parser
...
Use the default partition parser, cmdlinepart, provided by the plat_nand driver.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2012-05-13 22:47:08 -05:00
Manuel Lauss
1c043f16a0
MIPS: Alchemy: Add RTC device to all devboards
...
All Devboards can use the 32kHz counter as a RTC device.
Also delete the custom CMOS RTC header, which can be used for the
DS1693 on the PB1500. But since it doesn't have a buffer battery
it is as useful as the on-chip RTC which I prefer.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com >
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2874/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:02:07 +00:00
Manuel Lauss
a9b71a8f0f
MIPS: Alchemy: move au1200fb global functions to platform data
...
au1200fb calls 3 functions which have to be defined in board code.
Fix this ugliness with the introduction of platform_data.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com >
Cc: linux-fbdev@vger.kernel.org
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2871/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:02:07 +00:00
Manuel Lauss
64cd04d0cf
MIPS: Alchemy: Basic support for the DB1300 board.
...
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com >
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2867/
Patchwork: https://patchwork.linux-mips.org/patch/2919/
Patchwork: https://patchwork.linux-mips.org/patch/2928/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:02:06 +00:00