Slew speed in motor driver