I have an Official 7 inch touch screen connected to a Pi 4B running Bookwork 64 bit. It is mounted in the Pibow Touchscreen Frame. The Pi 4 ends up orientated such that the display is upside down. I have rotated the image 180 in Display Settings so all is good once the OS loads the desktop. The boot screen / splash screen is still upside down though? I tried lcd_rotate=2 and display_rotate=2 in boot/firmware/config.txt. It had no effect? Is there a way to rotate it from the get go?
Found a solution that works, may be a bit of a compromise though?
Official 7 inch touch screen, image is rotated 180 on boot up. - Raspberry Pi Forums