arm-refactor:use sysenv board to determine what driver to start.

This commit is contained in:
Kees Jongenburger 2014-01-10 12:20:59 +01:00
parent 612d8207f0
commit ee35ee7172

View File

@ -238,10 +238,10 @@ start)
done
echo .
BOARD_NAME=`eepromread -i | sed -n 's/^BOARD_NAME : \(.*\)$/\1/p'`
BOARD_NAME=`sysenv board`
case "${BOARD_NAME}" in
A335BONE)
ARM-ARMV7-TI-BB-WHITE)
echo "Detected BeagleBone"
echo -n "Starting i2c device drivers: "
@ -278,8 +278,8 @@ start)
;;
A335BNLT)
echo "Detected BeagleBone Black"
ARM-ARMV7-TI-BB-BLACK)
echo "Running on a BeagleBone Black"
echo -n "Starting i2c device drivers: "
# start EEPROM driver for reading board info
@ -306,8 +306,8 @@ start)
;;
UNKNOWN)
echo "Unable to detect board -- assuming BeagleBoard-xM"
ARM-ARMV7-TI-BBXM-GENERIC)
echo "Running on a BeagleBoard-xM"
echo -n "Starting i2c device drivers: "
# Start TPS65950 driver for power management.