aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-08-05MIPS: strip the un-needed sections of vmlinuzWu Zhangjin1-0/+3
This patch use "strip -s" to strip the .symtab and .strtab sections of vmlinuz. Note: This patch is based on http://patchwork.linux-mips.org/patch/1324/ Signed-off-by: Wu Zhangjin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1383/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up the calculation of VMLINUZ_LOAD_ADDRESSWu Zhangjin2-13/+14
We have calculated VMLINUZ_LOAD_ADDRESS in shell, which is indecipherable. This patch rewrites it in C. Signed-off-by: Wu Zhangjin <[email protected]> To: linux-mips <[email protected]> Cc: Alexander Clouter <[email protected]> Cc: Manuel Lauss <[email protected]> Cc: Sam Ravnborg <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Reviewed-by: Alexander Clouter <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1324/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up arch/mips/boot/compressed/decompress.cWu Zhangjin1-24/+14
- Remove several outdated comments - Clearify the definition of zimage_start and zimage_size and the their usage Signed-off-by: Wu Zhangjin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1382/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up arch/mips/boot/compressed/ld.scriptWu Zhangjin1-34/+17
- Remove unused symbols: _fdata, _text; only _edata and _end are needed by head.S - Remove unused sections: .sbss, .stab, .gptab.sdata, .gptab.sbss - Change the alignment to 16 bytes to ensure it is greater than any fundamental type of a MIPS compiler. - Clean up comments Signed-off-by: Wu Zhangjin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1381/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Unify the suffix of compressed vmlinux.binWu Zhangjin2-8/+61
The compressed vmlinux.bin is only a temp file so it's ok to use the same suffix .z for them (.gz,.lzo,.lzma...) to remove several lines and simpify the maintenance (no need to add the "suffix_$(xxx) := suffix" line). Signed-off-by: Wu Zhangjin <[email protected]> To: linux-mips <[email protected]> Cc: Alexander Clouter <[email protected]> Cc: Manuel Lauss <[email protected]> Cc: Sam Ravnborg <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1323/ Signed-off-by: Ralf Baechle <[email protected]> ---
2010-08-05MIPS: PowerTV: Add Gaia platform definitions.David VomLehn6-11/+708
Define ASIC address, memory preallocations, and initialization code for the Gaia platform. Signed-off-by: David VomLehn <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1519/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: BCM47xx: Fix nvram_getenv return value.Hauke Mehrtens2-2/+5
Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on success and -9 if the value was not found. If the input was wrong -8 will be returned by cfe_getenv. Change nvram_getenv to do the same. Signed-off-by: Hauke Mehrtens <[email protected]> Cc: Waldemar Brodkorb <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1520/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Octeon: Allow more than 3.75GB of memory with PCIeDavid Daney4-14/+87
We reserve the 3.75GB - 4GB region of PCIe address space for device to device transfers, making the corresponding physical memory under direct mapping unavailable for DMA. To allow for PCIe DMA to all physical memory we map this chunk of physical memory with BAR1. Because of the resulting discontinuity in the mapping function, we remove a page of memory at each end of the range so multi-page DMA buffers can never be allocated that span the range. Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1535/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up notify_die() usage.David Daney1-10/+15
The sixth argument of notify_die() is a signal number, the fifth is a trap number. Instead of passing a signal number in a randomly selected argument, pass it in the sixth. Extract the exception code from regs and pass that as the trap number. Get rid of redundant cast, and remove some gratuitous spaces. Nobody actually does anything with the signal number or trap number, but we might as well populate them with sensible values. Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1532/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Remove unused task_struct.trap_no field.David Daney3-4/+1
It is initialized to zero and only ever read. Remove it, and pass zero in its place. Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1531/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05Documentation: Mention that KProbes is supported on MIPSDavid Daney1-0/+1
MIPS now has KProbes support, so kprobes.txt should reflect it. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1527/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05SAMPLES: kprobe_example: Make it print something on MIPS.David Daney1-0/+9
This KProbes example is a little useless if it doesn't print anything. For MIPS print similar messages to those produced on x86 and PPC. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1528/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: kprobe: Add support.David Daney9-2/+695
This patch is based on previous work by Sony and Himanshu Chauhan. I have done some cleanup and implemented JProbes and KRETPROBES. The KRETPROBES part is pretty much copied verbatim from powerpc. A possible future enhance might be to factor out the common code. Signed-off-by: David Daney <[email protected]> Cc: Himanshu Chauhan <[email protected]> To: [email protected] To: [email protected], To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1525/ Patchwork: https://patchwork.linux-mips.org/patch/1530/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Add instrunction format for BREAK and SYSCALLDavid Daney1-1/+14
Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1524/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: kprobes: Define regs_return_value()David Daney1-0/+1
Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected], Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1529/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Ritually kill stupid printk.Ralf Baechle5-5/+0
This belongs into userland. Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Octeon: Disallow MSI-X interrupt and fall back to MSI interrupts.Chandrakala Chavva2-0/+33
MSI-X interrupts are not supported yet for Octeon, return error if MSI-X interrupts are requested by driver so that the driver will fall back to use MSI interrupts. Signed-off-by: Chandrakala Chavva <[email protected]> To: [email protected] Cc: David Daney <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1506/ Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: David Daney <[email protected]>
2010-08-05MIPS: Octeon: Support 256 MSI on PCIeDavid Daney2-118/+178
Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: http://patchwork.linux-mips.org/patch/1507/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Decode core number for R2 CPUs.David Daney1-0/+3
The struct cpuinfo_mips.core field should be populated with the physical core number. For R2 CPUs, this is carried in the low 10 bits of Ebase. Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1505/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: SMTC: Use %p to format pointersKulikov Vasiliy1-2/+1
While at it, drop 0x prefix. Signed-off-by: Kulikov Vasiliy <[email protected]> To: [email protected] Cc: Chris Dearman <[email protected]> Cc: "Robert P. J. Day" <[email protected]> Cc: Rusty Russell <[email protected]> Cc: AndrĂ© Goddard Rosa <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1458/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Loongson: Remove unused macro LOONGSON_PERFCNT_IRQWu Zhangjin1-1/+0
LOONGSON2_PERFCNT_IRQ is used for the irq number of the performance overflow interrupts; LOONGSON_PERFCNT_IRQ is unused so remove it. Signed-off-by: Wu Zhangjin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1494/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Loongson: Oprofile: add a new do_perfcnt_IRQ()Wu Zhangjin3-4/+10
On FuLoong-2F IP6 is shared by the performance counter overflow interrupt and the Bonito northbridge interrupt. To reduce overhead only call do_IRQ() when oprofile is enabled to reduce overhead. This patch adds an inline function do_perfcnt_IRQ() to hide the #if's , which can be shared by the other Loongson machines, i.e. gdium. Signed-off-by: Wu Zhangjin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1492/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Loongson: Remove set_irq_trigger_mode()Wu Zhangjin4-18/+8
set_irq_trigger_mode() is not needed on all platforms so remove it and move the related source code to mach_init_irq(). This will allow gdium to share the common irq.c without adding an empty set_irq_trigger_mode(). Signed-off-by: Wu Zhangjin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1493/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05WATCHDOG: Add watchdog driver for OCTEON SOCsDavid Daney4-0/+829
The OCTEON is a MIPS64 based SOC family with an on chip watchdog unit. The driver is split into two source files one for the C code and one for assembly. Assembly is needed to handle the NMI and then print the machine state before the reboot is triggered. Signed-off-by: David Daney <[email protected]> Cc: Wim Van Sebroeck <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Russell King <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Sam Ravnborg <[email protected]> To: [email protected] Cc: [email protected], Patchwork: https://patchwork.linux-mips.org/patch/1503/ Signed-off-by: Wim Van Sebroeck <[email protected]> Signed-off-by: Ralf Baechle <[email protected]> create mode 100644 drivers/watchdog/octeon-wdt-main.c create mode 100644 drivers/watchdog/octeon-wdt-nmi.S
2010-08-05MIPS: Define ST0_NMI in asm/mipsregs.hDavid Daney1-0/+1
This is used by the forthcoming OCTEON watchdog patch. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1498/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Export __cpu_number_map and __cpu_logical_map.David Daney1-0/+4
The forthcoming Octeon watchdog driver will use them. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1499/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Octeon: Export prom_putchar().David Daney1-1/+5
The forthcoming watchdog driver will use it. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1499/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: uasm: Add option to export uasm API.David Daney4-63/+110
A 'select EXPORT_UASM' in Kconfig will cause the uasm to be exported for use in modules. When it is exported, all the uasm data and code cease to be __init and __initdata. Also daddiu_bug cannot be __cpuinitdata if uasm is exported. The cleanest thing is to just make it normal data. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1500/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: uasm: Add BBIT0 and BBIT1 instructionsDavid Daney2-1/+25
These are OCTEON specific instructions. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1496/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: uasm: Add drotr32 and uasm_i_drotr_safe.David Daney2-5/+18
Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1495/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Octeon: Implement delays with cycle counter.David Daney4-13/+58
Power throttling make deterministic delay loops impossible. Re-implement delays using the cycle counter. This also allows us to get rid of the code that calculates loops per jiffy. Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1317/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add qi_lb60 board supportLars-Peter Clausen3-0/+477
Add support for the qi_lb60 (a.k.a QI Ben NanoNote) clamshell device. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1472/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05POWER: Add JZ4740 battery driver.Lars-Peter Clausen4-0/+481
Add support for the battery voltage measurement part of the JZ4740 ADC unit. Signed-off-by: Lars-Peter Clausen <[email protected]> Acked-by: Anton Vorontsov <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1416/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05HWMON: Add JZ4740 ADC driverLars-Peter Clausen3-0/+241
Add support for reading the ADCIN pin of the ADC unit on JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Acked-by: Jean Delvare <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1425/ Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05USB: Add JZ4740 OHCI supportLars-Peter Clausen3-0/+282
Add OHCI glue code for JZ4740 SoCs OHCI module. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: David Brownell <[email protected]> Cc: [email protected] Acked-by: Greg Kroah-Hartman <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1411/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MMC: Add support for the controller on JZ4740 SoCs.Lars-Peter Clausen4-0/+1054
Signed-off-by: Lars-Peter Clausen <[email protected]> Acked-by: Matt Fleming <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Matt Fleming <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1463/ Patchwork: https://patchwork.linux-mips.org/patch/1523/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MTD: Nand: Add JZ4740 NAND driverLars-Peter Clausen4-0/+557
Add support for the NAND controller on JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: David Woodhouse <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1470/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05FBDEV: JZ4740: Add framebuffer driverLars-Peter Clausen4-0/+924
Add support for the LCD controller on JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1470/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05RTC: Add JZ4740 RTC driverLars-Peter Clausen3-0/+357
Add support for the RTC unit on JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: [email protected] Acked-by: Wan ZongShun <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Alessandro Zummo <[email protected]>, Patchwork: https://patchwork.linux-mips.org/patch/1424/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add Kbuild filesLars-Peter Clausen5-0/+43
Add the Kbuild files for the JZ4740 architecture and adds JZ4740 support to the MIPS Kbuild files. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1406/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add platform devicesLars-Peter Clausen2-0/+327
Add platform devices for all the JZ4740 platform drivers. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1469/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add prom supportLars-Peter Clausen1-0/+68
Add support for initializing arcs_cmdline on JZ4740 based machines and provides a prom_putchar implementation. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1404/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add serial supportLars-Peter Clausen2-0/+53
The JZ4740 UART interface is almost 16550 compatible. The UART module needs to be enabled by setting a bit in the FCR register and it has support for receive timeout interrupts. Instead of adding yet another machine specific quirk to the 8250 serial driver we provide a serial_out implementation which sets the required additional flags. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1403/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add PWM supportLars-Peter Clausen1-0/+177
Add support for the PWM part of the timer unit on a JZ4740 SoC. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1468/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add DMA support.Lars-Peter Clausen2-0/+379
Add support for DMA transfers on JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1401/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add GPIO supportLars-Peter Clausen2-0/+1002
Add gpiolib support for JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1467/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add setup codeLars-Peter Clausen1-0/+29
Add plat_mem_setup and get_system_type for JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1399/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add power-management and system reset supportLars-Peter Clausen3-0/+141
Add support for suspend/resume and poweroff/reboot on a JZ4740 SoC. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1398/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add clocksource/clockevent support.Lars-Peter Clausen1-0/+144
Add clocksource and clockevent support for the timer/counter unit on JZ4740 SoCs. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1397/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: JZ4740: Add timer supportLars-Peter Clausen3-0/+206
Add support for the timer/counter unit on a JZ4740 SoC. This code is used as a common base for the JZ4740 clocksource/clockevent implementation and PWM support. Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1396/ Signed-off-by: Ralf Baechle <[email protected]>