|
@@ -25,10 +25,12 @@
|
|
|
#include "at91_rstc.h"
|
|
|
#include "soc.h"
|
|
|
#include "generic.h"
|
|
|
-#include "clock.h"
|
|
|
#include "sam9_smc.h"
|
|
|
#include "pm.h"
|
|
|
|
|
|
+#if defined(CONFIG_OLD_CLK_AT91)
|
|
|
+#include "clock.h"
|
|
|
+
|
|
|
/* --------------------------------------------------------------------
|
|
|
* Clocks
|
|
|
* -------------------------------------------------------------------- */
|
|
@@ -264,7 +266,9 @@ static void __init at91sam9261_register_clocks(void)
|
|
|
clk_register(&hck0);
|
|
|
clk_register(&hck1);
|
|
|
}
|
|
|
-
|
|
|
+#else
|
|
|
+#define at91sam9261_register_clocks NULL
|
|
|
+#endif
|
|
|
/* --------------------------------------------------------------------
|
|
|
* GPIO
|
|
|
* -------------------------------------------------------------------- */
|