|
@@ -0,0 +1,53 @@
|
|
|
|
+/*
|
|
|
|
+ * Chip-specific setup code for the AT91SAM9G45 family
|
|
|
|
+ *
|
|
|
|
+ * Copyright (C) 2009 Atmel Corporation.
|
|
|
|
+ *
|
|
|
|
+ * This program is free software; you can redistribute it and/or modify
|
|
|
|
+ * it under the terms of the GNU General Public License as published by
|
|
|
|
+ * the Free Software Foundation; either version 2 of the License, or
|
|
|
|
+ * (at your option) any later version.
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+#include <linux/module.h>
|
|
|
|
+#include <linux/dma-mapping.h>
|
|
|
|
+
|
|
|
|
+#include <asm/irq.h>
|
|
|
|
+#include <asm/mach/arch.h>
|
|
|
|
+#include <asm/mach/map.h>
|
|
|
|
+#include <asm/system_misc.h>
|
|
|
|
+#include <mach/at91sam9g45.h>
|
|
|
|
+#include <mach/at91_pmc.h>
|
|
|
|
+#include <mach/cpu.h>
|
|
|
|
+
|
|
|
|
+#include "at91_aic.h"
|
|
|
|
+#include "soc.h"
|
|
|
|
+#include "generic.h"
|
|
|
|
+#include "clock.h"
|
|
|
|
+#include "sam9_smc.h"
|
|
|
|
+
|
|
|
|
+/* --------------------------------------------------------------------
|
|
|
|
+ * Clocks
|
|
|
|
+ * -------------------------------------------------------------------- */
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * The peripheral clocks.
|
|
|
|
+ */
|
|
|
|
+static struct clk pioA_clk = {
|
|
|
|
+ .name = "pioA_clk",
|
|
|
|
+ .pmc_mask = 1 << AT91SAM9G45_ID_PIOA,
|
|
|
|
+ .type = CLK_TYPE_PERIPHERAL,
|
|
|
|
+};
|
|
|
|
+static struct clk pioB_clk = {
|
|
|
|
+ .name = "pioB_clk",
|
|
|
|
+ .pmc_mask = 1 << AT91SAM9G45_ID_PIOB,
|
|
|
|
+ .type = CLK_TYPE_PERIPHERAL,
|
|
|
|
+};
|
|
|
|
+static struct clk pioC_clk = {
|
|
|
|
+ .name = "pioC_clk",
|
|
|
|
+ .pmc_mask = 1 << AT91SAM9G45_ID_PIOC,
|
|
|
|
+ .type = CLK_TYPE_PERIPHERAL,
|
|
|
|
+};
|
|
|
|
+static struct clk pioDE_clk = {
|
|
|
|
+ .name = "pioDE_clk",
|