From 499a8ba3da9c568517f56a9f5829c8c27599640b Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Wed, 11 Dec 2019 14:05:42 +0800 Subject: [PATCH] ramips: Re-add support for XiaoYu-C5 (#2376) * ramips: XiaoYu-C5 fix to 512MB * Re-add support for XiaoYu-C5 --- .../ramips/dts/{mt7621_xiaoyu_xy-c5.dts => XiaoYu-C5.dts} | 5 +++++ target/linux/ramips/image/mt7621.mk | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) rename target/linux/ramips/dts/{mt7621_xiaoyu_xy-c5.dts => XiaoYu-C5.dts} (94%) diff --git a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts b/target/linux/ramips/dts/XiaoYu-C5.dts similarity index 94% rename from target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts rename to target/linux/ramips/dts/XiaoYu-C5.dts index 072b2cc45..8d7cf3ecf 100644 --- a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts +++ b/target/linux/ramips/dts/XiaoYu-C5.dts @@ -17,6 +17,11 @@ label-mac-device = ðernet; }; + memory@0 { + device_type = "memory"; + reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; + }; + chosen { bootargs = "console=ttyS0,57600"; }; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 3173e528e..af15b9e48 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -131,10 +131,9 @@ endef TARGET_DEVICES += mediatek_ap-mt7621a-v60 define Device/xiaoyu_xy-c5 - MTK_SOC := mt7621 - IMAGE_SIZE := 32448k - DEVICE_VENDOR := XiaoYu - DEVICE_MODEL := XY-C5 + DTS := XiaoYu-C5 + IMAGE_SIZE := $(ralink_default_fw_size_32M) + DEVICE_TITLE := XiaoYu_XY-C5 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 endef TARGET_DEVICES += xiaoyu_xy-c5