Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
dbf828ec
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看板
提交
dbf828ec
编写于
11月 10, 2016
作者:
T
Tony Lindgren
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: OMAP2+: Drop legacy ads7846 init
上级
6a6e640b
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
0 addition
and
162 deletion
+0
-162
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/Makefile
+0
-3
arch/arm/mach-omap2/common-board-devices.c
arch/arm/mach-omap2/common-board-devices.c
+0
-102
arch/arm/mach-omap2/common-board-devices.h
arch/arm/mach-omap2/common-board-devices.h
+0
-7
arch/arm/mach-omap2/dss-common.c
arch/arm/mach-omap2/dss-common.c
+0
-36
arch/arm/mach-omap2/dss-common.h
arch/arm/mach-omap2/dss-common.h
+0
-13
arch/arm/mach-omap2/pdata-quirks.c
arch/arm/mach-omap2/pdata-quirks.c
+0
-1
未找到文件。
arch/arm/mach-omap2/Makefile
浏览文件 @
dbf828ec
...
@@ -244,6 +244,3 @@ obj-y += $(onenand-m) $(onenand-y)
...
@@ -244,6 +244,3 @@ obj-y += $(onenand-m) $(onenand-y)
nand-$(CONFIG_MTD_NAND_OMAP2)
:=
gpmc-nand.o
nand-$(CONFIG_MTD_NAND_OMAP2)
:=
gpmc-nand.o
obj-y
+=
$
(
nand-m
)
$
(
nand-y
)
obj-y
+=
$
(
nand-m
)
$
(
nand-y
)
obj-y
+=
common-board-devices.o dss-common.o
arch/arm/mach-omap2/common-board-devices.c
已删除
100644 → 0
浏览文件 @
6a6e640b
/*
* common-board-devices.c
*
* Copyright (C) 2011 CompuLab, Ltd.
* Author: Mike Rapoport <mike@compulab.co.il>
*
* 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.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#include <linux/gpio.h>
#include <linux/spi/spi.h>
#include <linux/spi/ads7846.h>
#include <linux/platform_data/spi-omap2-mcspi.h>
#include "common.h"
#include "common-board-devices.h"
#if IS_ENABLED(CONFIG_TOUCHSCREEN_ADS7846)
static
struct
omap2_mcspi_device_config
ads7846_mcspi_config
=
{
.
turbo_mode
=
0
,
};
static
struct
ads7846_platform_data
ads7846_config
=
{
.
x_max
=
0x0fff
,
.
y_max
=
0x0fff
,
.
x_plate_ohms
=
180
,
.
pressure_max
=
255
,
.
debounce_max
=
10
,
.
debounce_tol
=
3
,
.
debounce_rep
=
1
,
.
gpio_pendown
=
-
EINVAL
,
.
keep_vref_on
=
1
,
};
static
struct
spi_board_info
ads7846_spi_board_info
__initdata
=
{
.
modalias
=
"ads7846"
,
.
bus_num
=
-
EINVAL
,
.
chip_select
=
0
,
.
max_speed_hz
=
1500000
,
.
controller_data
=
&
ads7846_mcspi_config
,
.
irq
=
-
EINVAL
,
.
platform_data
=
&
ads7846_config
,
};
void
__init
omap_ads7846_init
(
int
bus_num
,
int
gpio_pendown
,
int
gpio_debounce
,
struct
ads7846_platform_data
*
board_pdata
)
{
struct
spi_board_info
*
spi_bi
=
&
ads7846_spi_board_info
;
int
err
;
/*
* If a board defines get_pendown_state() function, request the pendown
* GPIO and set the GPIO debounce time.
* If a board does not define the get_pendown_state() function, then
* the ads7846 driver will setup the pendown GPIO itself.
*/
if
(
board_pdata
&&
board_pdata
->
get_pendown_state
)
{
err
=
gpio_request_one
(
gpio_pendown
,
GPIOF_IN
,
"TSPenDown"
);
if
(
err
)
{
pr_err
(
"Couldn't obtain gpio for TSPenDown: %d
\n
"
,
err
);
return
;
}
if
(
gpio_debounce
)
gpio_set_debounce
(
gpio_pendown
,
gpio_debounce
);
gpio_export
(
gpio_pendown
,
0
);
}
spi_bi
->
bus_num
=
bus_num
;
spi_bi
->
irq
=
gpio_to_irq
(
gpio_pendown
);
ads7846_config
.
gpio_pendown
=
gpio_pendown
;
if
(
board_pdata
)
{
board_pdata
->
gpio_pendown
=
gpio_pendown
;
board_pdata
->
gpio_pendown_debounce
=
gpio_debounce
;
spi_bi
->
platform_data
=
board_pdata
;
}
spi_register_board_info
(
&
ads7846_spi_board_info
,
1
);
}
#else
void
__init
omap_ads7846_init
(
int
bus_num
,
int
gpio_pendown
,
int
gpio_debounce
,
struct
ads7846_platform_data
*
board_pdata
)
{
}
#endif
arch/arm/mach-omap2/common-board-devices.h
浏览文件 @
dbf828ec
...
@@ -4,13 +4,6 @@
...
@@ -4,13 +4,6 @@
#include <sound/tlv320aic3x.h>
#include <sound/tlv320aic3x.h>
#include <linux/mfd/menelaus.h>
#include <linux/mfd/menelaus.h>
#define NAND_BLOCK_SIZE SZ_128K
struct
mtd_partition
;
struct
ads7846_platform_data
;
void
omap_ads7846_init
(
int
bus_num
,
int
gpio_pendown
,
int
gpio_debounce
,
struct
ads7846_platform_data
*
board_pdata
);
void
*
n8x0_legacy_init
(
void
);
void
*
n8x0_legacy_init
(
void
);
extern
struct
menelaus_platform_data
n8x0_menelaus_platform_data
;
extern
struct
menelaus_platform_data
n8x0_menelaus_platform_data
;
...
...
arch/arm/mach-omap2/dss-common.c
已删除
100644 → 0
浏览文件 @
6a6e640b
/*
* Copyright (C) 2012 Texas Instruments, Inc..
* Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
*
* 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.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
/*
* NOTE: this is a transitional file to help with DT adaptation.
* This file will be removed when DSS supports DT.
*/
#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/platform_data/omapdss.h>
#include <video/omap-panel-data.h>
#include "soc.h"
#include "dss-common.h"
#include "display.h"
arch/arm/mach-omap2/dss-common.h
已删除
100644 → 0
浏览文件 @
6a6e640b
#ifndef __OMAP_DSS_COMMON__
#define __OMAP_DSS_COMMON__
/*
* NOTE: this is a transitional file to help with DT adaptation.
* This file will be removed when DSS supports DT.
*/
void
__init
omap4_panda_display_init_of
(
void
);
void
__init
omap_4430sdp_display_init_of
(
void
);
void
__init
omap3_igep2_display_init_of
(
void
);
#endif
arch/arm/mach-omap2/pdata-quirks.c
浏览文件 @
dbf828ec
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include "common.h"
#include "common.h"
#include "common-board-devices.h"
#include "common-board-devices.h"
#include "dss-common.h"
#include "control.h"
#include "control.h"
#include "omap_device.h"
#include "omap_device.h"
#include "omap-pm.h"
#include "omap-pm.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录