Hi Shen
emms driver performs HS400 or HS200 selection automatically, no code modification is needed.
Procedure is described in emmc JESD84-B50 specification https://www.jedec.org/sites/default/files/docs/JESD84-B50.pdf
In HS400 mode only 8-bit bus width is supported. Bus width is defined by Extend CSD register
BUS_WIDTH [183]. It is set to ‘0’ (1 bit data bus) after power up and can be changed by a SWITCH command. After host initializes the emmc device, it verify that the device supports the HS200/400
mode by reading the DEVICE_TYPE field in the Extended CSD register.
Best regards
igor