Skip to contentSkip to conversation

misc: npcm7xx-lpc-bpc: add Arbel NPCM8XX support

PATCH New Tomer Maimon 1 participant 3 messages Aug 9, 2022 – Aug 10, 2022

Subsystems (3)
lore
Share & tools
lore

Tomer Maimon

author maintainer
#0 lore raw

cover misc: npcm7xx-lpc-bpc: add Arbel NPCM8XX support

This patch set adds Arbel NPCM8XX LPC BIOS Post Code (BPC) support to BPC NPCM driver.

This patchset was tested on the Arbel NPCM8XX evaluation board that running Arbel OpenBMC.

Tomer Maimon (2):
dt-binding: bmc: npcm7xx-lpc-bpc: Add npcm845 compatible
misc: npcm7xx-lpc-bpc: Add NPCM845 LPC BPC support

 .../devicetree/bindings/bmc/npcm7xx-lpc-bpc.txt          | 9 +++++----
 drivers/misc/Kconfig                                     | 8 ++++----
 drivers/misc/Makefile                                    | 2 +-
 drivers/misc/npcm7xx-lpc-bpc.c                           | 2 +-
 4 files changed, 11 insertions(+), 10 deletions(-)
Signature · 1 line
2.33.0
author maintainer
#1 lore raw

PATCH 1/2 dt-binding: bmc: npcm7xx-lpc-bpc: Add npcm845 compatible

---
 .../devicetree/bindings/bmc/npcm7xx-lpc-bpc.txt          | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/bmc/npcm7xx-lpc-bpc.txt +5 -4
index 0832c9cbea32..2aa16d62a224 100644
@@ -1,15 +1,16 @@
-Nuvoton NPCM7xx LPC BPC interface
+Nuvoton NPCM LPC BPC interface
 
-Nuvoton BMC NPCM7xx BIOS Post Code (BPC) monitoring two
+Nuvoton BMC NPCM BIOS Post Code (BPC) monitoring two
 configurable I/O addresses written by the host on the
 Low Pin Count (LPC) bus, the capure data stored in 128-word FIFO.
 
-NPCM7xx BPC supports capture double words, when using capture
+NPCM BPC supports capture double words, when using capture
 double word only I/O address 1 is monitored.
 
 Required properties for lpc_bpc node
 - compatible	: "nuvoton,npcm750-lpc-bpc" for Poleg NPCM7XX.
-- reg 			: specifies physical base address and size of the registers.
+		  "nuvoton,npcm845-lpc-bpc", "nuvoton,npcm750-lpc-bpc" for Arbel NPCM8XX.
+- reg 		: specifies physical base address and size of the registers.
 - interrupts	: contain the LPC BPC with flags for falling edge.
 - monitor-ports : contain monitor I/O addresses, at least one monitor I/O
 				  address required
Signature · 1 line
2.33.0
author maintainer
#2 lore raw

PATCH 2/2 misc: npcm7xx-lpc-bpc: Add NPCM845 LPC BPC support

In reply to Tomer Maimon

Add Nuvoton BMC NPCM845 NPCM LPC BIOS Post Code support support.

---
 drivers/misc/Kconfig           | 8 ++++----
 drivers/misc/Makefile          | 2 +-
 drivers/misc/npcm7xx-lpc-bpc.c | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/misc/Kconfig +4 -4
index 13e3afdbcc40..79cc23fbfac9 100644
@@ -470,11 +470,11 @@ config HISI_HIKEY_USB
 	  switching between the dual-role USB-C port and the USB-A host ports
 	  using only one USB controller.
 
-config NPCM7XX_LPC_BPC
-	tristate "NPCM7xx LPC BIOS Post Code support"
-	depends on (ARCH_NPCM7XX || COMPILE_TEST)
+config NPCM_LPC_BPC
+	tristate "NPCM LPC BIOS Post Code support"
+	depends on (ARCH_NPCM || COMPILE_TEST)
 	help
-	  Provides a NPCM7xx driver to control the LPC BIOS Post Code
+	  Provides a NPCM driver to control the LPC BIOS Post Code
 	  interface which allows the BMC to monitoring and save
 	  the data written by the host to an arbitrary LPC I/O port.
 
drivers/misc/Makefile +1 -1
index 53726c86460c..b6e9b550bb41 100644
@@ -59,6 +59,6 @@ obj-$(CONFIG_UACCE)		+= uacce/
 obj-$(CONFIG_XILINX_SDFEC)	+= xilinx_sdfec.o
 obj-$(CONFIG_HISI_HIKEY_USB)	+= hisi_hikey_usb.o
 obj-$(CONFIG_HI6421V600_IRQ)	+= hi6421v600-irq.o
-obj-$(CONFIG_NPCM7XX_LPC_BPC)	+= npcm7xx-lpc-bpc.o
+obj-$(CONFIG_NPCM_LPC_BPC)	+= npcm7xx-lpc-bpc.o
 obj-$(CONFIG_NPCM7XX_PCI_MBOX)	+= npcm7xx-pci-mbox.o
 obj-$(CONFIG_NPCM7XX_JTAG_MASTER)	+= npcm7xx-jtag-master.o
drivers/misc/npcm7xx-lpc-bpc.c +1 -1
index e014e07cd4a4..5c90dfc5374b 100644
@@ -352,7 +352,7 @@ static int npcm7xx_bpc_probe(struct platform_device *pdev)
 		}
 	}
 
-	pr_info("npcm7xx BIOS post code probe\n");
+	pr_info("NPCM BIOS Post Code probe\n");
 
 	return rc;
 }
Signature · 1 line
2.33.0