Does anyone know if I can modify an E38 to allow boost while still maintaining the displacement on demand or active fuel management functions?

What I'm trying to do is run a turbo, while still having the stock displacement on demand for functionality for times when there is zero boost and low engine load.