Skip to content

Commit

Permalink
soc: amd: Add support for AMD Pensando SoC Controller
Browse files Browse the repository at this point in the history
The Pensando SoC controller is a SPI connected companion device
that is present in all Pensando SoC board designs.  The essential
board management registers are accessed on chip select 0 with
board mgmt IO support accessed using additional chip selects.

Signed-off-by: Brad Larson <blarson@amd.com>
  • Loading branch information
blarson866 authored and intel-lab-lkp committed May 15, 2023
1 parent bc46275 commit 48a90df
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/soc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
menu "SOC (System On Chip) specific Drivers"

source "drivers/soc/actions/Kconfig"
source "drivers/soc/amd/Kconfig"
source "drivers/soc/amlogic/Kconfig"
source "drivers/soc/apple/Kconfig"
source "drivers/soc/aspeed/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions drivers/soc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#

obj-$(CONFIG_ARCH_ACTIONS) += actions/
obj-y += amd/
obj-y += apple/
obj-y += aspeed/
obj-$(CONFIG_ARCH_AT91) += atmel/
Expand Down
16 changes: 16 additions & 0 deletions drivers/soc/amd/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-License-Identifier: GPL-2.0-only
menu "AMD Pensando SoC drivers"

config AMD_PENSANDO_CTRL
tristate "AMD Pensando SoC Controller"
depends on SPI_MASTER=y
depends on (ARCH_PENSANDO && OF) || COMPILE_TEST
default ARCH_PENSANDO
select REGMAP_SPI
select MFD_SYSCON
help
Enables AMD Pensando SoC controller device support. This is a SPI
attached companion device in all Pensando SoC board designs which
provides essential board control/status registers and management IO
support.
endmenu
2 changes: 2 additions & 0 deletions drivers/soc/amd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_AMD_PENSANDO_CTRL) += pensando-ctrl.o
Loading

0 comments on commit 48a90df

Please sign in to comment.