Solved
STM32CubeMX does not give option to disable touch controller in target/generated/TouchGFXConfiguration.cpp
I want to disable touch using NoTouchController class, but the TouchGFXConfiguration.cpp file is located in generated folder, but STM32CubeMX will always override this change.
CubeMX should have option to select TouchController.
