Boris Brezillon
dc2865ac35
MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9
...
This way we will be able to compile the ndfmc driver when
COMPILE_TEST=y.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com >
Acked-by: Paul Burton <paul.burton@mips.com >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
2018-07-18 10:10:23 +02:00
Geert Uytterhoeven
2cec11d871
MIPS: TXx9: Modernize printing of kernel messages
...
- Convert from printk() to pr_*(),
- Add missing continuations, to fix user-visible breakage,
- Drop superfluous casts (u64 has been unsigned long long on all
architectures for many years).
On rbtx4927, this restores the kernel output like:
-TX4927 SDRAMC --
- CR0:0000007e00000544
- TR:32800030e
+TX4927 SDRAMC -- CR0:0000007e00000544 TR:32800030e
and:
-PCIC -- PCICLK:
-Internal(33.3MHz)
-
+PCIC -- PCICLK:Internal(33.3MHz)
Fixes: 4bcc595ccd
("printk: reinstate KERN_CONT for printing continuation lines")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Reviewed-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14646/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2017-01-03 16:34:32 +01:00
Geert Uytterhoeven
5ac676ade1
MIPS: TXx9: tx49xx: Move GPIO setup from .mem_setup() to .arch_init()
...
txx9_gpio_init() calls gpiochip_add_data(), which fails with -ENOMEM as
it is called too early in the boot process. This causes all subsequent
GPIO operations to fail silently (before commit 54d77198fd
("gpio:
bail out silently on NULL descriptors") it printed the error message
"gpiod_direction_output_raw: invalid GPIO" on RBTX49[23]7).
Postpone all GPIO setup to .arch_init() time to fix this.
Suggested-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
Cc: linux-mips@linux-mips.org
Cc: linux-gpio@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14237/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2016-10-04 16:13:57 +02:00
Joe Perches
7178d2cdd9
mips: Convert pr_warning to pr_warn
...
Use the much more common pr_warn instead of pr_warning
with the goal of removing pr_warning eventually.
Other miscellanea:
o Coalesce formats
o Realign arguments
Signed-off-by: Joe Perches <joe@perches.com >
Cc: linux-mips <linux-mips@linux-mips.org >
Cc: LKML <linux-kernel@vger.kernel.org >
Patchwork: https://patchwork.linux-mips.org/patch/7935/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:44:51 +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
Atsushi Nemoto
c3b28ae260
MIPS: TXx9: Add SRAMC support
...
Add a sysdev to access SRAM in TXx9 SoCs via sysfs.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-06-17 11:06:27 +01:00
Atsushi Nemoto
742cd5867b
MIPS: TXx9: Add ACLC support
...
Add platform support for ACLC of TXx9 SoCs.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-06-17 11:06:25 +01:00
Atsushi Nemoto
f48c8c958a
MIPS: TXx9: Add DMAC support
...
Add platform support for DMAC of TXx9 SoCs.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-06-17 11:06:25 +01:00
Atsushi Nemoto
740ebe4a54
MIPS: TXx9: Fix possible overflow in clock calculations
...
Addition of -fwrapv option in 2.6.29 discloses possible overflow with
signed arithmetics. For example, result of "a * 6 / 12" (int a =
400000000) is 200000000 without -fwrapv but -157913941 with -fwrapv.
Change some variable to unsigned to avoid such overflows.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-05-14 13:50:27 +01:00
Atsushi Nemoto
a591f5d35e
[MTD] [NAND] TXx9: add NDFMC support
...
Add platform support for NAND Flash Memory Controller of TXx9 SoCs.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Acked-By: Ralf Bächle <ralf@linux-mips.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2009-03-20 18:07:39 +00:00
Atsushi Nemoto
5d1d2f8c26
TXx9: Add TX4938 ATA support (v3)
...
Add a helper routine to register tx4938ide driver and use it on
RBTX4938 board.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Acked-by: Ralf Baechle <ralf@linux-mips.org >
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com >
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com >
2008-10-23 23:22:08 +02:00
Atsushi Nemoto
f6d9831bb1
MIPS: TXx9: stop_unused_modules
...
TXx9 SoCs have pin multiplex. Stop some controller modules which can
not be used due to pin configurations.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-10-11 16:18:47 +01:00
Atsushi Nemoto
ce8e74112b
MIPS: TXx9: Add board_be_init for TX4927/TX4938
...
Setup default board_be_handler for TX4927/TX4938.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-10-11 16:18:44 +01:00
Atsushi Nemoto
496a3b5c2c
MIPS: TXx9: Default machine_restart using watchdog reset
...
Add default machine_restart routine using watchdog reset of TX4927 and
TX4938.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-10-11 16:18:44 +01:00
Atsushi Nemoto
51f607c76e
MIPS: TXx9: Add mtd support
...
Add helper routines to register physmap-flash platform devices for NOR
flashes.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-10-11 16:18:42 +01:00
Atsushi Nemoto
d10e025f0e
MIPS: TXx9: Cache fixup
...
TX39/TX49 can enable/disable I/D cache at runtime. Add kernel options
to control them. This is useful to debug some cache-related issues,
such as aliasing or I/D coherency. Also enable CWF bit for TX49 SoCs.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-10-11 16:18:42 +01:00
Atsushi Nemoto
7779a5e07d
[MIPS] TXx9: Unify serial_txx9 setup
...
* Unify calling of early_serial_txx9_setup.
* Use dedicated serial clock on RBTX4938.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-07-30 21:54:40 +01:00
Atsushi Nemoto
c49f91f51e
[MIPS] TXx9: Make tx4938-specific code more independent
...
Make some TX4938 SoC specific code independent from board specific code.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-07-30 21:54:39 +01:00
Atsushi Nemoto
683147254e
[MIPS] TXx9: Cleanup watchdog
...
Unify registration of txx9wdt platform device.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-07-30 21:54:39 +01:00
Atsushi Nemoto
94a4c32939
[MIPS] TXx9: Add 64-bit support
...
SYS_SUPPORTS_64BIT_KERNEL is enabled for RBTX4927/RBTX4938, but
actually it was broken for long time (or from the beginning). Now it
should work.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-07-20 14:38:21 +01:00