layerscape: add LX2160ARDB (Rev2.0 silicon) board support
[openwrt/openwrt.git] / target / linux / layerscape / base-files / lib / upgrade / platform.sh
index a8d83de7eaf687d2d3e55b25afff29804cac7de5..857be5a744b3c3290efa2b76256ec587007f49cd 100644 (file)
@@ -72,8 +72,10 @@ platform_copy_config() {
        fsl,ls1021a-iot-sdboot | \
        fsl,ls1021a-twr-sdboot | \
        fsl,ls1043a-rdb-sdboot | \
+       fsl,ls1046a-frwy-sdboot | \
        fsl,ls1046a-rdb-sdboot | \
-       fsl,ls1088a-rdb-sdboot)
+       fsl,ls1088a-rdb-sdboot | \
+       fsl,lx2160a-rdb-sdboot)
                platform_copy_config_sdboot
                ;;
        esac
@@ -95,11 +97,15 @@ platform_check_image() {
        fsl,ls1021a-twr-sdboot | \
        fsl,ls1043a-rdb | \
        fsl,ls1043a-rdb-sdboot | \
+       fsl,ls1046a-frwy | \
+       fsl,ls1046a-frwy-sdboot | \
        fsl,ls1046a-rdb | \
        fsl,ls1046a-rdb-sdboot | \
        fsl,ls1088a-rdb | \
        fsl,ls1088a-rdb-sdboot | \
-       fsl,ls2088a-rdb)
+       fsl,ls2088a-rdb | \
+       fsl,lx2160a-rdb | \
+       fsl,lx2160a-rdb-sdboot)
                return 0
                ;;
        *)
@@ -125,9 +131,11 @@ platform_do_upgrade() {
        fsl,ls1012a-rdb | \
        fsl,ls1021a-twr | \
        fsl,ls1043a-rdb | \
+       fsl,ls1046a-frwy | \
        fsl,ls1046a-rdb | \
        fsl,ls1088a-rdb | \
-       fsl,ls2088a-rdb)
+       fsl,ls2088a-rdb | \
+       fsl,lx2160a-rdb)
                PART_NAME=firmware
                default_do_upgrade "$1"
                ;;
@@ -135,8 +143,10 @@ platform_do_upgrade() {
        fsl,ls1021a-iot-sdboot | \
        fsl,ls1021a-twr-sdboot | \
        fsl,ls1043a-rdb-sdboot | \
+       fsl,ls1046a-frwy-sdboot | \
        fsl,ls1046a-rdb-sdboot | \
-       fsl,ls1088a-rdb-sdboot)
+       fsl,ls1088a-rdb-sdboot | \
+       fsl,lx2160a-rdb-sdboot)
                platform_do_upgrade_sdboot "$1"
                return 0
                ;;