Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
894955f6
Commit
894955f6
authored
Mar 17, 2010
by
Kevin Hilman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'davinci-next' into davinci-reset
parents
d5925c8a
5ee7303c
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
714 additions
and
10 deletions
+714
-10
arch/arm/mach-davinci/board-da830-evm.c
arch/arm/mach-davinci/board-da830-evm.c
+16
-1
arch/arm/mach-davinci/dma.c
arch/arm/mach-davinci/dma.c
+7
-4
drivers/rtc/Kconfig
drivers/rtc/Kconfig
+10
-0
drivers/rtc/Makefile
drivers/rtc/Makefile
+1
-0
drivers/rtc/rtc-davinci.c
drivers/rtc/rtc-davinci.c
+673
-0
drivers/rtc/rtc-omap.c
drivers/rtc/rtc-omap.c
+7
-5
No files found.
arch/arm/mach-davinci/board-da830-evm.c
View file @
894955f6
...
...
@@ -229,15 +229,22 @@ static const short da830_evm_mmc_sd_pins[] = {
};
#define DA830_MMCSD_WP_PIN GPIO_TO_PIN(2, 1)
#define DA830_MMCSD_CD_PIN GPIO_TO_PIN(2, 2)
static
int
da830_evm_mmc_get_ro
(
int
index
)
{
return
gpio_get_value
(
DA830_MMCSD_WP_PIN
);
}
static
int
da830_evm_mmc_get_cd
(
int
index
)
{
return
!
gpio_get_value
(
DA830_MMCSD_CD_PIN
);
}
static
struct
davinci_mmc_config
da830_evm_mmc_config
=
{
.
get_ro
=
da830_evm_mmc_get_ro
,
.
wires
=
4
,
.
get_cd
=
da830_evm_mmc_get_cd
,
.
wires
=
8
,
.
max_freq
=
50000000
,
.
caps
=
MMC_CAP_MMC_HIGHSPEED
|
MMC_CAP_SD_HIGHSPEED
,
.
version
=
MMC_CTLR_VERSION_2
,
...
...
@@ -262,6 +269,14 @@ static inline void da830_evm_init_mmc(void)
}
gpio_direction_input
(
DA830_MMCSD_WP_PIN
);
ret
=
gpio_request
(
DA830_MMCSD_CD_PIN
,
"MMC CD
\n
"
);
if
(
ret
)
{
pr_warning
(
"da830_evm_init: can not open GPIO %d
\n
"
,
DA830_MMCSD_CD_PIN
);
return
;
}
gpio_direction_input
(
DA830_MMCSD_CD_PIN
);
ret
=
da8xx_register_mmcsd0
(
&
da830_evm_mmc_config
);
if
(
ret
)
{
pr_warning
(
"da830_evm_init: mmc/sd registration failed: %d
\n
"
,
...
...
arch/arm/mach-davinci/dma.c
View file @
894955f6
...
...
@@ -358,9 +358,11 @@ static irqreturn_t dma_irq_handler(int irq, void *data)
while
(
1
)
{
int
j
;
if
(
edma_shadow0_read_array
(
ctlr
,
SH_IPR
,
0
))
if
(
edma_shadow0_read_array
(
ctlr
,
SH_IPR
,
0
)
&
edma_shadow0_read_array
(
ctlr
,
SH_IER
,
0
))
j
=
0
;
else
if
(
edma_shadow0_read_array
(
ctlr
,
SH_IPR
,
1
))
else
if
(
edma_shadow0_read_array
(
ctlr
,
SH_IPR
,
1
)
&
edma_shadow0_read_array
(
ctlr
,
SH_IER
,
1
))
j
=
1
;
else
break
;
...
...
@@ -368,8 +370,9 @@ static irqreturn_t dma_irq_handler(int irq, void *data)
edma_shadow0_read_array
(
ctlr
,
SH_IPR
,
j
));
for
(
i
=
0
;
i
<
32
;
i
++
)
{
int
k
=
(
j
<<
5
)
+
i
;
if
(
edma_shadow0_read_array
(
ctlr
,
SH_IPR
,
j
)
&
(
1
<<
i
))
{
if
((
edma_shadow0_read_array
(
ctlr
,
SH_IPR
,
j
)
&
BIT
(
i
))
&&
(
edma_shadow0_read_array
(
ctlr
,
SH_IER
,
j
)
&
BIT
(
i
)))
{
/* Clear the corresponding IPR bits */
edma_shadow0_write_array
(
ctlr
,
SH_ICR
,
j
,
(
1
<<
i
));
...
...
drivers/rtc/Kconfig
View file @
894955f6
...
...
@@ -620,6 +620,16 @@ config RTC_DRV_NUC900
comment "on-CPU RTC drivers"
config RTC_DRV_DAVINCI
tristate "TI DaVinci RTC"
depends on ARCH_DAVINCI_DM365
help
If you say yes here you get support for the RTC on the
DaVinci platforms (DM365).
This driver can also be built as a module. If so, the module
will be called rtc-davinci.
config RTC_DRV_OMAP
tristate "TI OMAP1"
depends on ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 || ARCH_DAVINCI_DA8XX
...
...
drivers/rtc/Makefile
View file @
894955f6
...
...
@@ -27,6 +27,7 @@ obj-$(CONFIG_RTC_DRV_BQ32K) += rtc-bq32k.o
obj-$(CONFIG_RTC_DRV_BQ4802)
+=
rtc-bq4802.o
obj-$(CONFIG_RTC_DRV_CMOS)
+=
rtc-cmos.o
obj-$(CONFIG_RTC_DRV_COH901331)
+=
rtc-coh901331.o
obj-$(CONFIG_RTC_DRV_DAVINCI)
+=
rtc-davinci.o
obj-$(CONFIG_RTC_DRV_DM355EVM)
+=
rtc-dm355evm.o
obj-$(CONFIG_RTC_DRV_DS1216)
+=
rtc-ds1216.o
obj-$(CONFIG_RTC_DRV_DS1286)
+=
rtc-ds1286.o
...
...
drivers/rtc/rtc-davinci.c
0 → 100644
View file @
894955f6
This diff is collapsed.
Click to expand it.
drivers/rtc/rtc-omap.c
View file @
894955f6
...
...
@@ -34,7 +34,8 @@
* Board-specific wiring options include using split power mode with
* RTC_OFF_NOFF used as the reset signal (so the RTC won't be reset),
* and wiring RTC_WAKE_INT (so the RTC alarm can wake the system from
* low power modes). See the BOARD-SPECIFIC CUSTOMIZATION comment.
* low power modes) for OMAP1 boards (OMAP-L138 has this built into
* the SoC). See the BOARD-SPECIFIC CUSTOMIZATION comment.
*/
#define OMAP_RTC_BASE 0xfffb4800
...
...
@@ -401,16 +402,17 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
/* BOARD-SPECIFIC CUSTOMIZATION CAN GO HERE:
*
* - Boards wired so that RTC_WAKE_INT does something, and muxed
* right (W13_1610_RTC_WAKE_INT is the default after chip reset),
* should initialize the device wakeup flag appropriately.
* - Device wake-up capability setting should come through chip
* init logic. OMAP1 boards should initialize the "wakeup capable"
* flag in the platform device if the board is wired right for
* being woken up by RTC alarm. For OMAP-L138, this capability
* is built into the SoC by the "Deep Sleep" capability.
*
* - Boards wired so RTC_ON_nOFF is used as the reset signal,
* rather than nPWRON_RESET, should forcibly enable split
* power mode. (Some chip errata report that RTC_CTRL_SPLIT
* is write-only, and always reads as zero...)
*/
device_init_wakeup
(
&
pdev
->
dev
,
0
);
if
(
new_ctrl
&
(
u8
)
OMAP_RTC_CTRL_SPLIT
)
pr_info
(
"%s: split power mode
\n
"
,
pdev
->
name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment