Date:2009-11-21 03:14:20 (3 years 6 months ago)
Author:Lars C.
Commit:145c533ec297ba0ceab36202fb7cb892828640e4
Message:Fix issues form previous commit...

Files: target/linux/xburst/files-2.6.31/arch/mips/include/asm/jzsoc.h (1 diff)
target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-qi_lb60.h (1 diff)
target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/irq.h (2 diffs)

Change Details

target/linux/xburst/files-2.6.31/arch/mips/include/asm/jzsoc.h
1/*
2 * linux/include/asm-mips/jzsoc.h
3 *
4 * Ingenic's JZXXXX SoC common include.
5 *
6 * Copyright (C) 2006 - 2008 Ingenic Semiconductor Inc.
7 *
8 * Author: <jlwei@ingenic.cn>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15#ifndef __ASM_JZSOC_H__
16#define __ASM_JZSOC_H__
17
18/*
19 * SoC include
20 */
21
22#ifdef CONFIG_SOC_JZ4740
23#include <asm/mach-jz4740/jz4740.h>
24#endif
25
26#endif /* __ASM_JZSOC_H__ */
target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-qi_lb60.h
5959 */
6060#define MSC_WP_PIN GPIO_SD_WP
6161#define MSC_HOTPLUG_PIN GPIO_SD_CD_N
62#define MSC_HOTPLUG_IRQ (IRQ_GPIO_0 + GPIO_SD_CD_N)
62#define MSC_HOTPLUG_IRQ (JZ_IRQ_GPIO(GPIO_SD_CD_N))
6363
6464#define __msc_init_io() \
6565do { \
target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/irq.h
11#ifndef __JZ4740_IRQ_H__
22#define __JZ4740_IRQ_H__
3/*
4 * JZ4740 irqs.
5 *
6 * Copyright (C) 2009, Lars-Peter Clausen <lars@metafoo.de>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
123
4#define MIPS_CPU_IRQ_BASE 0
135#define JZ_IRQ_BASE 8
146
157// 1st-level interrupts
...... 
3931
4032/* 2nd-level interrupts */
4133#define JZ_IRQ_DMA(x) ((x) + JZ_IRQ(32)) /* 32 to 37 for DMAC channel 0 to 5 */
42#define JZ_IRQ_GPIO_0 JZ_IRQ(48) /* 48 to 175 for GPIO pin 0 to 127 */
4334
4435#define JZ_IRQ_INTC_GPIO(x) (JZ_IRQ_GPIO0 - (x))
45#define JZ_IRQ_GPIO(x) ((x) + JZ_IRQ(48)
36#define JZ_IRQ_GPIO(x) (JZ_IRQ(48) + (x))
4637
4738#define NR_IRQS (JZ_IRQ_GPIO(127) + 1)
4839

Archive Download the corresponding diff file



interactive