As of February 2, 2026, the NXP MEMS Sensor products have been transferred to STMicroelectronics. For details on the transferred products, see this page. Please reach out to STMicroelectronics for further information.
Unfortunately there is no x86 compatible drivers available for MMA8451. You can find a baremetal driver for MMA845x, and you can use that example as a reference to develop your own driver.