Skip to content

Commit 5766e9d

Browse files
committed
Merge tag 'for-linus-4.9-2' of git://git.code.sf.net/p/openipmi/linux-ipmi
Pull IPMI updates from Corey Minyard: "A small bug fix and a new driver for acting as an IPMI device. I was on vacation during the merge window (a long vacation) but this is a bug fix that should go in and a new driver that shouldn't hurt anything. This has been in linux-next for a month or so" * tag 'for-linus-4.9-2' of git://git.code.sf.net/p/openipmi/linux-ipmi: ipmi: fix crash on reading version from proc after unregisted bmc ipmi/bt-bmc: remove redundant return value check of platform_get_resource() ipmi/bt-bmc: add a dependency on ARCH_ASPEED ipmi: Fix ioremap error handling in bt-bmc ipmi: add an Aspeed BT IPMI BMC driver
2 parents 0c2b6dc + bd85f4b commit 5766e9d

9 files changed

Lines changed: 560 additions & 5 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
* Aspeed BT (Block Transfer) IPMI interface
2+
3+
The Aspeed SOCs (AST2400 and AST2500) are commonly used as BMCs
4+
(BaseBoard Management Controllers) and the BT interface can be used to
5+
perform in-band IPMI communication with their host.
6+
7+
Required properties:
8+
9+
- compatible : should be "aspeed,ast2400-bt-bmc"
10+
- reg: physical address and size of the registers
11+
12+
Optional properties:
13+
14+
- interrupts: interrupt generated by the BT interface. without an
15+
interrupt, the driver will operate in poll mode.
16+
17+
Example:
18+
19+
ibt@1e789140 {
20+
compatible = "aspeed,ast2400-bt-bmc";
21+
reg = <0x1e789140 0x18>;
22+
interrupts = <8>;
23+
};
File renamed without changes.

drivers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ obj-y += video/
2121
obj-y += idle/
2222

2323
# IPMI must come before ACPI in order to provide IPMI opregion support
24-
obj-$(CONFIG_IPMI_HANDLER) += char/ipmi/
24+
obj-y += char/ipmi/
2525

2626
obj-$(CONFIG_ACPI) += acpi/
2727
obj-$(CONFIG_SFI) += sfi/

drivers/char/ipmi/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,11 @@ config IPMI_POWEROFF
7676
the IPMI management controller is capable of this.
7777

7878
endif # IPMI_HANDLER
79+
80+
config ASPEED_BT_IPMI_BMC
81+
depends on ARCH_ASPEED
82+
tristate "BT IPMI bmc driver"
83+
help
84+
Provides a driver for the BT (Block Transfer) IPMI interface
85+
found on Aspeed SOCs (AST2400 and AST2500). The driver
86+
implements the BMC side of the BT interface.

drivers/char/ipmi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ obj-$(CONFIG_IPMI_SSIF) += ipmi_ssif.o
1111
obj-$(CONFIG_IPMI_POWERNV) += ipmi_powernv.o
1212
obj-$(CONFIG_IPMI_WATCHDOG) += ipmi_watchdog.o
1313
obj-$(CONFIG_IPMI_POWEROFF) += ipmi_poweroff.o
14+
obj-$(CONFIG_ASPEED_BT_IPMI_BMC) += bt-bmc.o

0 commit comments

Comments
 (0)