forked from u-boot/u-boot
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bus: uniphier-system-bus: add UniPhier System Bus driver
Since commit 1517126 ("ARM: uniphier: select DM_ETH"), DM-based drivers/net/smc911x.c is compiled, but it is never probed because the parent node lacks the DM-based driver. I need a skeleton driver to populate child devices (but the next commit will move more hardware settings to the this driver). I put this to drivers/bus/uniphier-system-bus.c because this is the same path as the driver in Linux kernel. Signed-off-by: Masahiro Yamada <[email protected]>
- Loading branch information
Showing
6 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# | ||
# Bus Devices | ||
# | ||
|
||
menu "Bus devices" | ||
|
||
config UNIPHIER_SYSTEM_BUS | ||
bool "UniPhier System Bus driver" | ||
depends on ARCH_UNIPHIER | ||
default y | ||
help | ||
Support for UniPhier System Bus, a simple external bus. This is | ||
needed to use on-board devices connected to UniPhier SoCs. | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# | ||
# Makefile for the bus drivers. | ||
# | ||
|
||
obj-$(CONFIG_UNIPHIER_SYSTEM_BUS) += uniphier-system-bus.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include <dm.h> | ||
|
||
static const struct udevice_id uniphier_system_bus_match[] = { | ||
{ .compatible = "socionext,uniphier-system-bus" }, | ||
{ /* sentinel */ } | ||
}; | ||
|
||
U_BOOT_DRIVER(uniphier_system_bus_driver) = { | ||
.name = "uniphier-system-bus", | ||
.id = UCLASS_SIMPLE_BUS, | ||
.of_match = uniphier_system_bus_match, | ||
}; |