aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/cobalt
AgeCommit message (Collapse)AuthorFilesLines
2024-01-22MIPS: Cobalt: Fix missing prototypesFlorian Fainelli1-3/+0
Fix missing prototypes warnings for cobalt_machine_halt() and cobalt_machine_restart() by moving their prototypes to cobalt.h which is included by setup.c. Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
2021-01-07MIPS: Remove empty prom_free_prom_memory functionsThomas Bogendoerfer1-5/+0
Most of the prom_free_prom_memory functions are empty. With a new weak prom_free_prom_memory() we can remove all of them. Signed-off-by: Thomas Bogendoerfer <[email protected]> Acked-by: Florian Fainelli <[email protected]>
2020-10-12MIPS: replace add_memory_region with memblockThomas Bogendoerfer1-1/+2
add_memory_region was the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions. Signed-off-by: Thomas Bogendoerfer <[email protected]>
2020-05-13MIPS: Only include the platform file neededThomas Bogendoerfer1-1/+0
Instead of including all Platform files, we simply include the needed one and avoid clashes with makefile variables. Signed-off-by: Thomas Bogendoerfer <[email protected]>
2020-03-05MIPS: Replace setup_irq() by request_irq()afzal mohammed1-8/+10
request_irq() is preferred over setup_irq(). Invocations of setup_irq() occur after memory allocators are ready. Per tglx[1], setup_irq() existed in olden days when allocators were not ready by the time early interrupts were initialized. Hence replace setup_irq() by request_irq(). remove_irq() has been replaced by free_irq() as well. There were build error's during previous version, couple of which was reported by kbuild test robot <[email protected]> of which one was reported by Thomas Bogendoerfer <[email protected]> as well. There were a few more issues including build errors, those also have been fixed. [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos Signed-off-by: afzal mohammed <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
2019-05-21treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1Thomas Gleixner7-98/+7
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 51 franklin street fifth floor boston ma 02110 1301 usa this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option [no]_[pad]_[ctrl] any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 51 franklin street fifth floor boston ma 02110 1301 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 176 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Jilayne Lovejoy <[email protected]> Reviewed-by: Steve Winslow <[email protected]> Reviewed-by: Allison Randal <[email protected]> Reviewed-by: Kate Stewart <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
2019-05-21treewide: Add SPDX license identifier - Makefile/KconfigThomas Gleixner1-0/+1
Add SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any form These files fall under the project license, GPL v2 only. The resulting SPDX license identifier is: GPL-2.0-only Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2016-08-03MIPS: Cobalt: Fix typoAndrea Gelmini1-2/+2
Signed-off-by: Andrea Gelmini <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/13316/ Signed-off-by: Ralf Baechle <[email protected]>
2015-06-21MIPS: Cobalt Don't use module_init in non-modular MTD registration.Paul Gortmaker1-2/+1
As of commit 34b1252bd91851f77f89fbb6829a04efad900f41 ("MIPS: Cobalt: Do not build MTD platform device registration code as module.") this file became built-in instead of modular. So we should also stop using module_init as an alias for __initcall as that can be rather misleading. Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing. Direct use of __initcall is discouraged, vs prioritized ones. Use of device_initcall is consistent with what __initcall maps onto, and hence does not change the init order, making the impact of this change zero. Signed-off-by: Paul Gortmaker <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/10549/ Signed-off-by: Ralf Baechle <[email protected]>
2015-06-10MIPS: Cobalt: Do not build MTD platform device registration code as module.Ralf Baechle1-2/+1
If CONFIG_MTD_PHYSMAP is set to m, the Cobalt mtd.ko module might get unloaded while the drivers/mtd modules are still loaded resulting in stale references to the destroyed platform_device instance. Anyway, platform devices should always be registered indicated what devices are present, _not_ what drivers have been configured. Signed-off-by: Ralf Baechle <[email protected]>
2013-10-29MIPS: Cobalt: Move to 8250/16550 serial early printk driverYoichi Yuasa3-21/+3
Signed-off-by: Yoichi Yuasa <[email protected]> Cc: linux-mips <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/948/ Signed-off-by: Ralf Baechle <[email protected]>
2013-05-22MIPS: Idle: Consolidate all declarations in <asm/idle.h>.Ralf Baechle1-0/+1
Signed-off-by: Ralf Baechle <[email protected]>
2013-02-01MIPS: Whitespace cleanup.Ralf Baechle3-3/+3
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 <[email protected]>
2011-09-21MIPS: Mark cascade and low level interrupts IRQF_NO_THREADWu Zhangjin1-0/+1
Mark interrupts with no_action handler, cascade interrupts, low level interrupts (bus error, halt ..) with IRQF_NO_THREAD to exclude them from forced threading. Signed-off-by: Wu Zhangjin <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: Wu Zhangjin <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2011-06-09i8253: Create linux/i8253.h and use it in all 8253 related filesRalf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]> arch/arm/mach-footbridge/isa-timer.c | 2 +- arch/mips/cobalt/time.c | 2 +- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/i8253.c | 2 +- arch/mips/mti-malta/malta-time.c | 2 +- arch/mips/sgi-ip22/ip22-time.c | 2 +- arch/mips/sni/time.c | 2 +- arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/apm_32.c | 2 +- arch/x86/kernel/hpet.c | 2 +- arch/x86/kernel/i8253.c | 2 +- arch/x86/kernel/time.c | 2 +- drivers/block/hd.c | 2 +- drivers/clocksource/i8253.c | 2 +- drivers/input/gameport/gameport.c | 2 +- drivers/input/joystick/analog.c | 2 +- drivers/input/misc/pcspkr.c | 2 +- include/linux/i8253.h | 11 +++++++++++ sound/drivers/pcsp/pcsp.h | 2 +- 19 files changed, 29 insertions(+), 18 deletions(-)
2010-08-05MIPS: Move Cobalt Makefile parts to their own Platform fileYoichi Yuasa2-2/+6
Signed-off-by: Yoichi Yuasa <[email protected]> Cc: linux-mips <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1321/ Signed-off-by: Ralf Baechle <[email protected]>
2010-02-27MIPS: Cobalt: Fix theoretical port aliasing issueRalf Baechle1-1/+1
Because the VIA SuperIO chip only decodes 24 bits of address space but port address space currently being configured as 32MB there is the theoretical possibility of aliases within the I/O port address range. The complicated solution is to reserve all address range that potencially could cause such aliases. But with the PCI spec limiting port allocations for devices to a maximum of 256 bytes 16MB of port address space already is way more than one would ever expect to be used so we just reduce the port space to 16MB. Signed-off-by: Ralf Baechle <[email protected]> To: Yoichi Yuasa <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: [email protected] Cc: Benjamin Herrenschmidt <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/995/
2010-01-12MIPS: Cobalt use strlcat() for the command line argumentsYoichi Yuasa1-16/+8
Tested with CoLo v1.22 Signed-off-by: Yoichi Yuasa <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/807/ Signed-off-by: Ralf Baechle <[email protected]>
2009-07-03Update Yoichi Yuasa's e-mail addressYoichi Yuasa7-7/+7
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2009-03-30cpumask: remove references to struct irqaction's mask field.Rusty Russell1-1/+0
Impact: cleanup It's unused, since about 1995. So remove all initialization of it in preparation for actually removing the field. Signed-off-by: Rusty Russell <[email protected]> Acked-by: Thomas Gleixner <[email protected]>
2008-07-20[MIPS] Cobalt: Fix I/O port resource rangeYoichi Yuasa1-2/+2
LCD and buttons don't use I/O port space. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2008-07-15[MIPS] Cobalt: Register new LCD platform device.Yoichi Yuasa2-1/+56
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2008-01-29[MIPS] add cpu_wait() to machine_halt()Yoichi Yuasa1-1/+6
Added cpu_wait() to machine_halt(). For the power reduction in halt. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2008-01-29[MIPS] remove unneeded button check for resetYoichi Yuasa1-19/+2
Removed unneeded button check for reset. Because, the Cobalt has power switch. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2008-01-15[MIPS] Cobalt: Qube1 has no serial port so don't use itThomas Bogendoerfer1-0/+5
Because Qube1 doesn't have a serial chip waiting for transmit fifo empty takes forever, which isn't a good idea. No prom_putchar/early console for Qube1 fixes this. Signed-off-by: Thomas Bogendoerfer <[email protected]> Acked-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-12-14[MIPS] time: Set up Cobalt's mips_hpt_frequencyYoichi Yuasa1-1/+20
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-22[MIPS] time: Add GT641xx timer0 clockevent driverYoichi Yuasa3-22/+39
And make use of it for Cobalt. A few others such as the Malta could make use of it as well. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] Cobalt: Remove cobalt_machine_power_off()Yoichi Yuasa2-11/+1
It's same as cobalt_machine_halt(). Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] Cobalt: Move reset port definition to arch/mips/cobalt/reset.cYoichi Yuasa1-2/+6
It's only used in arch/mips/cobalt/reset.c. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] Cobalt: Move UART base definition to arch/mips/cobalt/console.cYoichi Yuasa1-5/+4
They're only used in arch/mips/cobalt/console.c. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] Cobalt: Add Qube series front LED support to platform registerYoichi Yuasa1-1/+7
Add Cobalt Qube series front LED support to platform register. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] Cobalt: Add Cobalt Raq LED platform register and power off triggerYoichi Yuasa3-9/+71
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] i8253 PIT clocksource and clockevent driversRalf Baechle1-0/+6
Derived from the i386 variant with a few x86 complexities chopped off. Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] ARC: Get rid of mips_machgroupRalf Baechle1-2/+0
This has not been any serious user of this ill conceived thing since the original invention in like '95. Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] Add GT641xx IRQ routines.Yoichi Yuasa4-98/+41
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] cleanup struct irqaction initializersThomas Gleixner1-1/+3
Signed-off-by: Thomas Gleixner <[email protected]> CC: Ralf Baechle <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Cobalt: Enable UART on RaQ1Martin Michlmayr1-2/+2
Unlike the current code suggests, the RaQ1 actually has an UART. Only the Qube1 (Qube 2700) lacks one. Signed-off-by: Martin Michlmayr <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Use -Werror on subdirectories which build cleanly.Ralf Baechle1-0/+2
Signed-off-by: Ralf Baechle <[email protected]>
2007-06-26[MIPS] add io_map_base to pci_controller on CobaltYoichi Yuasa1-0/+1
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-05-11[MIPS] Rework cobalt_board_idYoichi Yuasa1-12/+0
This patch has reworked cobalt_board_id. The cobalt_board_id is read from PCI config register. It should be in PCI routine. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-05-11[MIPS] Use RTC_CMOS for CobaltYoichi Yuasa2-1/+64
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-05-11[MIPS] Use platform_device for Cobalt UARTYoichi Yuasa3-20/+86
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-05-01Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6Dmitry Torokhov8-117/+151
Conflicts: drivers/usb/input/Makefile drivers/usb/input/gtco.c
2007-04-27[MIPS] merge GT64111 PCI routines and GT64120 PCI_0 routinesYoichi Yuasa1-2/+2
This patch has merged GT64111 PCI routines and GT64120 PCI_0 routines. GT64111 PCI is almost the same as GT64120's PCI_0. This patch don't change GT64120 PCI routines. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-04-27[MIPS] Cobalt: Split PCI codes from setup.cYoichi Yuasa3-28/+48
It's removed #ifdef CONFIG_PCI/#endif from cobalt setup.c . Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-04-27[MIPS] Cobalt: clean up include filesYoichi Yuasa4-16/+9
Signed-off-by: Yoichi Yuasa <[email protected]>
2007-04-12Input: cobalt buttons - separate device and driver registrationDmitry Torokhov2-1/+55
Create platform device for cobalt buttons as part of arch setup. This makes the driver follow current driver model more closely. Signed-off-by: Dmitry Torokhov <[email protected]> Acked-by: Yoichi Yuasa <[email protected]>
2007-03-07[MIPS] Cobalt: Fix early printkYoichi Yuasa2-11/+1
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-03-04[MIPS] Cobalt: update reserved resourcesYoichi Yuasa1-23/+24
This patch has removed unused timer resource. Moreover, the name of reserved resources ware changed. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-03-04[MIPS] Fix and cleanup the mess that a dozen prom_printf variants are.Ralf Baechle2-30/+0
early_printk is a so much saner thing. Signed-off-by: Ralf Baechle <[email protected]>