History

mfd: altera-sysmgr: Add SOCFPGA System Manager

The SOCFPGA System Manager register block aggregates different peripheral functions into one area. On 32 bit ARM parts, handle in the same way as syscon. On 64 bit ARM parts, the System Manager can only be accessed by EL3 secure mode. Since a SMC call to EL3 is required, this new driver uses regmaps similar to syscon to handle the SMC call. Since regmaps abstract out the underlying register access, the changes to drivers accessing the System Manager are minimal.

Thor Thayer committed 7 years ago

Commit f36e7891 parent 9e98c675 files · +257 −0Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/mfd/altera-sysmgr.h+29−0
@@ -0,0 +1,29 @@
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2018-2019 Intel Corporation
4 * Copyright (C) 2012 Freescale Semiconductor, Inc.
5 * Copyright (C) 2012 Linaro Ltd.
6 */
7
8#ifndef __LINUX_MFD_ALTERA_SYSMGR_H__
9#define __LINUX_MFD_ALTERA_SYSMGR_H__
10
11#include <linux/err.h>
12#include <linux/errno.h>
13#include <linux/firmware/intel/stratix10-smc.h>
14
15struct device_node;
16
17#ifdef CONFIG_MFD_ALTERA_SYSMGR
18struct regmap *altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
19 const char *property);
20#else
21static inline struct regmap *
22altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
23 const char *property)
24{
25 return ERR_PTR(-ENOTSUPP);
26}
27#endif
28
29#endif /* __LINUX_MFD_ALTERA_SYSMGR_H__ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t