Disabling gpio in Bootsrapper

Hi sir…

we have connected to motor to one pwm and gpio.Once linux starts from spl its start running and stops once kernel starts.
we want to disable all these gpios. We tried disabling through device tree. its not stopping.how to disable that so that it should not run during booting process,it should run only if we configure in our application.

Regards,
Jennifer

Do it in hardware. Isolate the pins behind some type of tristate buffer
enable buffer when your ready