forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soc: renesas: rzn1-sysc: Export function to set dmamux
The dmamux register is located within the system controller. Without syscon, we need an extra helper in order to give write access to this register to a dmamux driver. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
- Loading branch information
1 parent
5443537
commit ed9b880
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef __LINUX_SOC_RENESAS_R9A06G032_SYSCON_H__ | ||
#define __LINUX_SOC_RENESAS_R9A06G032_SYSCON_H__ | ||
|
||
#ifdef CONFIG_CLK_R9A06G032 | ||
int r9a06g032_syscon_set_dmamux(u32 mask, u32 val); | ||
#else | ||
static inline int r9a06g032_syscon_set_dmamux(u32 mask, u32 val) { return -ENODEV; } | ||
#endif | ||
|
||
#endif /* __LINUX_SOC_RENESAS_R9A06G032_SYSCON_H__ */ |