Switching between screens

bluscape
I've got two Mini2440's, one from Hiteg and another from ThaiEasyElec.
The one uses a Sony X35 display (portrait 240x320) and the other uses a
SP035GT (landscape 320x240). Both Mini's are running the exact same setup
but I have to use two different virtual machines when I compile for them
such that each gets the correct display setup. I would like to know if its
possible to switch in the bootloader and the filesystem to the correct
display by looking at a define or something. This way I can eliminate the
need for two different VM's.

Things affected by the display:

- Boot logo (linux\display\drivers\video\logo)
- Display driver selection in barebox
- Qt Display setup (profile.environment)

bluscape
I actually need a way to detect the displays. I don't want go and set a
flag either. I just want to compile on one VM and the it should work for
both Mini's.

brox
There is no easy way to detect displays at runtime, unfortunately.