New York (CNN Business) The founder and CEO of Chinese smartphone maker Xiaomi is receiving a huge bonus for a year in which the company went public. And he's donating all of it to charity.

Xiaomi said in a regulatory filing Wednesday that Lei Jun is receiving more than 636.6 million shares as a bonus for "his contributions to the company." The stock is traded in Hong Kong.

Based on the stock's current price, that works out to about 7.54 billion Hong Kong dollars, or about $961 million. Xiaomi said in the filing that Lei promised to donate all the shares — after deducting taxes — to charitable purposes.

Xiaomi did not say in the filing where exactly that money would go. The company was not immediately available for comment.

Apple AAPL Xiaomi went public in Hong Kong last July. Since then, the stock has fallen amid concerns about a slowdown in demand in China for smartphones. Xiaomi also faces increased competition from Samsung,and Chinese rivals Huawei, Oppo and Vivo.

Read More