Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
166bc934
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看板
提交
166bc934
编写于
6月 19, 2013
作者:
K
Kukjin Kim
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v3.11-next/s3c24xx-dt-2' into v3.11-next/dt-n-clk-audio
上级
5f132691
52c76e44
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
521 addition
and
0 deletion
+521
-0
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/Makefile
+1
-0
arch/arm/boot/dts/s3c2416-pinctrl.dtsi
arch/arm/boot/dts/s3c2416-pinctrl.dtsi
+173
-0
arch/arm/boot/dts/s3c2416-smdk2416.dts
arch/arm/boot/dts/s3c2416-smdk2416.dts
+72
-0
arch/arm/boot/dts/s3c2416.dtsi
arch/arm/boot/dts/s3c2416.dtsi
+79
-0
arch/arm/boot/dts/s3c24xx.dtsi
arch/arm/boot/dts/s3c24xx.dtsi
+92
-0
arch/arm/mach-s3c24xx/Kconfig
arch/arm/mach-s3c24xx/Kconfig
+12
-0
arch/arm/mach-s3c24xx/Makefile
arch/arm/mach-s3c24xx/Makefile
+1
-0
arch/arm/mach-s3c24xx/mach-s3c2416-dt.c
arch/arm/mach-s3c24xx/mach-s3c2416-dt.c
+91
-0
未找到文件。
arch/arm/boot/dts/Makefile
浏览文件 @
166bc934
...
...
@@ -159,6 +159,7 @@ dtb-$(CONFIG_ARCH_U8500) += snowball.dtb \
hrefprev60.dtb
\
hrefv60plus.dtb
\
ccu9540.dtb
dtb-$(CONFIG_ARCH_S3C24XX)
+=
s3c2416-smdk2416.dtb
dtb-$(CONFIG_ARCH_SHMOBILE)
+=
emev2-kzm9d.dtb
\
r8a7740-armadillo800eva.dtb
\
r8a7778-bockw.dtb
\
...
...
arch/arm/boot/dts/s3c2416-pinctrl.dtsi
0 → 100644
浏览文件 @
166bc934
/*
* Samsung S3C2416 pinctrl settings
*
* Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
&pinctrl_0 {
/*
* Pin banks
*/
gpa: gpa {
gpio-controller;
#gpio-cells = <2>;
};
gpb: gpb {
gpio-controller;
#gpio-cells = <2>;
};
gpc: gpc {
gpio-controller;
#gpio-cells = <2>;
};
gpd: gpd {
gpio-controller;
#gpio-cells = <2>;
};
gpe: gpe {
gpio-controller;
#gpio-cells = <2>;
};
gpf: gpf {
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
gpg: gpg {
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
gph: gph {
gpio-controller;
#gpio-cells = <2>;
};
gpj: gpj {
gpio-controller;
#gpio-cells = <2>;
};
gpk: gpk {
gpio-controller;
#gpio-cells = <2>;
};
gpl: gpl {
gpio-controller;
#gpio-cells = <2>;
};
gpm: gpm {
gpio-controller;
#gpio-cells = <2>;
};
/*
* Pin groups
*/
uart0_data: uart0-data {
samsung,pins = "gph-0", "gph-1";
samsung,pin-function = <2>;
};
uart0_fctl: uart0-fctl {
samsung,pins = "gph-8", "gph-9";
samsung,pin-function = <2>;
};
uart1_data: uart1-data {
samsung,pins = "gph-2", "gph-3";
samsung,pin-function = <2>;
};
uart1_fctl: uart1-fctl {
samsung,pins = "gph-10", "gph-11";
samsung,pin-function = <2>;
};
uart2_data: uart2-data {
samsung,pins = "gph-4", "gph-5";
samsung,pin-function = <2>;
};
uart2_fctl: uart2-fctl {
samsung,pins = "gph-6", "gph-7";
samsung,pin-function = <2>;
};
uart3_data: uart3-data {
samsung,pins = "gph-6", "gph-7";
samsung,pin-function = <2>;
};
extuart_clk: extuart-clk {
samsung,pins = "gph-12";
samsung,pin-function = <2>;
};
i2c0_bus: i2c0-bus {
samsung,pins = "gpe-14", "gpe-15";
samsung,pin-function = <2>;
};
spi0_bus: spi0-bus {
samsung,pins = "gpe-11", "gpe-12", "gpe-13";
samsung,pin-function = <2>;
};
sd0_clk: sd0-clk {
samsung,pins = "gpe-5";
samsung,pin-function = <2>;
};
sd0_cmd: sd0-cmd {
samsung,pins = "gpe-6";
samsung,pin-function = <2>;
};
sd0_bus1: sd0-bus1 {
samsung,pins = "gpe-7";
samsung,pin-function = <2>;
};
sd0_bus4: sd0-bus4 {
samsung,pins = "gpe-8", "gpe-9", "gpe-10";
samsung,pin-function = <2>;
};
sd1_cmd: sd1-cmd {
samsung,pins = "gpl-8";
samsung,pin-function = <2>;
};
sd1_clk: sd1-clk {
samsung,pins = "gpl-9";
samsung,pin-function = <2>;
};
sd1_bus1: sd1-bus1 {
samsung,pins = "gpl-0";
samsung,pin-function = <2>;
};
sd1_bus4: sd1-bus4 {
samsung,pins = "gpl-1", "gpl-2", "gpl-3";
samsung,pin-function = <2>;
};
};
arch/arm/boot/dts/s3c2416-smdk2416.dts
0 → 100644
浏览文件 @
166bc934
/*
*
SAMSUNG
SMDK2416
board
device
tree
source
*
*
Copyright
(
c
)
2013
Heiko
Stuebner
<
heiko
@
sntech
.
de
>
*
*
This
program
is
free
software
;
you
can
redistribute
it
and
/
or
modify
*
it
under
the
terms
of
the
GNU
General
Public
License
version
2
as
*
published
by
the
Free
Software
Foundation
.
*/
/
dts
-
v1
/;
/
include
/
"s3c2416.dtsi"
/
{
model
=
"SMDK2416"
;
compatible
=
"samsung,s3c2416"
;
memory
{
reg
=
<
0x30000000
0x4000000
>;
};
serial
@
50000000
{
status
=
"okay"
;
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
uart0_data
>,
<&
uart0_fctl
>;
};
serial
@
50004000
{
status
=
"okay"
;
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
uart1_data
>,
<&
uart1_fctl
>;
};
serial
@
50008000
{
status
=
"okay"
;
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
uart2_data
>;
};
serial
@
5000
C000
{
status
=
"okay"
;
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
uart3_data
>;
};
watchdog
@
53000000
{
status
=
"okay"
;
};
rtc
@
57000000
{
status
=
"okay"
;
};
sdhci
@
4
AC00000
{
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
sd0_clk
>,
<&
sd0_cmd
>,
<&
sd0_bus1
>,
<&
sd0_bus4
>;
bus
-
width
=
<
4
>;
cd
-
gpios
=
<&
gpf
1
0
>;
cd
-
inverted
;
status
=
"okay"
;
};
sdhci
@
4
A800000
{
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
sd1_clk
>,
<&
sd1_cmd
>,
<&
sd1_bus1
>,
<&
sd1_bus4
>;
bus
-
width
=
<
4
>;
broken
-
cd
;
status
=
"okay"
;
};
};
arch/arm/boot/dts/s3c2416.dtsi
0 → 100644
浏览文件 @
166bc934
/*
*
Samsung
's S3C2416 SoC device tree source
*
* Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/include/ "s3c24xx.dtsi"
/include/ "s3c2416-pinctrl.dtsi"
/ {
model = "Samsung S3C2416 SoC";
compatible = "samsung,s3c2416";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu {
compatible = "arm,arm926ejs";
};
};
interrupt-controller@4a000000 {
compatible = "samsung,s3c2416-irq";
};
pinctrl@56000000 {
compatible = "samsung,s3c2416-pinctrl";
};
serial@50000000 {
compatible = "samsung,s3c2440-uart";
};
serial@50004000 {
compatible = "samsung,s3c2440-uart";
};
serial@50008000 {
compatible = "samsung,s3c2440-uart";
};
serial@5000C000 {
compatible = "samsung,s3c2440-uart";
reg = <0x5000C000 0x4000>;
interrupts = <1 18 24 4>, <1 18 25 4>;
status = "disabled";
};
sdhci@4AC00000 {
compatible = "samsung,s3c6410-sdhci";
reg = <0x4AC00000 0x100>;
interrupts = <0 0 21 3>;
status = "disabled";
};
sdhci@4A800000 {
compatible = "samsung,s3c6410-sdhci";
reg = <0x4A800000 0x100>;
interrupts = <0 0 20 3>;
status = "disabled";
};
watchdog@53000000 {
interrupts = <1 9 27 3>;
};
rtc@57000000 {
compatible = "samsung,s3c2416-rtc";
};
i2c@54000000 {
compatible = "samsung,s3c2440-i2c";
};
};
arch/arm/boot/dts/s3c24xx.dtsi
0 → 100644
浏览文件 @
166bc934
/*
* Samsung's S3C24XX family device tree source
*
* Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/include/ "skeleton.dtsi"
/ {
compatible = "samsung,s3c24xx";
interrupt-parent = <&intc>;
aliases {
pinctrl0 = &pinctrl_0;
};
intc:interrupt-controller@4a000000 {
compatible = "samsung,s3c2410-irq";
reg = <0x4a000000 0x100>;
interrupt-controller;
#interrupt-cells = <4>;
};
pinctrl_0: pinctrl@56000000 {
reg = <0x56000000 0x1000>;
wakeup-interrupt-controller {
compatible = "samsung,s3c2410-wakeup-eint";
interrupts = <0 0 0 3>,
<0 0 1 3>,
<0 0 2 3>,
<0 0 3 3>,
<0 0 4 4>,
<0 0 5 4>;
};
};
timer@51000000 {
compatible = "samsung,s3c2410-pwm";
reg = <0x51000000 0x1000>;
interrupts = <0 0 10 3>, <0 0 11 3>, <0 0 12 3>, <0 0 13 3>, <0 0 14 3>;
#pwm-cells = <4>;
};
serial@50000000 {
compatible = "samsung,s3c2410-uart";
reg = <0x50000000 0x4000>;
interrupts = <1 28 0 4>, <1 28 1 4>;
status = "disabled";
};
serial@50004000 {
compatible = "samsung,s3c2410-uart";
reg = <0x50004000 0x4000>;
interrupts = <1 23 3 4>, <1 23 4 4>;
status = "disabled";
};
serial@50008000 {
compatible = "samsung,s3c2410-uart";
reg = <0x50008000 0x4000>;
interrupts = <1 15 6 4>, <1 15 7 4>;
status = "disabled";
};
watchdog@53000000 {
compatible = "samsung,s3c2410-wdt";
reg = <0x53000000 0x100>;
interrupts = <0 0 9 3>;
status = "disabled";
};
rtc@57000000 {
compatible = "samsung,s3c2410-rtc";
reg = <0x57000000 0x100>;
interrupts = <0 0 30 3>, <0 0 8 3>;
status = "disabled";
};
i2c@54000000 {
compatible = "samsung,s3c2410-i2c";
reg = <0x54000000 0x100>;
interrupts = <0 0 27 3>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
};
arch/arm/mach-s3c24xx/Kconfig
浏览文件 @
166bc934
...
...
@@ -490,6 +490,18 @@ config MACH_SMDK2416
help
Say Y here if you are using an SMDK2416
config MACH_S3C2416_DT
bool "Samsung S3C2416 machine using devicetree"
select CLKSRC_OF
select USE_OF
select PINCTRL
select PINCTRL_S3C24XX
help
Machine support for Samsung S3C2416 machines with device tree enabled.
Select this if a fdt blob is available for the S3C2416 SoC based board.
Note: This is under development and not all peripherals can be supported
with this machine file.
endif # CPU_S3C2416
if CPU_S3C2440
...
...
arch/arm/mach-s3c24xx/Makefile
浏览文件 @
166bc934
...
...
@@ -85,6 +85,7 @@ obj-$(CONFIG_MACH_SMDK2413) += mach-smdk2413.o
obj-$(CONFIG_MACH_VSTMS)
+=
mach-vstms.o
obj-$(CONFIG_MACH_SMDK2416)
+=
mach-smdk2416.o
obj-$(CONFIG_MACH_S3C2416_DT)
+=
mach-s3c2416-dt.o
obj-$(CONFIG_MACH_ANUBIS)
+=
mach-anubis.o
obj-$(CONFIG_MACH_AT2440EVB)
+=
mach-at2440evb.o
...
...
arch/arm/mach-s3c24xx/mach-s3c2416-dt.c
0 → 100644
浏览文件 @
166bc934
/*
* Samsung's S3C2416 flattened device tree enabled machine
*
* Copyright (c) 2012 Heiko Stuebner <heiko@sntech.de>
*
* based on mach-exynos/mach-exynos4-dt.c
*
* Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com
* Copyright (c) 2010-2011 Linaro Ltd.
* www.linaro.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/clocksource.h>
#include <linux/irqchip.h>
#include <linux/of_platform.h>
#include <linux/serial_core.h>
#include <asm/mach/arch.h>
#include <mach/map.h>
#include <plat/cpu.h>
#include <plat/pm.h>
#include <plat/regs-serial.h>
#include "common.h"
/*
* The following lookup table is used to override device names when devices
* are registered from device tree. This is temporarily added to enable
* device tree support addition for the S3C2416 architecture.
*
* For drivers that require platform data to be provided from the machine
* file, a platform data pointer can also be supplied along with the
* devices names. Usually, the platform data elements that cannot be parsed
* from the device tree by the drivers (example: function pointers) are
* supplied. But it should be noted that this is a temporary mechanism and
* at some point, the drivers should be capable of parsing all the platform
* data from the device tree.
*/
static
const
struct
of_dev_auxdata
s3c2416_auxdata_lookup
[]
__initconst
=
{
OF_DEV_AUXDATA
(
"samsung,s3c2440-uart"
,
S3C24XX_PA_UART
,
"s3c2440-uart.0"
,
NULL
),
OF_DEV_AUXDATA
(
"samsung,s3c2440-uart"
,
S3C24XX_PA_UART
+
0x4000
,
"s3c2440-uart.1"
,
NULL
),
OF_DEV_AUXDATA
(
"samsung,s3c2440-uart"
,
S3C24XX_PA_UART
+
0x8000
,
"s3c2440-uart.2"
,
NULL
),
OF_DEV_AUXDATA
(
"samsung,s3c2440-uart"
,
S3C24XX_PA_UART
+
0xC000
,
"s3c2440-uart.3"
,
NULL
),
OF_DEV_AUXDATA
(
"samsung,s3c6410-sdhci"
,
S3C_PA_HSMMC0
,
"s3c-sdhci.0"
,
NULL
),
OF_DEV_AUXDATA
(
"samsung,s3c6410-sdhci"
,
S3C_PA_HSMMC1
,
"s3c-sdhci.1"
,
NULL
),
OF_DEV_AUXDATA
(
"samsung,s3c2440-i2c"
,
S3C_PA_IIC
,
"s3c2440-i2c.0"
,
NULL
),
{},
};
static
void
__init
s3c2416_dt_map_io
(
void
)
{
s3c24xx_init_io
(
NULL
,
0
);
s3c24xx_init_clocks
(
12000000
);
}
static
void
__init
s3c2416_dt_machine_init
(
void
)
{
of_platform_populate
(
NULL
,
of_default_bus_match_table
,
s3c2416_auxdata_lookup
,
NULL
);
s3c_pm_init
();
}
static
char
const
*
s3c2416_dt_compat
[]
__initdata
=
{
"samsung,s3c2416"
,
"samsung,s3c2450"
,
NULL
};
DT_MACHINE_START
(
S3C2416_DT
,
"Samsung S3C2416 (Flattened Device Tree)"
)
/* Maintainer: Heiko Stuebner <heiko@sntech.de> */
.
dt_compat
=
s3c2416_dt_compat
,
.
map_io
=
s3c2416_dt_map_io
,
.
init_irq
=
irqchip_init
,
.
init_machine
=
s3c2416_dt_machine_init
,
.
init_time
=
clocksource_of_init
,
.
restart
=
s3c2416_restart
,
MACHINE_END
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录