Skip to content

Commit 6b69871

Browse files
committed
fw_cfg: Add support for parisc architecture
Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 3e4fb43 commit 6b69871

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/firmware/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ config RASPBERRYPI_FIRMWARE
187187

188188
config FW_CFG_SYSFS
189189
tristate "QEMU fw_cfg device support in sysfs"
190-
depends on SYSFS && (ARM || ARM64 || PPC_PMAC || SPARC || X86)
190+
depends on SYSFS && (ARM || ARM64 || PARISC || PPC_PMAC || SPARC || X86)
191191
depends on HAS_IOPORT_MAP
192192
default n
193193
help

‎drivers/firmware/qemu_fw_cfg.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ static void fw_cfg_io_cleanup(void)
215215
# define FW_CFG_CTRL_OFF 0x08
216216
# define FW_CFG_DATA_OFF 0x00
217217
# define FW_CFG_DMA_OFF 0x10
218+
# elif defined(CONFIG_PARISC) /* parisc */
219+
# define FW_CFG_CTRL_OFF 0x00
220+
# define FW_CFG_DATA_OFF 0x04
218221
# elif (defined(CONFIG_PPC_PMAC) || defined(CONFIG_SPARC32)) /* ppc/mac,sun4m */
219222
# define FW_CFG_CTRL_OFF 0x00
220223
# define FW_CFG_DATA_OFF 0x02

0 commit comments

Comments
 (0)