Week Old won’t lay flat and sleep


My one week old son recently decided he doesn’t want to fall asleep laying flat. He will fall asleep on his boppy newborn lounger or in swing but at night won’t stay asleep in bassinet or crib. Any suggestions on what to do?