mpc85xx: use the generic board detect

Use the values populated by the generic board detect function. The
first compatible from the device tree source file will be the board
name in userspace. The model property from the device tree source file
will be the model name.

Change the board name where used in the userspace and drop the target
specific board detect, to use the generic one.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin
2017-05-15 23:59:25 +02:00
parent f0e1f69f39
commit dcbbac55ed
7 changed files with 9 additions and 53 deletions

View File

@@ -6,13 +6,13 @@
get_status_led() {
case $(board_name) in
hiveap-330)
aerohive,hiveap-330)
status_led="hiveap-330:green:tricolor0"
;;
tl-wdr4900-v1)
tplink,tl-wdr4900-v1)
status_led="tp-link:blue:system"
;;
esac
esac
}
set_state() {