AVR: Make setting of XDIV optional for platforms that support it

Put setting of XDIV into ifdef since not AVR platforms support it.
This commit is contained in:
Dimitry Kloper 2015-12-29 18:56:12 +02:00
parent 462307f4b7
commit 99aab135b2

View file

@ -131,7 +131,7 @@ void up_lowinit(void)
#ifdef CONFIG_ARCH_CHIP_ATMEGA1284P
CLKPR = 0x80;
CLKPR = 0;
#else
#elif defined(XDIV)
XDIV = 0;
#endif