configs: mt8183: android: set rootfs from partition name

Currently, the root=/dev/<myrootfs> is hard-coded in the Android kernel
commandline.

Each time we update the partition scheme, we must also change this
commandline option, which is error prone.

Inspect the partition table and provide the root=/dev/X argument
to the kernel instead of hard-coding it.

Bug: https://baylibre.atlassian.net/browse/RITA-65
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
diff --git a/include/configs/mt8183.h b/include/configs/mt8183.h
index 86f7b8f..6f97435 100644
--- a/include/configs/mt8183.h
+++ b/include/configs/mt8183.h
@@ -57,6 +57,9 @@
 #define ANDROID_BOOT_SYSTEM \
 	MMC_LOAD_DTB \
 	MMC_LOAD_BOOT \
+	"part number-format dec;" \
+	"part number mmc ${mmcdev} system rootfs_partition;" \
+	"setenv bootargs  \"${bootargs} root=/dev/mmcblk${mmcdev}p${rootfs_partition}\";" \
 	"bootm ${loadaddr};"
 
 /*
@@ -91,6 +94,7 @@
 
 #define MMCBOOT \
 	"mmcdev=0\0" \
+	"rootfs_partition=0\0" \
 	"dtb_index=0\0" \
 	"dtbo_index=1\0" \
 	"loadaddr=0x50000000\0" \