|
@@ -0,0 +1,57 @@
|
|
|
+/*
|
|
|
+ * linux/arch/arm/mach-at91/board-yl-9200.c
|
|
|
+ *
|
|
|
+ * Adapted from various board files in arch/arm/mach-at91
|
|
|
+ *
|
|
|
+ * Modifications for YL-9200 platform:
|
|
|
+ * Copyright (C) 2007 S. Birtles
|
|
|
+ *
|
|
|
+ * 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.
|
|
|
+ *
|
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ * GNU General Public License for more details.
|
|
|
+ *
|
|
|
+ * You should have received a copy of the GNU General Public License
|
|
|
+ * along with this program; if not, write to the Free Software
|
|
|
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
+ */
|
|
|
+
|
|
|
+#include <linux/types.h>
|
|
|
+#include <linux/gpio.h>
|
|
|
+#include <linux/init.h>
|
|
|
+#include <linux/mm.h>
|
|
|
+#include <linux/module.h>
|
|
|
+#include <linux/dma-mapping.h>
|
|
|
+#include <linux/platform_device.h>
|
|
|
+#include <linux/spi/spi.h>
|
|
|
+#include <linux/spi/ads7846.h>
|
|
|
+#include <linux/mtd/physmap.h>
|
|
|
+#include <linux/gpio_keys.h>
|
|
|
+#include <linux/input.h>
|
|
|
+
|
|
|
+#include <asm/setup.h>
|
|
|
+#include <asm/mach-types.h>
|
|
|
+#include <asm/irq.h>
|
|
|
+
|
|
|
+#include <asm/mach/arch.h>
|
|
|
+#include <asm/mach/map.h>
|
|
|
+#include <asm/mach/irq.h>
|
|
|
+
|
|
|
+#include <mach/hardware.h>
|
|
|
+#include <mach/at91rm9200_mc.h>
|
|
|
+#include <mach/at91_ramc.h>
|
|
|
+#include <mach/cpu.h>
|
|
|
+
|
|
|
+#include "at91_aic.h"
|
|
|
+#include "board.h"
|
|
|
+#include "generic.h"
|
|
|
+
|
|
|
+
|
|
|
+static void __init yl9200_init_early(void)
|
|
|
+{
|
|
|
+ /* Set cpu type: PQFP */
|