Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
725278e0
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
725278e0
编写于
11月 07, 2010
作者:
R
Russell King
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://git.kernel.org/pub/scm/linux/kernel/git/nico/orion
上级
c947f69f
7350f419
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
29 addition
and
42 deletion
+29
-42
arch/arm/mach-kirkwood/common.c
arch/arm/mach-kirkwood/common.c
+3
-4
arch/arm/mach-kirkwood/d2net_v2-setup.c
arch/arm/mach-kirkwood/d2net_v2-setup.c
+1
-1
arch/arm/mach-kirkwood/lacie_v2-common.c
arch/arm/mach-kirkwood/lacie_v2-common.c
+0
-14
arch/arm/mach-kirkwood/lacie_v2-common.h
arch/arm/mach-kirkwood/lacie_v2-common.h
+0
-2
arch/arm/mach-kirkwood/mpp.c
arch/arm/mach-kirkwood/mpp.c
+1
-3
arch/arm/mach-kirkwood/netspace_v2-setup.c
arch/arm/mach-kirkwood/netspace_v2-setup.c
+3
-3
arch/arm/mach-kirkwood/netxbig_v2-setup.c
arch/arm/mach-kirkwood/netxbig_v2-setup.c
+2
-2
arch/arm/mach-kirkwood/ts41x-setup.c
arch/arm/mach-kirkwood/ts41x-setup.c
+13
-1
arch/arm/mach-mv78xx0/mpp.c
arch/arm/mach-mv78xx0/mpp.c
+1
-3
arch/arm/mach-orion5x/mpp.c
arch/arm/mach-orion5x/mpp.c
+1
-3
arch/arm/mach-orion5x/ts78xx-setup.c
arch/arm/mach-orion5x/ts78xx-setup.c
+1
-1
arch/arm/plat-orion/include/plat/pcie.h
arch/arm/plat-orion/include/plat/pcie.h
+3
-0
arch/arm/plat-orion/pcie.c
arch/arm/plat-orion/pcie.c
+0
-5
未找到文件。
arch/arm/mach-kirkwood/common.c
浏览文件 @
725278e0
...
...
@@ -854,10 +854,9 @@ int __init kirkwood_find_tclk(void)
kirkwood_pcie_id
(
&
dev
,
&
rev
);
if
((
dev
==
MV88F6281_DEV_ID
&&
(
rev
==
MV88F6281_REV_A0
||
rev
==
MV88F6281_REV_A1
))
||
(
dev
==
MV88F6282_DEV_ID
))
return
200000000
;
if
(
dev
==
MV88F6281_DEV_ID
||
dev
==
MV88F6282_DEV_ID
)
if
(((
readl
(
SAMPLE_AT_RESET
)
>>
21
)
&
1
)
==
0
)
return
200000000
;
return
166666667
;
}
...
...
arch/arm/mach-kirkwood/d2net_v2-setup.c
浏览文件 @
725278e0
...
...
@@ -225,5 +225,5 @@ MACHINE_START(D2NET_V2, "LaCie d2 Network v2")
.
init_machine
=
d2net_v2_init
,
.
map_io
=
kirkwood_map_io
,
.
init_irq
=
kirkwood_init_irq
,
.
timer
=
&
lacie_v2
_timer
,
.
timer
=
&
kirkwood
_timer
,
MACHINE_END
arch/arm/mach-kirkwood/lacie_v2-common.c
浏览文件 @
725278e0
...
...
@@ -111,17 +111,3 @@ void __init lacie_v2_hdd_power_init(int hdd_num)
pr_err
(
"Failed to power up HDD%d
\n
"
,
i
+
1
);
}
}
/*****************************************************************************
* Timer
****************************************************************************/
static
void
lacie_v2_timer_init
(
void
)
{
kirkwood_tclk
=
166666667
;
orion_time_init
(
IRQ_KIRKWOOD_BRIDGE
,
kirkwood_tclk
);
}
struct
sys_timer
lacie_v2_timer
=
{
.
init
=
lacie_v2_timer_init
,
};
arch/arm/mach-kirkwood/lacie_v2-common.h
浏览文件 @
725278e0
...
...
@@ -13,6 +13,4 @@ void lacie_v2_register_flash(void);
void
lacie_v2_register_i2c_devices
(
void
);
void
lacie_v2_hdd_power_init
(
int
hdd_num
);
extern
struct
sys_timer
lacie_v2_timer
;
#endif
arch/arm/mach-kirkwood/mpp.c
浏览文件 @
725278e0
...
...
@@ -59,7 +59,7 @@ void __init kirkwood_mpp_conf(unsigned int *mpp_list)
}
printk
(
"
\n
"
);
while
(
*
mpp_list
)
{
for
(
;
*
mpp_list
;
mpp_list
++
)
{
unsigned
int
num
=
MPP_NUM
(
*
mpp_list
);
unsigned
int
sel
=
MPP_SEL
(
*
mpp_list
);
int
shift
,
gpio_mode
;
...
...
@@ -88,8 +88,6 @@ void __init kirkwood_mpp_conf(unsigned int *mpp_list)
if
(
sel
!=
0
)
gpio_mode
=
0
;
orion_gpio_set_valid
(
num
,
gpio_mode
);
mpp_list
++
;
}
printk
(
KERN_DEBUG
" final MPP regs:"
);
...
...
arch/arm/mach-kirkwood/netspace_v2-setup.c
浏览文件 @
725278e0
...
...
@@ -262,7 +262,7 @@ MACHINE_START(NETSPACE_V2, "LaCie Network Space v2")
.
init_machine
=
netspace_v2_init
,
.
map_io
=
kirkwood_map_io
,
.
init_irq
=
kirkwood_init_irq
,
.
timer
=
&
lacie_v2
_timer
,
.
timer
=
&
kirkwood
_timer
,
MACHINE_END
#endif
...
...
@@ -272,7 +272,7 @@ MACHINE_START(INETSPACE_V2, "LaCie Internet Space v2")
.
init_machine
=
netspace_v2_init
,
.
map_io
=
kirkwood_map_io
,
.
init_irq
=
kirkwood_init_irq
,
.
timer
=
&
lacie_v2
_timer
,
.
timer
=
&
kirkwood
_timer
,
MACHINE_END
#endif
...
...
@@ -282,6 +282,6 @@ MACHINE_START(NETSPACE_MAX_V2, "LaCie Network Space Max v2")
.
init_machine
=
netspace_v2_init
,
.
map_io
=
kirkwood_map_io
,
.
init_irq
=
kirkwood_init_irq
,
.
timer
=
&
lacie_v2
_timer
,
.
timer
=
&
kirkwood
_timer
,
MACHINE_END
#endif
arch/arm/mach-kirkwood/netxbig_v2-setup.c
浏览文件 @
725278e0
...
...
@@ -403,7 +403,7 @@ MACHINE_START(NET2BIG_V2, "LaCie 2Big Network v2")
.
init_machine
=
netxbig_v2_init
,
.
map_io
=
kirkwood_map_io
,
.
init_irq
=
kirkwood_init_irq
,
.
timer
=
&
lacie_v2
_timer
,
.
timer
=
&
kirkwood
_timer
,
MACHINE_END
#endif
...
...
@@ -413,6 +413,6 @@ MACHINE_START(NET5BIG_V2, "LaCie 5Big Network v2")
.
init_machine
=
netxbig_v2_init
,
.
map_io
=
kirkwood_map_io
,
.
init_irq
=
kirkwood_init_irq
,
.
timer
=
&
lacie_v2
_timer
,
.
timer
=
&
kirkwood
_timer
,
MACHINE_END
#endif
arch/arm/mach-kirkwood/ts41x-setup.c
浏览文件 @
725278e0
...
...
@@ -27,6 +27,10 @@
#include "mpp.h"
#include "tsx1x-common.h"
/* for the PCIe reset workaround */
#include <plat/pcie.h>
#define QNAP_TS41X_JUMPER_JP1 45
static
struct
i2c_board_info
__initdata
qnap_ts41x_i2c_rtc
=
{
...
...
@@ -140,8 +144,16 @@ static void __init qnap_ts41x_init(void)
static
int
__init
ts41x_pci_init
(
void
)
{
if
(
machine_is_ts41x
())
if
(
machine_is_ts41x
())
{
/*
* Without this explicit reset, the PCIe SATA controller
* (Marvell 88sx7042/sata_mv) is known to stop working
* after a few minutes.
*/
orion_pcie_reset
((
void
__iomem
*
)
PCIE_VIRT_BASE
);
kirkwood_pcie_init
(
KW_PCIE0
);
}
return
0
;
}
...
...
arch/arm/mach-mv78xx0/mpp.c
浏览文件 @
725278e0
...
...
@@ -54,7 +54,7 @@ void __init mv78xx0_mpp_conf(unsigned int *mpp_list)
}
printk
(
"
\n
"
);
while
(
*
mpp_list
)
{
for
(
;
*
mpp_list
;
mpp_list
++
)
{
unsigned
int
num
=
MPP_NUM
(
*
mpp_list
);
unsigned
int
sel
=
MPP_SEL
(
*
mpp_list
);
int
shift
,
gpio_mode
;
...
...
@@ -83,8 +83,6 @@ void __init mv78xx0_mpp_conf(unsigned int *mpp_list)
if
(
sel
!=
0
)
gpio_mode
=
0
;
orion_gpio_set_valid
(
num
,
gpio_mode
);
mpp_list
++
;
}
printk
(
KERN_DEBUG
" final MPP regs:"
);
...
...
arch/arm/mach-orion5x/mpp.c
浏览文件 @
725278e0
...
...
@@ -127,7 +127,7 @@ void __init orion5x_mpp_conf(struct orion5x_mpp_mode *mode)
/* Initialize gpiolib. */
orion_gpio_init
();
while
(
mode
->
mpp
>=
0
)
{
for
(
;
mode
->
mpp
>=
0
;
mode
++
)
{
u32
*
reg
;
int
num_type
;
int
shift
;
...
...
@@ -160,8 +160,6 @@ void __init orion5x_mpp_conf(struct orion5x_mpp_mode *mode)
orion_gpio_set_unused
(
mode
->
mpp
);
orion_gpio_set_valid
(
mode
->
mpp
,
!!
(
mode
->
type
==
MPP_GPIO
));
mode
++
;
}
writel
(
mpp_0_7_ctrl
,
MPP_0_7_CTRL
);
...
...
arch/arm/mach-orion5x/ts78xx-setup.c
浏览文件 @
725278e0
...
...
@@ -239,7 +239,7 @@ static struct platform_nand_data ts78xx_ts_nand_data = {
static
struct
resource
ts78xx_ts_nand_resources
=
{
.
start
=
TS_NAND_DATA
,
.
end
=
TS_NAND_DATA
+
4
,
.
flags
=
IORESOURCE_
IO
,
.
flags
=
IORESOURCE_
MEM
,
};
static
struct
platform_device
ts78xx_ts_nand_device
=
{
...
...
arch/arm/plat-orion/include/plat/pcie.h
浏览文件 @
725278e0
...
...
@@ -11,12 +11,15 @@
#ifndef __PLAT_PCIE_H
#define __PLAT_PCIE_H
struct
pci_bus
;
u32
orion_pcie_dev_id
(
void
__iomem
*
base
);
u32
orion_pcie_rev
(
void
__iomem
*
base
);
int
orion_pcie_link_up
(
void
__iomem
*
base
);
int
orion_pcie_x4_mode
(
void
__iomem
*
base
);
int
orion_pcie_get_local_bus_nr
(
void
__iomem
*
base
);
void
orion_pcie_set_local_bus_nr
(
void
__iomem
*
base
,
int
nr
);
void
orion_pcie_reset
(
void
__iomem
*
base
);
void
orion_pcie_setup
(
void
__iomem
*
base
,
struct
mbus_dram_target_info
*
dram
);
int
orion_pcie_rd_conf
(
void
__iomem
*
base
,
struct
pci_bus
*
bus
,
...
...
arch/arm/plat-orion/pcie.c
浏览文件 @
725278e0
...
...
@@ -181,11 +181,6 @@ void __init orion_pcie_setup(void __iomem *base,
u16
cmd
;
u32
mask
;
/*
* soft reset PCIe unit
*/
orion_pcie_reset
(
base
);
/*
* Point PCIe unit MBUS decode windows to DRAM space.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录