Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
9abc6461
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
9abc6461
编写于
8月 26, 2008
作者:
R
Russell King
提交者:
Russell King
8月 26, 2008
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 's3c2410' of
git://aeryn.fluff.org.uk/bjdooks/linux.git
上级
f8787fdc
78af4735
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
18 deletion
+20
-18
arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h
arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h
+5
-5
arch/arm/mach-s3c2410/nor-simtec.c
arch/arm/mach-s3c2410/nor-simtec.c
+2
-1
arch/arm/mach-s3c2412/mach-jive.c
arch/arm/mach-s3c2412/mach-jive.c
+1
-1
arch/arm/plat-s3c24xx/gpiolib.c
arch/arm/plat-s3c24xx/gpiolib.c
+6
-6
arch/arm/plat-s3c24xx/pwm-clock.c
arch/arm/plat-s3c24xx/pwm-clock.c
+3
-3
arch/arm/plat-s3c24xx/pwm.c
arch/arm/plat-s3c24xx/pwm.c
+3
-2
未找到文件。
arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h
浏览文件 @
9abc6461
...
@@ -48,11 +48,11 @@
...
@@ -48,11 +48,11 @@
#define S3C2443_CLKSRC_I2S_EPLLREF3 (3<<14)
#define S3C2443_CLKSRC_I2S_EPLLREF3 (3<<14)
#define S3C2443_CLKSRC_I2S_MASK (3<<14)
#define S3C2443_CLKSRC_I2S_MASK (3<<14)
#define S3C2443_CLKSRC_EPLLREF_XTAL (2<<
8
)
#define S3C2443_CLKSRC_EPLLREF_XTAL (2<<
7
)
#define S3C2443_CLKSRC_EPLLREF_EXTCLK (3<<
8
)
#define S3C2443_CLKSRC_EPLLREF_EXTCLK (3<<
7
)
#define S3C2443_CLKSRC_EPLLREF_MPLLREF (0<<
8
)
#define S3C2443_CLKSRC_EPLLREF_MPLLREF (0<<
7
)
#define S3C2443_CLKSRC_EPLLREF_MPLLREF2 (1<<
8
)
#define S3C2443_CLKSRC_EPLLREF_MPLLREF2 (1<<
7
)
#define S3C2443_CLKSRC_EPLLREF_MASK (3<<
8
)
#define S3C2443_CLKSRC_EPLLREF_MASK (3<<
7
)
#define S3C2443_CLKSRC_ESYSCLK_EPLL (1<<6)
#define S3C2443_CLKSRC_ESYSCLK_EPLL (1<<6)
#define S3C2443_CLKSRC_MSYSCLK_MPLL (1<<4)
#define S3C2443_CLKSRC_MSYSCLK_MPLL (1<<4)
...
...
arch/arm/mach-s3c2410/nor-simtec.c
浏览文件 @
9abc6461
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <mach/bast-map.h>
#include <mach/bast-map.h>
#include <mach/bast-cpld.h>
#include <mach/bast-cpld.h>
#include "nor-simtec.h"
static
void
simtec_nor_vpp
(
struct
map_info
*
map
,
int
vpp
)
static
void
simtec_nor_vpp
(
struct
map_info
*
map
,
int
vpp
)
{
{
...
@@ -50,7 +51,7 @@ static void simtec_nor_vpp(struct map_info *map, int vpp)
...
@@ -50,7 +51,7 @@ static void simtec_nor_vpp(struct map_info *map, int vpp)
local_irq_restore
(
flags
);
local_irq_restore
(
flags
);
}
}
struct
physmap_flash_data
simtec_nor_pdata
=
{
st
atic
st
ruct
physmap_flash_data
simtec_nor_pdata
=
{
.
width
=
2
,
.
width
=
2
,
.
set_vpp
=
simtec_nor_vpp
,
.
set_vpp
=
simtec_nor_vpp
,
.
nr_parts
=
0
,
.
nr_parts
=
0
,
...
...
arch/arm/mach-s3c2412/mach-jive.c
浏览文件 @
9abc6461
...
@@ -395,7 +395,7 @@ static void jive_lcd_spi_chipselect(struct s3c2410_spigpio_info *spi, int cs)
...
@@ -395,7 +395,7 @@ static void jive_lcd_spi_chipselect(struct s3c2410_spigpio_info *spi, int cs)
}
}
static
struct
s3c2410_spigpio_info
jive_lcd_spi
=
{
static
struct
s3c2410_spigpio_info
jive_lcd_spi
=
{
.
bus_num
=
0
,
.
bus_num
=
1
,
.
pin_clk
=
S3C2410_GPG8
,
.
pin_clk
=
S3C2410_GPG8
,
.
pin_mosi
=
S3C2410_GPB8
,
.
pin_mosi
=
S3C2410_GPB8
,
.
chip_select
=
jive_lcd_spi_chipselect
,
.
chip_select
=
jive_lcd_spi_chipselect
,
...
...
arch/arm/plat-s3c24xx/gpiolib.c
浏览文件 @
9abc6461
...
@@ -39,7 +39,7 @@ static inline struct s3c24xx_gpio_chip *to_s3c_chip(struct gpio_chip *gpc)
...
@@ -39,7 +39,7 @@ static inline struct s3c24xx_gpio_chip *to_s3c_chip(struct gpio_chip *gpc)
* drivers themsevles.
* drivers themsevles.
*/
*/
int
s3c24xx_gpiolib_input
(
struct
gpio_chip
*
chip
,
unsigned
offset
)
static
int
s3c24xx_gpiolib_input
(
struct
gpio_chip
*
chip
,
unsigned
offset
)
{
{
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
void
__iomem
*
base
=
ourchip
->
base
;
void
__iomem
*
base
=
ourchip
->
base
;
...
@@ -58,7 +58,7 @@ int s3c24xx_gpiolib_input(struct gpio_chip *chip, unsigned offset)
...
@@ -58,7 +58,7 @@ int s3c24xx_gpiolib_input(struct gpio_chip *chip, unsigned offset)
return
0
;
return
0
;
}
}
int
s3c24xx_gpiolib_output
(
struct
gpio_chip
*
chip
,
static
int
s3c24xx_gpiolib_output
(
struct
gpio_chip
*
chip
,
unsigned
offset
,
int
value
)
unsigned
offset
,
int
value
)
{
{
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
...
@@ -86,7 +86,8 @@ int s3c24xx_gpiolib_output(struct gpio_chip *chip,
...
@@ -86,7 +86,8 @@ int s3c24xx_gpiolib_output(struct gpio_chip *chip,
return
0
;
return
0
;
}
}
void
s3c24xx_gpiolib_set
(
struct
gpio_chip
*
chip
,
unsigned
offset
,
int
value
)
static
void
s3c24xx_gpiolib_set
(
struct
gpio_chip
*
chip
,
unsigned
offset
,
int
value
)
{
{
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
void
__iomem
*
base
=
ourchip
->
base
;
void
__iomem
*
base
=
ourchip
->
base
;
...
@@ -104,7 +105,7 @@ void s3c24xx_gpiolib_set(struct gpio_chip *chip, unsigned offset, int value)
...
@@ -104,7 +105,7 @@ void s3c24xx_gpiolib_set(struct gpio_chip *chip, unsigned offset, int value)
local_irq_restore
(
flags
);
local_irq_restore
(
flags
);
}
}
int
s3c24xx_gpiolib_get
(
struct
gpio_chip
*
chip
,
unsigned
offset
)
static
int
s3c24xx_gpiolib_get
(
struct
gpio_chip
*
chip
,
unsigned
offset
)
{
{
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
struct
s3c24xx_gpio_chip
*
ourchip
=
to_s3c_chip
(
chip
);
unsigned
long
val
;
unsigned
long
val
;
...
@@ -150,8 +151,7 @@ static int s3c24xx_gpiolib_banka_output(struct gpio_chip *chip,
...
@@ -150,8 +151,7 @@ static int s3c24xx_gpiolib_banka_output(struct gpio_chip *chip,
return
0
;
return
0
;
}
}
static
struct
s3c24xx_gpio_chip
gpios
[]
=
{
struct
s3c24xx_gpio_chip
gpios
[]
=
{
[
0
]
=
{
[
0
]
=
{
.
base
=
S3C24XX_GPIO_BASE
(
S3C2410_GPA0
),
.
base
=
S3C24XX_GPIO_BASE
(
S3C2410_GPA0
),
.
chip
=
{
.
chip
=
{
...
...
arch/arm/plat-s3c24xx/pwm-clock.c
浏览文件 @
9abc6461
...
@@ -89,7 +89,7 @@ static unsigned long clk_pwm_scaler_getrate(struct clk *clk)
...
@@ -89,7 +89,7 @@ static unsigned long clk_pwm_scaler_getrate(struct clk *clk)
/* TODO - add set rate calls. */
/* TODO - add set rate calls. */
struct
clk
clk_timer_scaler
[]
=
{
st
atic
st
ruct
clk
clk_timer_scaler
[]
=
{
[
0
]
=
{
[
0
]
=
{
.
name
=
"pwm-scaler0"
,
.
name
=
"pwm-scaler0"
,
.
id
=
-
1
,
.
id
=
-
1
,
...
@@ -102,7 +102,7 @@ struct clk clk_timer_scaler[] = {
...
@@ -102,7 +102,7 @@ struct clk clk_timer_scaler[] = {
},
},
};
};
struct
clk
clk_timer_tclk
[]
=
{
st
atic
st
ruct
clk
clk_timer_tclk
[]
=
{
[
0
]
=
{
[
0
]
=
{
.
name
=
"pwm-tclk0"
,
.
name
=
"pwm-tclk0"
,
.
id
=
-
1
,
.
id
=
-
1
,
...
@@ -232,7 +232,7 @@ static int clk_pwm_tdiv_set_rate(struct clk *clk, unsigned long rate)
...
@@ -232,7 +232,7 @@ static int clk_pwm_tdiv_set_rate(struct clk *clk, unsigned long rate)
return
0
;
return
0
;
}
}
struct
pwm_tdiv_clk
clk_timer_tdiv
[]
=
{
st
atic
st
ruct
pwm_tdiv_clk
clk_timer_tdiv
[]
=
{
[
0
]
=
{
[
0
]
=
{
.
clk
=
{
.
clk
=
{
.
name
=
"pwm-tdiv"
,
.
name
=
"pwm-tdiv"
,
...
...
arch/arm/plat-s3c24xx/pwm.c
浏览文件 @
9abc6461
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#include <linux/io.h>
#include <linux/io.h>
#include <linux/pwm.h>
#include <linux/pwm.h>
#include <asm/plat-s3c24xx/devs.h>
#include <asm/plat-s3c/regs-timer.h>
#include <asm/plat-s3c/regs-timer.h>
struct
pwm_device
{
struct
pwm_device
{
...
@@ -38,7 +39,7 @@ struct pwm_device {
...
@@ -38,7 +39,7 @@ struct pwm_device {
unsigned
char
pwm_id
;
unsigned
char
pwm_id
;
};
};
#define pwm_dbg(_pwm, msg...) dev_
info
(&(_pwm)->pdev->dev, msg)
#define pwm_dbg(_pwm, msg...) dev_
dbg
(&(_pwm)->pdev->dev, msg)
static
struct
clk
*
clk_scaler
[
2
];
static
struct
clk
*
clk_scaler
[
2
];
...
@@ -168,7 +169,7 @@ void pwm_disable(struct pwm_device *pwm)
...
@@ -168,7 +169,7 @@ void pwm_disable(struct pwm_device *pwm)
EXPORT_SYMBOL
(
pwm_disable
);
EXPORT_SYMBOL
(
pwm_disable
);
unsigned
long
pwm_calc_tin
(
struct
pwm_device
*
pwm
,
unsigned
long
freq
)
static
unsigned
long
pwm_calc_tin
(
struct
pwm_device
*
pwm
,
unsigned
long
freq
)
{
{
unsigned
long
tin_parent_rate
;
unsigned
long
tin_parent_rate
;
unsigned
int
div
;
unsigned
int
div
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录