Inherited from Proto-South Dravidian *mām. By surface analysis, മാ (mā) + -മ് (-mŭ).
മാം • (māṁ)
Borrowed from Sanskrit माम् (mām).