The 6.9 magnitude quake flattened thousands of homes in Qinghai 's ethnically-Tibetan Yushu county .