To have on the brain

to have constantly in one's thoughts, as a sort of monomania.

See also: Brain