Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
9651b7db
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9651b7db
编写于
10月 22, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: mx3: fix the last users of IMX_NEEDS_DEPRECATED_SYMBOLS
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
be6786ac
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
61 addition
and
59 deletion
+61
-59
arch/arm/mach-mx3/Makefile
arch/arm/mach-mx3/Makefile
+0
-3
arch/arm/mach-mx3/devices.c
arch/arm/mach-mx3/devices.c
+37
-32
arch/arm/mach-mx3/mm.c
arch/arm/mach-mx3/mm.c
+24
-24
未找到文件。
arch/arm/mach-mx3/Makefile
浏览文件 @
9651b7db
...
...
@@ -5,8 +5,6 @@
# Object file lists.
obj-y
:=
mm.o devices.o cpu.o
CFLAGS_mm.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
CFLAGS_devices.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-$(CONFIG_ARCH_MX31)
+=
clock-imx31.o iomux-imx31.o
obj-$(CONFIG_ARCH_MX35)
+=
clock-imx35.o
obj-$(CONFIG_MACH_MX31ADS)
+=
mach-mx31ads.o
...
...
@@ -15,7 +13,6 @@ obj-$(CONFIG_MACH_MX31LITE) += mach-mx31lite.o mx31lite-db.o
obj-$(CONFIG_MACH_PCM037)
+=
mach-pcm037.o
obj-$(CONFIG_MACH_PCM037_EET)
+=
mach-pcm037_eet.o
obj-$(CONFIG_MACH_MX31_3DS)
+=
mach-mx31_3ds.o
CFLAGS_mach-mx31_3ds.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-$(CONFIG_MACH_MX31MOBOARD)
+=
mach-mx31moboard.o mx31moboard-devboard.o
\
mx31moboard-marxbot.o mx31moboard-smartbot.o
obj-$(CONFIG_MACH_QONG)
+=
mach-qong.o
...
...
arch/arm/mach-mx3/devices.c
浏览文件 @
9651b7db
...
...
@@ -33,18 +33,18 @@
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
{
.
chip
.
label
=
"gpio-0"
,
.
base
=
IO_ADDRESS
(
GPIO1_BASE_ADDR
),
.
irq
=
MX
C
_INT_GPIO1
,
.
base
=
MX31_IO_ADDRESS
(
MX31_
GPIO1_BASE_ADDR
),
.
irq
=
MX
3x
_INT_GPIO1
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
,
},
{
.
chip
.
label
=
"gpio-1"
,
.
base
=
IO_ADDRESS
(
GPIO2_BASE_ADDR
),
.
irq
=
MX
C
_INT_GPIO2
,
.
base
=
MX31_IO_ADDRESS
(
MX31_
GPIO2_BASE_ADDR
),
.
irq
=
MX
3x
_INT_GPIO2
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
+
32
,
},
{
.
chip
.
label
=
"gpio-2"
,
.
base
=
IO_ADDRESS
(
GPIO3_BASE_ADDR
),
.
irq
=
MX
C
_INT_GPIO3
,
.
base
=
MX31_IO_ADDRESS
(
MX31_
GPIO3_BASE_ADDR
),
.
irq
=
MX
3x
_INT_GPIO3
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
+
64
,
}
};
...
...
@@ -56,8 +56,8 @@ int __init imx3x_register_gpios(void)
static
struct
resource
mxc_w1_master_resources
[]
=
{
{
.
start
=
OWIRE_BASE_ADDR
,
.
end
=
OWIRE_BASE_ADDR
+
SZ_4K
-
1
,
.
start
=
MX3x_
OWIRE_BASE_ADDR
,
.
end
=
MX3x_
OWIRE_BASE_ADDR
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
};
...
...
@@ -110,8 +110,8 @@ struct platform_device mxcsdhc_device1 = {
static
struct
resource
rnga_resources
[]
=
{
{
.
start
=
RNGA_BASE_ADDR
,
.
end
=
RNGA_BASE_ADDR
+
0x28
,
.
start
=
MX3x_
RNGA_BASE_ADDR
,
.
end
=
MX3x_
RNGA_BASE_ADDR
+
0x28
,
.
flags
=
IORESOURCE_MEM
,
},
};
...
...
@@ -129,20 +129,20 @@ struct platform_device mxc_rnga_device = {
/* The resource order is important! */
static
struct
resource
mx3_ipu_rsrc
[]
=
{
{
.
start
=
IPU_CTRL_BASE_ADDR
,
.
end
=
IPU_CTRL_BASE_ADDR
+
0x5F
,
.
start
=
MX3x_
IPU_CTRL_BASE_ADDR
,
.
end
=
MX3x_
IPU_CTRL_BASE_ADDR
+
0x5F
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
IPU_CTRL_BASE_ADDR
+
0x88
,
.
end
=
IPU_CTRL_BASE_ADDR
+
0xB3
,
.
start
=
MX3x_
IPU_CTRL_BASE_ADDR
+
0x88
,
.
end
=
MX3x_
IPU_CTRL_BASE_ADDR
+
0xB3
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MX
C
_INT_IPU_SYN
,
.
end
=
MX
C
_INT_IPU_SYN
,
.
start
=
MX
3x
_INT_IPU_SYN
,
.
end
=
MX
3x
_INT_IPU_SYN
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
MX
C
_INT_IPU_ERR
,
.
end
=
MX
C
_INT_IPU_ERR
,
.
start
=
MX
3x
_INT_IPU_ERR
,
.
end
=
MX
3x
_INT_IPU_ERR
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -156,8 +156,8 @@ struct platform_device mx3_ipu = {
static
struct
resource
fb_resources
[]
=
{
{
.
start
=
IPU_CTRL_BASE_ADDR
+
0xB4
,
.
end
=
IPU_CTRL_BASE_ADDR
+
0x1BF
,
.
start
=
MX3x_
IPU_CTRL_BASE_ADDR
+
0xB4
,
.
end
=
MX3x_
IPU_CTRL_BASE_ADDR
+
0x1BF
,
.
flags
=
IORESOURCE_MEM
,
},
};
...
...
@@ -174,8 +174,8 @@ struct platform_device mx3_fb = {
static
struct
resource
camera_resources
[]
=
{
{
.
start
=
IPU_CTRL_BASE_ADDR
+
0x60
,
.
end
=
IPU_CTRL_BASE_ADDR
+
0x87
,
.
start
=
MX3x_
IPU_CTRL_BASE_ADDR
+
0x60
,
.
end
=
MX3x_
IPU_CTRL_BASE_ADDR
+
0x87
,
.
flags
=
IORESOURCE_MEM
,
},
};
...
...
@@ -196,8 +196,8 @@ static struct resource otg_resources[] = {
.
end
=
MX31_OTG_BASE_ADDR
+
0x1ff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MX
C
_INT_USB3
,
.
end
=
MX
C
_INT_USB3
,
.
start
=
MX
31
_INT_USB3
,
.
end
=
MX
31
_INT_USB3
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -238,8 +238,8 @@ static struct resource mxc_usbh1_resources[] = {
.
end
=
MX31_OTG_BASE_ADDR
+
0x3ff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MX
C
_INT_USB1
,
.
end
=
MX
C
_INT_USB1
,
.
start
=
MX
31
_INT_USB1
,
.
end
=
MX
31
_INT_USB1
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -255,6 +255,7 @@ struct platform_device mxc_usbh1 = {
.
num_resources
=
ARRAY_SIZE
(
mxc_usbh1_resources
),
};
#ifdef CONFIG_ARCH_MX31
/* USB host 2 */
static
u64
usbh2_dmamask
=
~
(
u32
)
0
;
...
...
@@ -264,8 +265,8 @@ static struct resource mxc_usbh2_resources[] = {
.
end
=
MX31_OTG_BASE_ADDR
+
0x5ff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MX
C
_INT_USB2
,
.
end
=
MX
C
_INT_USB2
,
.
start
=
MX
31
_INT_USB2
,
.
end
=
MX
31
_INT_USB2
,
.
flags
=
IORESOURCE_IRQ
,
},
};
...
...
@@ -280,6 +281,7 @@ struct platform_device mxc_usbh2 = {
.
resource
=
mxc_usbh2_resources
,
.
num_resources
=
ARRAY_SIZE
(
mxc_usbh2_resources
),
};
#endif
static
struct
resource
imx_wdt_resources
[]
=
{
{
...
...
@@ -343,14 +345,17 @@ static int __init mx3_devices_init(void)
#endif
#if defined(CONFIG_ARCH_MX35)
if
(
cpu_is_mx35
())
{
imx_gpio_ports
[
0
].
base
=
MX35_IO_ADDRESS
(
MX35_GPIO1_BASE_ADDR
),
imx_gpio_ports
[
1
].
base
=
MX35_IO_ADDRESS
(
MX35_GPIO2_BASE_ADDR
),
imx_gpio_ports
[
2
].
base
=
MX35_IO_ADDRESS
(
MX35_GPIO3_BASE_ADDR
),
otg_resources
[
0
].
start
=
MX35_OTG_BASE_ADDR
;
otg_resources
[
0
].
end
=
MX35_OTG_BASE_ADDR
+
0x1ff
;
otg_resources
[
1
].
start
=
MX
C
_INT_USBOTG
;
otg_resources
[
1
].
end
=
MX
C
_INT_USBOTG
;
otg_resources
[
1
].
start
=
MX
35
_INT_USBOTG
;
otg_resources
[
1
].
end
=
MX
35
_INT_USBOTG
;
mxc_usbh1_resources
[
0
].
start
=
MX35_OTG_BASE_ADDR
+
0x400
;
mxc_usbh1_resources
[
0
].
end
=
MX35_OTG_BASE_ADDR
+
0x5ff
;
mxc_usbh1_resources
[
1
].
start
=
MX
C
_INT_USBHS
;
mxc_usbh1_resources
[
1
].
end
=
MX
C
_INT_USBHS
;
mxc_usbh1_resources
[
1
].
start
=
MX
35
_INT_USBHS
;
mxc_usbh1_resources
[
1
].
end
=
MX
35
_INT_USBHS
;
imx_wdt_resources
[
0
].
start
=
MX35_WDOG_BASE_ADDR
;
imx_wdt_resources
[
0
].
end
=
MX35_WDOG_BASE_ADDR
+
0x3fff
;
}
...
...
arch/arm/mach-mx3/mm.c
浏览文件 @
9651b7db
...
...
@@ -42,29 +42,29 @@
*/
static
struct
map_desc
mxc_io_desc
[]
__initdata
=
{
{
.
virtual
=
X_MEMC_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
X_MEMC_BASE_ADDR
),
.
length
=
X_MEMC_SIZE
,
.
type
=
MT_DEVICE
.
virtual
=
MX3x_
X_MEMC_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX3x_
X_MEMC_BASE_ADDR
),
.
length
=
MX3x_
X_MEMC_SIZE
,
.
type
=
MT_DEVICE
},
{
.
virtual
=
AVIC_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
AVIC_BASE_ADDR
),
.
length
=
AVIC_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
.
virtual
=
MX3x_
AVIC_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX3x_
AVIC_BASE_ADDR
),
.
length
=
MX3x_
AVIC_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
{
.
virtual
=
AIPS1_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
AIPS1_BASE_ADDR
),
.
length
=
AIPS1_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
.
virtual
=
MX3x_
AIPS1_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX3x_
AIPS1_BASE_ADDR
),
.
length
=
MX3x_
AIPS1_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
{
.
virtual
=
AIPS2_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
AIPS2_BASE_ADDR
),
.
length
=
AIPS2_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
.
virtual
=
MX3x_
AIPS2_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX3x_
AIPS2_BASE_ADDR
),
.
length
=
MX3x_
AIPS2_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
{
.
virtual
=
SPBA0_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
SPBA0_BASE_ADDR
),
.
length
=
SPBA0_SIZE
,
.
virtual
=
MX3x_
SPBA0_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX3x_
SPBA0_BASE_ADDR
),
.
length
=
MX3x_
SPBA0_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
};
...
...
@@ -77,7 +77,7 @@ static struct map_desc mxc_io_desc[] __initdata = {
void
__init
mx31_map_io
(
void
)
{
mxc_set_cpu_type
(
MXC_CPU_MX31
);
mxc_arch_reset_init
(
IO_ADDRESS
(
WDOG_BASE_ADDR
));
mxc_arch_reset_init
(
MX31_IO_ADDRESS
(
MX31_
WDOG_BASE_ADDR
));
iotable_init
(
mxc_io_desc
,
ARRAY_SIZE
(
mxc_io_desc
));
}
...
...
@@ -86,8 +86,8 @@ void __init mx31_map_io(void)
void
__init
mx35_map_io
(
void
)
{
mxc_set_cpu_type
(
MXC_CPU_MX35
);
mxc_iomux_v3_init
(
IO_ADDRESS
(
IOMUXC_BASE_ADDR
));
mxc_arch_reset_init
(
IO_ADDRESS
(
WDOG_BASE_ADDR
));
mxc_iomux_v3_init
(
MX35_IO_ADDRESS
(
MX35_
IOMUXC_BASE_ADDR
));
mxc_arch_reset_init
(
MX35_IO_ADDRESS
(
MX3x_
WDOG_BASE_ADDR
));
iotable_init
(
mxc_io_desc
,
ARRAY_SIZE
(
mxc_io_desc
));
}
...
...
@@ -97,7 +97,7 @@ int imx3x_register_gpios(void);
void
__init
mx31_init_irq
(
void
)
{
mxc_init_irq
(
IO_ADDRESS
(
AVIC_BASE_ADDR
));
mxc_init_irq
(
MX31_IO_ADDRESS
(
MX3x_
AVIC_BASE_ADDR
));
imx3x_register_gpios
();
}
...
...
@@ -129,7 +129,7 @@ static int mxc_init_l2x0(void)
pr_err
(
"L2 cache: Cannot fix timing. Trying to continue without
\n
"
);
}
l2x0_base
=
ioremap
(
L2CC_BASE_ADDR
,
4096
);
l2x0_base
=
ioremap
(
MX3x_
L2CC_BASE_ADDR
,
4096
);
if
(
IS_ERR
(
l2x0_base
))
{
printk
(
KERN_ERR
"remapping L2 cache area failed with %ld
\n
"
,
PTR_ERR
(
l2x0_base
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录