Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
74fac66e
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看板
提交
74fac66e
编写于
3月 06, 2009
作者:
R
Russell King
提交者:
Russell King
3月 06, 2009
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 's3c-fixes' of
git://aeryn.fluff.org.uk/bjdooks/linux
上级
ef449e6d
1264fa6f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
33 addition
and
18 deletion
+33
-18
arch/arm/mach-s3c6410/mach-smdk6410.c
arch/arm/mach-s3c6410/mach-smdk6410.c
+2
-2
arch/arm/plat-s3c64xx/clock.c
arch/arm/plat-s3c64xx/clock.c
+1
-1
arch/arm/plat-s3c64xx/gpiolib.c
arch/arm/plat-s3c64xx/gpiolib.c
+1
-1
arch/arm/plat-s3c64xx/include/plat/irqs.h
arch/arm/plat-s3c64xx/include/plat/irqs.h
+1
-1
arch/arm/plat-s3c64xx/irq-eint.c
arch/arm/plat-s3c64xx/irq-eint.c
+14
-1
arch/arm/plat-s3c64xx/irq.c
arch/arm/plat-s3c64xx/irq.c
+1
-1
arch/arm/plat-s3c64xx/s3c6400-clock.c
arch/arm/plat-s3c64xx/s3c6400-clock.c
+13
-11
未找到文件。
arch/arm/mach-s3c6410/mach-smdk6410.c
浏览文件 @
74fac66e
...
...
@@ -129,7 +129,7 @@ static struct s3c_fb_platdata smdk6410_lcd_pdata __initdata = {
.
vidcon1
=
VIDCON1_INV_HSYNC
|
VIDCON1_INV_VSYNC
,
};
struct
map_desc
smdk6410_iodesc
[]
=
{};
st
atic
st
ruct
map_desc
smdk6410_iodesc
[]
=
{};
static
struct
platform_device
*
smdk6410_devices
[]
__initdata
=
{
#ifdef CONFIG_SMDK6410_SD_CH0
...
...
@@ -146,7 +146,7 @@ static struct platform_device *smdk6410_devices[] __initdata = {
static
struct
i2c_board_info
i2c_devs0
[]
__initdata
=
{
{
I2C_BOARD_INFO
(
"24c08"
,
0x50
),
},
{
I2C_BOARD_INFO
(
"
WM8580"
,
0X
1b
),
},
{
I2C_BOARD_INFO
(
"
wm8580"
,
0x
1b
),
},
};
static
struct
i2c_board_info
i2c_devs1
[]
__initdata
=
{
...
...
arch/arm/plat-s3c64xx/clock.c
浏览文件 @
74fac66e
...
...
@@ -248,7 +248,7 @@ static struct clk *clks[] __initdata = {
&
clk_48m
,
};
void
s3c64xx_register_clocks
(
void
)
void
__init
s3c64xx_register_clocks
(
void
)
{
struct
clk
*
clkp
;
int
ret
;
...
...
arch/arm/plat-s3c64xx/gpiolib.c
浏览文件 @
74fac66e
...
...
@@ -417,4 +417,4 @@ static __init int s3c64xx_gpiolib_init(void)
return
0
;
}
arch
_initcall
(
s3c64xx_gpiolib_init
);
core
_initcall
(
s3c64xx_gpiolib_init
);
arch/arm/plat-s3c64xx/include/plat/irqs.h
浏览文件 @
74fac66e
...
...
@@ -117,7 +117,7 @@
#define IRQ_ONENAND1 S3C64XX_IRQ_VIC1(12)
#define IRQ_NFC S3C64XX_IRQ_VIC1(13)
#define IRQ_CFCON S3C64XX_IRQ_VIC1(14)
#define IRQ_U
HOST
S3C64XX_IRQ_VIC1(15)
#define IRQ_U
SBH
S3C64XX_IRQ_VIC1(15)
#define IRQ_SPI0 S3C64XX_IRQ_VIC1(16)
#define IRQ_SPI1 S3C64XX_IRQ_VIC1(17)
#define IRQ_IIC S3C64XX_IRQ_VIC1(18)
...
...
arch/arm/plat-s3c64xx/irq-eint.c
浏览文件 @
74fac66e
...
...
@@ -14,12 +14,15 @@
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <asm/hardware/vic.h>
#include <plat/regs-irqtype.h>
#include <plat/regs-gpio.h>
#include <plat/gpio-cfg.h>
#include <mach/map.h>
#include <plat/cpu.h>
...
...
@@ -74,6 +77,7 @@ static void s3c_irq_eint_maskack(unsigned int irq)
static
int
s3c_irq_eint_set_type
(
unsigned
int
irq
,
unsigned
int
type
)
{
int
offs
=
eint_offset
(
irq
);
int
pin
;
int
shift
;
u32
ctrl
,
mask
;
u32
newvalue
=
0
;
...
...
@@ -125,6 +129,15 @@ static int s3c_irq_eint_set_type(unsigned int irq, unsigned int type)
ctrl
|=
newvalue
<<
shift
;
__raw_writel
(
ctrl
,
reg
);
/* set the GPIO pin appropriately */
if
(
offs
<
23
)
pin
=
S3C64XX_GPN
(
offs
);
else
pin
=
S3C64XX_GPM
(
offs
-
23
);
s3c_gpio_cfgpin
(
pin
,
S3C_GPIO_SFN
(
2
));
return
0
;
}
...
...
@@ -181,7 +194,7 @@ static void s3c_irq_demux_eint20_27(unsigned int irq, struct irq_desc *desc)
s3c_irq_demux_eint
(
20
,
27
);
}
int
__init
s3c64xx_init_irq_eint
(
void
)
static
int
__init
s3c64xx_init_irq_eint
(
void
)
{
int
irq
;
...
...
arch/arm/plat-s3c64xx/irq.c
浏览文件 @
74fac66e
...
...
@@ -207,7 +207,7 @@ static struct irq_chip s3c_irq_uart = {
static
void
__init
s3c64xx_uart_irq
(
struct
uart_irq
*
uirq
)
{
void
*
reg_base
=
uirq
->
regs
;
void
__iomem
*
reg_base
=
uirq
->
regs
;
unsigned
int
irq
;
int
offs
;
...
...
arch/arm/plat-s3c64xx/s3c6400-clock.c
浏览文件 @
74fac66e
...
...
@@ -36,7 +36,7 @@
* ext_xtal_mux for want of an actual name from the manual.
*/
struct
clk
clk_ext_xtal_mux
=
{
st
atic
st
ruct
clk
clk_ext_xtal_mux
=
{
.
name
=
"ext_xtal"
,
.
id
=
-
1
,
};
...
...
@@ -63,7 +63,7 @@ struct clksrc_clk {
void
__iomem
*
reg_divider
;
};
struct
clk
clk_fout_apll
=
{
st
atic
st
ruct
clk
clk_fout_apll
=
{
.
name
=
"fout_apll"
,
.
id
=
-
1
,
};
...
...
@@ -78,7 +78,7 @@ static struct clk_sources clk_src_apll = {
.
nr_sources
=
ARRAY_SIZE
(
clk_src_apll_list
),
};
struct
clksrc_clk
clk_mout_apll
=
{
st
atic
st
ruct
clksrc_clk
clk_mout_apll
=
{
.
clk
=
{
.
name
=
"mout_apll"
,
.
id
=
-
1
,
...
...
@@ -88,7 +88,7 @@ struct clksrc_clk clk_mout_apll = {
.
sources
=
&
clk_src_apll
,
};
struct
clk
clk_fout_epll
=
{
st
atic
st
ruct
clk
clk_fout_epll
=
{
.
name
=
"fout_epll"
,
.
id
=
-
1
,
};
...
...
@@ -103,7 +103,7 @@ static struct clk_sources clk_src_epll = {
.
nr_sources
=
ARRAY_SIZE
(
clk_src_epll_list
),
};
struct
clksrc_clk
clk_mout_epll
=
{
st
atic
st
ruct
clksrc_clk
clk_mout_epll
=
{
.
clk
=
{
.
name
=
"mout_epll"
,
.
id
=
-
1
,
...
...
@@ -123,7 +123,7 @@ static struct clk_sources clk_src_mpll = {
.
nr_sources
=
ARRAY_SIZE
(
clk_src_mpll_list
),
};
struct
clksrc_clk
clk_mout_mpll
=
{
st
atic
st
ruct
clksrc_clk
clk_mout_mpll
=
{
.
clk
=
{
.
name
=
"mout_mpll"
,
.
id
=
-
1
,
...
...
@@ -145,7 +145,7 @@ static unsigned long s3c64xx_clk_doutmpll_get_rate(struct clk *clk)
return
rate
;
}
struct
clk
clk_dout_mpll
=
{
st
atic
st
ruct
clk
clk_dout_mpll
=
{
.
name
=
"dout_mpll"
,
.
id
=
-
1
,
.
parent
=
&
clk_mout_mpll
.
clk
,
...
...
@@ -189,10 +189,10 @@ static struct clk_sources clkset_uart = {
};
static
struct
clk
*
clkset_uhost_list
[]
=
{
&
clk_48m
,
&
clk_mout_epll
.
clk
,
&
clk_dout_mpll
,
&
clk_fin_epll
,
&
clk_48m
,
};
static
struct
clk_sources
clkset_uhost
=
{
...
...
@@ -239,10 +239,12 @@ static int s3c64xx_setrate_clksrc(struct clk *clk, unsigned long rate)
rate
=
clk_round_rate
(
clk
,
rate
);
div
=
clk_get_rate
(
clk
->
parent
)
/
rate
;
if
(
div
>
16
)
return
-
EINVAL
;
val
=
__raw_readl
(
reg
);
val
&=
~
sclk
->
mask
;
val
|=
(
rate
-
1
)
<<
sclk
->
shift
;
val
&=
~
(
0xf
<<
sclk
->
shift
)
;
val
|=
(
div
-
1
)
<<
sclk
->
shift
;
__raw_writel
(
val
,
reg
);
return
0
;
...
...
@@ -351,7 +353,7 @@ static struct clksrc_clk clk_mmc2 = {
static
struct
clksrc_clk
clk_usbhost
=
{
.
clk
=
{
.
name
=
"usb-
host-bus
"
,
.
name
=
"usb-
bus-host
"
,
.
id
=
-
1
,
.
ctrlbit
=
S3C_CLKCON_SCLK_UHOST
,
.
enable
=
s3c64xx_sclk_ctrl
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录