According to the theory of the Gokenin, Motokuni MATSUDA, a son of Motoyasu MATSUDA, took sides with Emperor Godaigo, and he was given Ifuku-go in Mino County, Bizen Province as a reward for the subjugation of the Kamakura Shogunate, and he built Toyama-jo Castle there to make it his base.
御家人説では、松田元保の子松田元国が後醍醐天皇に味方し、鎌倉幕府討伐の功により備前国御野郡伊福郡を与えられ、彼の地に富山城を築き本拠地にした。