Skip to content

Commit

Permalink
w83627hf: Add station id of IPC BX-56A
Browse files Browse the repository at this point in the history
The simatic IPC BX-56A shares the same nct6116 superio chip as the
BX-59A. Allow efibootguard to configure the w83627hf watchdog for BX-56A
by adding its station id.

Signed-off-by: Tobias Schaffner <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
TobiasSchaffner authored and jan-kiszka committed May 17, 2024
1 parent a23409e commit 7dee866
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The following watchdog drivers are implemented (and are probed in this order):
* Intel i6300esb
* Intel Quark
* Siemens SIMATIC IPC4x7E
* Siemens SIMATIC BX-59A
* Siemens SIMATIC BX-56A and BX-59A
* Intel TCO
* HPE ProLiant

Expand Down
3 changes: 2 additions & 1 deletion drivers/watchdog/w83627hf_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,12 @@ static EFI_STATUS init(EFI_PCI_IO *pci_io, UINT16 pci_vendor_id,
}

switch (simatic_station_id()) {
case SIMATIC_IPCBX_56A:
case SIMATIC_IPCBX_59A:
chip = wdt_find(0x2e);
if (chip < 0)
return EFI_UNSUPPORTED;
INFO(L"Detected SIMATIC BX59A watchdog\n");
INFO(L"Detected SIMATIC BX5xA watchdog\n");
ret = w83627hf_init(chip);
if (ret < 0)
return EFI_UNSUPPORTED;
Expand Down
1 change: 1 addition & 0 deletions include/simatic.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#define SIMATIC_IPC427E 0x0a01
#define SIMATIC_IPC477E 0x0a02
#define SIMATIC_IPCBX_56A 0x1201
#define SIMATIC_IPCBX_59A 0x1202

typedef struct {
Expand Down

0 comments on commit 7dee866

Please sign in to comment.