From the etymology of loll (http://www.etymonline.com/index.php?term=loll):
mid-14c., lollen "to lounge idly, hang loosely," perhaps related to M.Du. lollen "to doze, mumble," or somehow imitative of rocking or swinging. Specifically of the tongue from 1610s.