Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
05a3185c
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
05a3185c
编写于
3月 04, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: mx1: don't use deprecated symbol names
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
c10ea4d6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
81 addition
and
81 deletion
+81
-81
arch/arm/mach-mx1/Makefile
arch/arm/mach-mx1/Makefile
+0
-1
arch/arm/mach-mx1/clock.c
arch/arm/mach-mx1/clock.c
+2
-1
arch/arm/mach-mx1/crm_regs.h
arch/arm/mach-mx1/crm_regs.h
+2
-2
arch/arm/mach-mx1/devices.c
arch/arm/mach-mx1/devices.c
+59
-58
arch/arm/mach-mx1/generic.c
arch/arm/mach-mx1/generic.c
+6
-7
arch/arm/mach-mx1/mach-mx1ads.c
arch/arm/mach-mx1/mach-mx1ads.c
+6
-6
arch/arm/mach-mx1/mach-scb9328.c
arch/arm/mach-mx1/mach-scb9328.c
+6
-6
未找到文件。
arch/arm/mach-mx1/Makefile
浏览文件 @
05a3185c
...
...
@@ -4,7 +4,6 @@
# Object file lists.
EXTRA_CFLAGS
+=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-y
+=
generic.o clock.o devices.o
# Support for CMOS sensor interface
...
...
arch/arm/mach-mx1/clock.c
浏览文件 @
05a3185c
...
...
@@ -596,7 +596,8 @@ int __init mx1_clocks_init(unsigned long fref)
clk_enable
(
&
hclk
);
clk_enable
(
&
fclk
);
mxc_timer_init
(
&
gpt_clk
,
IO_ADDRESS
(
TIM1_BASE_ADDR
),
TIM1_INT
);
mxc_timer_init
(
&
gpt_clk
,
MX1_IO_ADDRESS
(
MX1_TIM1_BASE_ADDR
),
MX1_TIM1_INT
);
return
0
;
}
arch/arm/mach-mx1/crm_regs.h
浏览文件 @
05a3185c
...
...
@@ -9,8 +9,8 @@
#ifndef __ARCH_ARM_MACH_MX1_CRM_REGS_H__
#define __ARCH_ARM_MACH_MX1_CRM_REGS_H__
#define CCM_BASE
IO_ADDRESS(
CCM_BASE_ADDR)
#define SCM_BASE
IO_ADDRESS(
SCM_BASE_ADDR)
#define CCM_BASE
MX1_IO_ADDRESS(MX1_
CCM_BASE_ADDR)
#define SCM_BASE
MX1_IO_ADDRESS(MX1_
SCM_BASE_ADDR)
/* CCM register addresses */
#define CCM_CSCR (CCM_BASE + 0x0)
...
...
arch/arm/mach-mx1/devices.c
浏览文件 @
05a3185c
...
...
@@ -21,6 +21,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <mach/irqs.h>
...
...
@@ -34,20 +35,20 @@ static struct resource imx_csi_resources[] = {
.
end
=
0x00224010
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
CSI_INT
,
.
end
=
CSI_INT
,
.
start
=
MX1_
CSI_INT
,
.
end
=
MX1_
CSI_INT
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
u64
imx_csi_dmamask
=
0xffffffffUL
;
static
u64
imx_csi_dmamask
=
DMA_BIT_MASK
(
32
)
;
struct
platform_device
imx_csi_device
=
{
.
name
=
"mx1-camera"
,
.
id
=
0
,
/* This is used to put cameras on this interface */
.
dev
=
{
.
dma_mask
=
&
imx_csi_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
.
coherent_dma_mask
=
DMA_BIT_MASK
(
32
)
,
},
.
resource
=
imx_csi_resources
,
.
num_resources
=
ARRAY_SIZE
(
imx_csi_resources
),
...
...
@@ -59,8 +60,8 @@ static struct resource imx_i2c_resources[] = {
.
end
=
0x00217010
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
I2C_INT
,
.
end
=
I2C_INT
,
.
start
=
MX1_
I2C_INT
,
.
end
=
MX1_
I2C_INT
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -74,21 +75,21 @@ struct platform_device imx_i2c_device = {
static
struct
resource
imx_uart1_resources
[]
=
{
{
.
start
=
UART1_BASE_ADDR
,
.
end
=
UART1_BASE_ADDR
+
0xD0
,
.
flags
=
IORESOURCE_MEM
,
.
start
=
MX1_
UART1_BASE_ADDR
,
.
end
=
MX1_
UART1_BASE_ADDR
+
0xD0
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
UART1_MINT_RX
,
.
end
=
UART1_MINT_RX
,
.
flags
=
IORESOURCE_IRQ
,
.
start
=
MX1_
UART1_MINT_RX
,
.
end
=
MX1_
UART1_MINT_RX
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
UART1_MINT_TX
,
.
end
=
UART1_MINT_TX
,
.
flags
=
IORESOURCE_IRQ
,
.
start
=
MX1_
UART1_MINT_TX
,
.
end
=
MX1_
UART1_MINT_TX
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
UART1_MINT_RTS
,
.
end
=
UART1_MINT_RTS
,
.
flags
=
IORESOURCE_IRQ
,
.
start
=
MX1_
UART1_MINT_RTS
,
.
end
=
MX1_
UART1_MINT_RTS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -101,21 +102,21 @@ struct platform_device imx_uart1_device = {
static
struct
resource
imx_uart2_resources
[]
=
{
{
.
start
=
UART2_BASE_ADDR
,
.
end
=
UART2_BASE_ADDR
+
0xD0
,
.
flags
=
IORESOURCE_MEM
,
.
start
=
MX1_
UART2_BASE_ADDR
,
.
end
=
MX1_
UART2_BASE_ADDR
+
0xD0
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
UART2_MINT_RX
,
.
end
=
UART2_MINT_RX
,
.
flags
=
IORESOURCE_IRQ
,
.
start
=
MX1_
UART2_MINT_RX
,
.
end
=
MX1_
UART2_MINT_RX
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
UART2_MINT_TX
,
.
end
=
UART2_MINT_TX
,
.
flags
=
IORESOURCE_IRQ
,
.
start
=
MX1_
UART2_MINT_TX
,
.
end
=
MX1_
UART2_MINT_TX
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
UART2_MINT_RTS
,
.
end
=
UART2_MINT_RTS
,
.
flags
=
IORESOURCE_IRQ
,
.
start
=
MX1_
UART2_MINT_RTS
,
.
end
=
MX1_
UART2_MINT_RTS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -132,12 +133,12 @@ static struct resource imx_rtc_resources[] = {
.
end
=
0x00204024
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
RTC_INT
,
.
end
=
RTC_INT
,
.
start
=
MX1_
RTC_INT
,
.
end
=
MX1_
RTC_INT
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
RTC_SAMINT
,
.
end
=
RTC_SAMINT
,
.
start
=
MX1_
RTC_SAMINT
,
.
end
=
MX1_
RTC_SAMINT
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -155,8 +156,8 @@ static struct resource imx_wdt_resources[] = {
.
end
=
0x00201008
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
WDT_INT
,
.
end
=
WDT_INT
,
.
start
=
MX1_
WDT_INT
,
.
end
=
MX1_
WDT_INT
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -174,32 +175,32 @@ static struct resource imx_usb_resources[] = {
.
end
=
0x00212148
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
USBD_INT0
,
.
end
=
USBD_INT0
,
.
start
=
MX1_
USBD_INT0
,
.
end
=
MX1_
USBD_INT0
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
USBD_INT1
,
.
end
=
USBD_INT1
,
.
start
=
MX1_
USBD_INT1
,
.
end
=
MX1_
USBD_INT1
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
USBD_INT2
,
.
end
=
USBD_INT2
,
.
start
=
MX1_
USBD_INT2
,
.
end
=
MX1_
USBD_INT2
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
USBD_INT3
,
.
end
=
USBD_INT3
,
.
start
=
MX1_
USBD_INT3
,
.
end
=
MX1_
USBD_INT3
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
USBD_INT4
,
.
end
=
USBD_INT4
,
.
start
=
MX1_
USBD_INT4
,
.
end
=
MX1_
USBD_INT4
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
USBD_INT5
,
.
end
=
USBD_INT5
,
.
start
=
MX1_
USBD_INT5
,
.
end
=
MX1_
USBD_INT5
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
USBD_INT6
,
.
end
=
USBD_INT6
,
.
start
=
MX1_
USBD_INT6
,
.
end
=
MX1_
USBD_INT6
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -215,23 +216,23 @@ struct platform_device imx_usb_device = {
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
{
.
chip
.
label
=
"gpio-0"
,
.
base
=
(
void
__iomem
*
)
IO_ADDRESS
(
GPIO_BASE_ADDR
),
.
irq
=
GPIO_INT_PORTA
,
.
base
=
(
void
__iomem
*
)
MX1_IO_ADDRESS
(
MX1_
GPIO_BASE_ADDR
),
.
irq
=
MX1_
GPIO_INT_PORTA
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
,
},
{
.
chip
.
label
=
"gpio-1"
,
.
base
=
(
void
__iomem
*
)
IO_ADDRESS
(
GPIO_BASE_ADDR
+
0x100
),
.
irq
=
GPIO_INT_PORTB
,
.
base
=
(
void
__iomem
*
)
MX1_IO_ADDRESS
(
MX1_
GPIO_BASE_ADDR
+
0x100
),
.
irq
=
MX1_
GPIO_INT_PORTB
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
+
32
,
},
{
.
chip
.
label
=
"gpio-2"
,
.
base
=
(
void
__iomem
*
)
IO_ADDRESS
(
GPIO_BASE_ADDR
+
0x200
),
.
irq
=
GPIO_INT_PORTC
,
.
base
=
(
void
__iomem
*
)
MX1_IO_ADDRESS
(
MX1_
GPIO_BASE_ADDR
+
0x200
),
.
irq
=
MX1_
GPIO_INT_PORTC
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
+
64
,
},
{
.
chip
.
label
=
"gpio-3"
,
.
base
=
(
void
__iomem
*
)
IO_ADDRESS
(
GPIO_BASE_ADDR
+
0x300
),
.
irq
=
GPIO_INT_PORTD
,
.
base
=
(
void
__iomem
*
)
MX1_IO_ADDRESS
(
MX1_
GPIO_BASE_ADDR
+
0x300
),
.
irq
=
MX1_
GPIO_INT_PORTD
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
+
96
,
}
};
...
...
arch/arm/mach-mx1/generic.c
浏览文件 @
05a3185c
...
...
@@ -31,23 +31,22 @@
static
struct
map_desc
imx_io_desc
[]
__initdata
=
{
{
.
virtual
=
IMX_IO_BASE
,
.
pfn
=
__phys_to_pfn
(
IMX_IO_PHYS
),
.
length
=
IMX
_IO_SIZE
,
.
type
=
MT_DEVICE
.
virtual
=
MX1_IO_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX1_IO_BASE_ADDR
),
.
length
=
MX1
_IO_SIZE
,
.
type
=
MT_DEVICE
}
};
void
__init
mx1_map_io
(
void
)
{
mxc_set_cpu_type
(
MXC_CPU_MX1
);
mxc_arch_reset_init
(
IO_ADDRESS
(
WDT_BASE_ADDR
));
mxc_arch_reset_init
(
MX1_IO_ADDRESS
(
MX1_
WDT_BASE_ADDR
));
iotable_init
(
imx_io_desc
,
ARRAY_SIZE
(
imx_io_desc
));
}
void
__init
mx1_init_irq
(
void
)
{
mxc_init_irq
(
IO_ADDRESS
(
AVIC_BASE_ADDR
));
mxc_init_irq
(
MX1_IO_ADDRESS
(
MX1_
AVIC_BASE_ADDR
));
}
arch/arm/mach-mx1/mach-mx1ads.c
浏览文件 @
05a3185c
...
...
@@ -75,8 +75,8 @@ static struct physmap_flash_data mx1ads_flash_data = {
};
static
struct
resource
flash_resource
=
{
.
start
=
IMX
_CS0_PHYS
,
.
end
=
IMX
_CS0_PHYS
+
SZ_32M
-
1
,
.
start
=
MX1
_CS0_PHYS
,
.
end
=
MX1
_CS0_PHYS
+
SZ_32M
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
...
...
@@ -145,8 +145,8 @@ struct sys_timer mx1ads_timer = {
MACHINE_START
(
MX1ADS
,
"Freescale MX1ADS"
)
/* Maintainer: Sascha Hauer, Pengutronix */
.
phys_io
=
IMX_IO_PHYS
,
.
io_pg_offst
=
(
IMX_IO_BASE
>>
18
)
&
0xfffc
,
.
phys_io
=
MX1_IO_BASE_ADDR
,
.
io_pg_offst
=
(
MX1_IO_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
MX1_PHYS_OFFSET
+
0x100
,
.
map_io
=
mx1_map_io
,
.
init_irq
=
mx1_init_irq
,
...
...
@@ -155,8 +155,8 @@ MACHINE_START(MX1ADS, "Freescale MX1ADS")
MACHINE_END
MACHINE_START
(
MXLADS
,
"Freescale MXLADS"
)
.
phys_io
=
IMX_IO_PHYS
,
.
io_pg_offst
=
(
IMX_IO_BASE
>>
18
)
&
0xfffc
,
.
phys_io
=
MX1_IO_BASE_ADDR
,
.
io_pg_offst
=
(
MX1_IO_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
MX1_PHYS_OFFSET
+
0x100
,
.
map_io
=
mx1_map_io
,
.
init_irq
=
mx1_init_irq
,
...
...
arch/arm/mach-mx1/mach-scb9328.c
浏览文件 @
05a3185c
...
...
@@ -31,8 +31,8 @@
* This scb9328 has a 32MiB flash
*/
static
struct
resource
flash_resource
=
{
.
start
=
IMX
_CS0_PHYS
,
.
end
=
IMX
_CS0_PHYS
+
(
32
*
1024
*
1024
)
-
1
,
.
start
=
MX1
_CS0_PHYS
,
.
end
=
MX1
_CS0_PHYS
+
(
32
*
1024
*
1024
)
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
...
...
@@ -70,13 +70,13 @@ static struct dm9000_plat_data dm9000_platdata = {
static
struct
resource
dm9000x_resources
[]
=
{
{
.
name
=
"address area"
,
.
start
=
IMX
_CS5_PHYS
,
.
end
=
IMX
_CS5_PHYS
+
1
,
.
start
=
MX1
_CS5_PHYS
,
.
end
=
MX1
_CS5_PHYS
+
1
,
.
flags
=
IORESOURCE_MEM
,
/* address access */
},
{
.
name
=
"data area"
,
.
start
=
IMX
_CS5_PHYS
+
4
,
.
end
=
IMX
_CS5_PHYS
+
5
,
.
start
=
MX1
_CS5_PHYS
+
4
,
.
end
=
MX1
_CS5_PHYS
+
5
,
.
flags
=
IORESOURCE_MEM
,
/* data access */
},
{
.
start
=
IRQ_GPIOC
(
3
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录