FogBugz #192038: Fix SDRAM PLL Phase Aligning

To fix the SDRAM PLL phase aligning issue which cause SDRAM
calibration failed. This patch will reset the SDRAM VCO twice
and implemented software de-bouncing check for PLL lock status.

Signed-off-by: Chin Liang See <clsee@altera.com>
---
Changes for v2
- Using udelay instead for loop implementation
This is the USB host controller used on the Raspbery Pi.

swarren changelog:
* Fixed prototype of usb_lowlevel_init() to match upstream change.
* Fixed a number of unused variable warnings.
* Replaced license headers with SPDX tags.
* Renamed files DWC -> DWC2 to make it clear which HW it's for.
* Many hundreds of checkpatch fixes.

Signed-off-by: Oleksandr Tymoshenko <gonzo@bluezbox.com>
Signed-off-by: Stephen Warren <swarren@wwdotorg.org>
Signed-off-by: Dinh Nguyen <dinguyen@altera.com>