parent
385bcf948b
commit
34d362d1a7
@ -0,0 +1,306 @@ |
||||
# CONFIG_AEABI is not set |
||||
CONFIG_ALIGNMENT_TRAP=y |
||||
# CONFIG_ARCH_AAEC2000 is not set |
||||
CONFIG_ARCH_AT91=y |
||||
# CONFIG_ARCH_AT91CAP9 is not set |
||||
CONFIG_ARCH_AT91RM9200=y |
||||
# CONFIG_ARCH_AT91RM9200DK is not set |
||||
# CONFIG_ARCH_AT91SAM9260 is not set |
||||
# CONFIG_ARCH_AT91SAM9261 is not set |
||||
# CONFIG_ARCH_AT91SAM9263 is not set |
||||
# CONFIG_ARCH_AT91SAM9RL is not set |
||||
# CONFIG_ARCH_AT91X40 is not set |
||||
# CONFIG_ARCH_CLPS711X is not set |
||||
# CONFIG_ARCH_CLPS7500 is not set |
||||
# CONFIG_ARCH_CO285 is not set |
||||
# CONFIG_ARCH_DAVINCI is not set |
||||
# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set |
||||
# CONFIG_ARCH_EBSA110 is not set |
||||
# CONFIG_ARCH_EP93XX is not set |
||||
# CONFIG_ARCH_FOOTBRIDGE is not set |
||||
# CONFIG_ARCH_H720X is not set |
||||
# CONFIG_ARCH_HAS_ILOG2_U32 is not set |
||||
# CONFIG_ARCH_HAS_ILOG2_U64 is not set |
||||
# CONFIG_ARCH_IMX is not set |
||||
# CONFIG_ARCH_INTEGRATOR is not set |
||||
# CONFIG_ARCH_IOP13XX is not set |
||||
# CONFIG_ARCH_IOP32X is not set |
||||
# CONFIG_ARCH_IOP33X is not set |
||||
# CONFIG_ARCH_IXP2000 is not set |
||||
# CONFIG_ARCH_IXP23XX is not set |
||||
# CONFIG_ARCH_IXP4XX is not set |
||||
# CONFIG_ARCH_KS8695 is not set |
||||
# CONFIG_ARCH_L7200 is not set |
||||
# CONFIG_ARCH_LH7A40X is not set |
||||
# CONFIG_ARCH_MSM7X00A is not set |
||||
# CONFIG_ARCH_MXC is not set |
||||
# CONFIG_ARCH_NETX is not set |
||||
# CONFIG_ARCH_NS9XXX is not set |
||||
# CONFIG_ARCH_OMAP is not set |
||||
# CONFIG_ARCH_ORION is not set |
||||
# CONFIG_ARCH_PNX4008 is not set |
||||
# CONFIG_ARCH_PXA is not set |
||||
# CONFIG_ARCH_REALVIEW is not set |
||||
# CONFIG_ARCH_RPC is not set |
||||
# CONFIG_ARCH_S3C2410 is not set |
||||
# CONFIG_ARCH_SA1100 is not set |
||||
# CONFIG_ARCH_SHARK is not set |
||||
CONFIG_ARCH_SUPPORTS_AOUT=y |
||||
# CONFIG_ARCH_SUPPORTS_MSI is not set |
||||
CONFIG_ARCH_SUSPEND_POSSIBLE=y |
||||
# CONFIG_ARCH_VERSATILE is not set |
||||
CONFIG_ARM=y |
||||
CONFIG_ARM_AT91_ETHER=m |
||||
CONFIG_ARM_THUMB=y |
||||
# CONFIG_ARPD is not set |
||||
# CONFIG_ARTHUR is not set |
||||
CONFIG_AT91_EARLY_DBGU=y |
||||
# CONFIG_AT91_EARLY_USART0 is not set |
||||
# CONFIG_AT91_EARLY_USART1 is not set |
||||
# CONFIG_AT91_EARLY_USART2 is not set |
||||
# CONFIG_AT91_EARLY_USART3 is not set |
||||
# CONFIG_AT91_EARLY_USART4 is not set |
||||
# CONFIG_AT91_EARLY_USART5 is not set |
||||
CONFIG_AT91_PMC_UNIT=y |
||||
# CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set |
||||
CONFIG_AT91_SPI=y |
||||
# CONFIG_AT91_SPIDEV is not set |
||||
CONFIG_AT91_TIMER_HZ=128 |
||||
# CONFIG_ATMEL_PWM is not set |
||||
# CONFIG_ATMEL_SSC is not set |
||||
CONFIG_BASE_SMALL=0 |
||||
# CONFIG_BINFMT_AOUT is not set |
||||
CONFIG_BITREVERSE=y |
||||
CONFIG_BLK_DEV_RAM=y |
||||
CONFIG_BLK_DEV_RAM_COUNT=16 |
||||
CONFIG_BLK_DEV_RAM_SIZE=4096 |
||||
# CONFIG_BLK_DEV_XIP is not set |
||||
# CONFIG_BONDING is not set |
||||
CONFIG_BOUNCE=y |
||||
# CONFIG_BSD_PROCESS_ACCT is not set |
||||
# CONFIG_BT is not set |
||||
CONFIG_CLASSIC_RCU=y |
||||
CONFIG_CPU_32=y |
||||
CONFIG_CPU_32v4T=y |
||||
CONFIG_CPU_ABRT_EV4T=y |
||||
CONFIG_CPU_ARM920T=y |
||||
CONFIG_CPU_CACHE_V4WT=y |
||||
CONFIG_CPU_CACHE_VIVT=y |
||||
CONFIG_CPU_COPY_V4WB=y |
||||
CONFIG_CPU_CP15=y |
||||
CONFIG_CPU_CP15_MMU=y |
||||
# CONFIG_CPU_DCACHE_DISABLE is not set |
||||
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set |
||||
# CONFIG_CPU_ICACHE_DISABLE is not set |
||||
CONFIG_CPU_TLB_V4WBI=y |
||||
CONFIG_CRYPTO_AEAD=m |
||||
CONFIG_CRYPTO_AUTHENC=m |
||||
CONFIG_CRYPTO_GF128MUL=m |
||||
# CONFIG_DATAFLASH_ALWAYS_ADD_DEVICE is not set |
||||
# CONFIG_DEBUG_BUGVERBOSE is not set |
||||
# CONFIG_DEBUG_USER is not set |
||||
# CONFIG_DM9000 is not set |
||||
CONFIG_DUMMY_CONSOLE=y |
||||
# CONFIG_E1000E_ENABLED is not set |
||||
# CONFIG_FPE_FASTFPE is not set |
||||
CONFIG_FPE_NWFPE=y |
||||
# CONFIG_FPE_NWFPE_XP is not set |
||||
CONFIG_FRAME_POINTER=y |
||||
CONFIG_FS_POSIX_ACL=y |
||||
CONFIG_GENERIC_CLOCKEVENTS=y |
||||
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y |
||||
CONFIG_GENERIC_GPIO=y |
||||
CONFIG_HARDIRQS_SW_RESEND=y |
||||
CONFIG_HAS_DMA=y |
||||
CONFIG_HAS_IOMEM=y |
||||
CONFIG_HAS_IOPORT=y |
||||
# CONFIG_HAVE_IDE is not set |
||||
CONFIG_HAVE_KPROBES=y |
||||
CONFIG_HAVE_KRETPROBES=y |
||||
CONFIG_HAVE_OPROFILE=y |
||||
CONFIG_HW_CONSOLE=y |
||||
# CONFIG_HW_RANDOM is not set |
||||
CONFIG_HZ=128 |
||||
# CONFIG_I2C is not set |
||||
# CONFIG_IBM_NEW_EMAC_EMAC4 is not set |
||||
# CONFIG_IBM_NEW_EMAC_RGMII is not set |
||||
# CONFIG_IBM_NEW_EMAC_TAH is not set |
||||
# CONFIG_IBM_NEW_EMAC_ZMII is not set |
||||
# CONFIG_IEEE80211_CRYPT_CCMP is not set |
||||
# CONFIG_IEEE80211_CRYPT_TKIP is not set |
||||
# CONFIG_IEEE80211_SOFTMAC is not set |
||||
CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m |
||||
CONFIG_INITRAMFS_SOURCE="" |
||||
CONFIG_INPUT=y |
||||
CONFIG_LEDS=y |
||||
# CONFIG_LEDS_ALIX is not set |
||||
CONFIG_LEDS_CPU=y |
||||
# CONFIG_LEDS_GPIO is not set |
||||
CONFIG_LEGACY_PTYS=y |
||||
CONFIG_LEGACY_PTY_COUNT=32 |
||||
# CONFIG_LLC2 is not set |
||||
CONFIG_LOCALVERSION_AUTO=y |
||||
CONFIG_LZO_COMPRESS=m |
||||
CONFIG_LZO_DECOMPRESS=m |
||||
# CONFIG_MACH_AT91RM9200EK is not set |
||||
# CONFIG_MACH_ATEB9200 is not set |
||||
# CONFIG_MACH_CARMEVA is not set |
||||
# CONFIG_MACH_CHUB is not set |
||||
# CONFIG_MACH_CSB337 is not set |
||||
# CONFIG_MACH_CSB637 is not set |
||||
# CONFIG_MACH_ECBAT91 is not set |
||||
# CONFIG_MACH_HOMEMATIC is not set |
||||
# CONFIG_MACH_KAFA is not set |
||||
# CONFIG_MACH_KB9200 is not set |
||||
# CONFIG_MACH_ONEARM is not set |
||||
# CONFIG_MACH_PICOTUX2XX is not set |
||||
# CONFIG_MACH_SWEDATMS is not set |
||||
# CONFIG_MACH_TT9200 is not set |
||||
CONFIG_MACH_VLINK=y |
||||
CONFIG_MII=m |
||||
CONFIG_MMC=m |
||||
CONFIG_MMC_AT91=m |
||||
CONFIG_MMC_BLOCK=m |
||||
CONFIG_MMC_BLOCK_BOUNCE=y |
||||
# CONFIG_MMC_DEBUG is not set |
||||
# CONFIG_MMC_UNSAFE_RESUME is not set |
||||
CONFIG_MTD=y |
||||
# CONFIG_MTD_ABSENT is not set |
||||
# CONFIG_MTD_AFS_PARTS is not set |
||||
CONFIG_MTD_AT91_DATAFLASH=y |
||||
CONFIG_MTD_AT91_PARTS=y |
||||
CONFIG_MTD_BLKDEVS=y |
||||
CONFIG_MTD_BLOCK=y |
||||
# CONFIG_MTD_BLOCK2MTD is not set |
||||
# CONFIG_MTD_CFI is not set |
||||
CONFIG_MTD_CFI_I1=y |
||||
CONFIG_MTD_CFI_I2=y |
||||
# CONFIG_MTD_CFI_I4 is not set |
||||
# CONFIG_MTD_CFI_I8 is not set |
||||
CONFIG_MTD_CHAR=y |
||||
CONFIG_MTD_CMDLINE_PARTS=y |
||||
# CONFIG_MTD_COMPLEX_MAPPINGS is not set |
||||
# CONFIG_MTD_CONCAT is not set |
||||
# CONFIG_MTD_DEBUG is not set |
||||
# CONFIG_MTD_DOC2000 is not set |
||||
# CONFIG_MTD_DOC2001 is not set |
||||
# CONFIG_MTD_DOC2001PLUS is not set |
||||
# CONFIG_MTD_JEDECPROBE is not set |
||||
CONFIG_MTD_MAP_BANK_WIDTH_1=y |
||||
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set |
||||
CONFIG_MTD_MAP_BANK_WIDTH_2=y |
||||
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set |
||||
CONFIG_MTD_MAP_BANK_WIDTH_4=y |
||||
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set |
||||
# CONFIG_MTD_MTDRAM is not set |
||||
# CONFIG_MTD_ONENAND is not set |
||||
CONFIG_MTD_PARTITIONS=y |
||||
# CONFIG_MTD_PHRAM is not set |
||||
# CONFIG_MTD_PLATRAM is not set |
||||
# CONFIG_MTD_RAM is not set |
||||
# CONFIG_MTD_REDBOOT_PARTS is not set |
||||
# CONFIG_MTD_ROM is not set |
||||
# CONFIG_MTD_ROOTFS_ROOT_DEV is not set |
||||
# CONFIG_MTD_ROOTFS_SPLIT is not set |
||||
# CONFIG_MTD_SLRAM is not set |
||||
# CONFIG_NET_IPGRE_BROADCAST is not set |
||||
# CONFIG_NET_PKTGEN is not set |
||||
# CONFIG_NF_CONNTRACK_AMANDA is not set |
||||
# CONFIG_NF_CONNTRACK_PPTP is not set |
||||
# CONFIG_NF_CONNTRACK_RTSP is not set |
||||
# CONFIG_NF_CONNTRACK_TFTP is not set |
||||
# CONFIG_NF_NAT_AMANDA is not set |
||||
# CONFIG_NF_NAT_PPTP is not set |
||||
# CONFIG_NF_NAT_RTSP is not set |
||||
# CONFIG_NF_NAT_TFTP is not set |
||||
# CONFIG_NO_IOPORT is not set |
||||
# CONFIG_NVRAM is not set |
||||
# CONFIG_OUTER_CACHE is not set |
||||
# CONFIG_PCI_SYSCALL is not set |
||||
# CONFIG_PPPOATM is not set |
||||
# CONFIG_PPPOL2TP is not set |
||||
# CONFIG_PPP_MULTILINK is not set |
||||
# CONFIG_PPP_SYNC_TTY is not set |
||||
CONFIG_RTC_LIB=y |
||||
CONFIG_RWSEM_GENERIC_SPINLOCK=y |
||||
CONFIG_SCSI_WAIT_SCAN=m |
||||
# CONFIG_SDIO_UART is not set |
||||
# CONFIG_SERIAL_8250 is not set |
||||
CONFIG_SERIAL_ATMEL=y |
||||
CONFIG_SERIAL_ATMEL_CONSOLE=y |
||||
CONFIG_SERIAL_ATMEL_PDC=y |
||||
# CONFIG_SERIAL_ATMEL_TTYAT is not set |
||||
CONFIG_SERIO=y |
||||
# CONFIG_SERIO_LIBPS2 is not set |
||||
CONFIG_SERIO_RAW=y |
||||
CONFIG_SERIO_SERPORT=y |
||||
CONFIG_SLABINFO=y |
||||
# CONFIG_SMC91X is not set |
||||
# CONFIG_SOUND is not set |
||||
# CONFIG_SPARSEMEM_STATIC is not set |
||||
# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set |
||||
CONFIG_SPLIT_PTLOCK_CPUS=4096 |
||||
CONFIG_SSB_POSSIBLE=y |
||||
CONFIG_SYSVIPC_SYSCTL=y |
||||
CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
||||
CONFIG_TICK_ONESHOT=y |
||||
CONFIG_UID16=y |
||||
CONFIG_USB=m |
||||
# CONFIG_USB_ARCH_HAS_EHCI is not set |
||||
CONFIG_USB_LIBUSUAL=y |
||||
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set |
||||
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set |
||||
CONFIG_USB_OHCI_HCD=m |
||||
# CONFIG_USB_PRINTER is not set |
||||
# CONFIG_USB_R8A66597_HCD is not set |
||||
# CONFIG_USB_SERIAL_CYBERJACK is not set |
||||
# CONFIG_USB_SERIAL_EDGEPORT is not set |
||||
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set |
||||
# CONFIG_USB_SERIAL_EMPEG is not set |
||||
# CONFIG_USB_SERIAL_FUNSOFT is not set |
||||
# CONFIG_USB_SERIAL_GARMIN is not set |
||||
# CONFIG_USB_SERIAL_HP4X is not set |
||||
# CONFIG_USB_SERIAL_IPAQ is not set |
||||
# CONFIG_USB_SERIAL_IPW is not set |
||||
# CONFIG_USB_SERIAL_IR is not set |
||||
# CONFIG_USB_SERIAL_IUU is not set |
||||
# CONFIG_USB_SERIAL_KEYSPAN is not set |
||||
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set |
||||
# CONFIG_USB_SERIAL_KLSI is not set |
||||
# CONFIG_USB_SERIAL_KOBIL_SCT is not set |
||||
# CONFIG_USB_SERIAL_MCT_U232 is not set |
||||
# CONFIG_USB_SERIAL_MOS7720 is not set |
||||
# CONFIG_USB_SERIAL_MOS7840 is not set |
||||
# CONFIG_USB_SERIAL_NAVMAN is not set |
||||
# CONFIG_USB_SERIAL_OMNINET is not set |
||||
# CONFIG_USB_SERIAL_OPTION is not set |
||||
# CONFIG_USB_SERIAL_OTI6858 is not set |
||||
# CONFIG_USB_SERIAL_SAFE_PADDED is not set |
||||
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set |
||||
# CONFIG_USB_SERIAL_TI is not set |
||||
# CONFIG_USB_SERIAL_VISOR is not set |
||||
# CONFIG_USB_SERIAL_XIRCOM is not set |
||||
# CONFIG_USB_SPEEDTOUCH is not set |
||||
# CONFIG_USB_STORAGE_ALAUDA is not set |
||||
# CONFIG_USB_STORAGE_DATAFAB is not set |
||||
# CONFIG_USB_STORAGE_DPCM is not set |
||||
# CONFIG_USB_STORAGE_FREECOM is not set |
||||
# CONFIG_USB_STORAGE_JUMPSHOT is not set |
||||
# CONFIG_USB_STORAGE_KARMA is not set |
||||
# CONFIG_USB_STORAGE_SDDR09 is not set |
||||
# CONFIG_USB_STORAGE_SDDR55 is not set |
||||
# CONFIG_USB_STORAGE_USBAT is not set |
||||
# CONFIG_USB_UEAGLEATM is not set |
||||
CONFIG_VECTORS_BASE=0xffff0000 |
||||
# CONFIG_VGASTATE is not set |
||||
# CONFIG_VGA_CONSOLE is not set |
||||
# CONFIG_VIDEO_DEV is not set |
||||
CONFIG_VT=y |
||||
CONFIG_VT_CONSOLE=y |
||||
# CONFIG_VT_HW_CONSOLE_BINDING is not set |
||||
# CONFIG_W1 is not set |
||||
# CONFIG_WATCHDOG is not set |
||||
# CONFIG_WLAN_80211 is not set |
||||
# CONFIG_XIP_KERNEL is not set |
||||
CONFIG_ZBOOT_ROM_BSS=0 |
||||
CONFIG_ZBOOT_ROM_TEXT=0 |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,229 @@ |
||||
--- linux-2.6.25.10.n/arch/arm/mach-at91/Kconfig 2008-07-04 13:07:01.000000000 +0200
|
||||
+++ linux-2.6.25.10/arch/arm/mach-at91/Kconfig 2008-07-03 13:44:35.000000000 +0200
|
||||
@@ -151,6 +151,12 @@
|
||||
help
|
||||
Select this if you are using Toptech's TT9200 board.
|
||||
|
||||
+config MACH_VLINK
|
||||
+ bool "Figment Design Labs VersaLink"
|
||||
+ depends on ARCH_AT91RM9200
|
||||
+ help
|
||||
+ Select this if you are using FDL's VersaLink board
|
||||
+
|
||||
endif
|
||||
|
||||
# ----------------------------------------------------------
|
||||
--- linux-2.6.25.10.n/arch/arm/mach-at91/Makefile 2008-07-04 13:05:05.000000000 +0200
|
||||
+++ linux-2.6.25.10/arch/arm/mach-at91/Makefile 2008-07-03 13:44:35.000000000 +0200
|
||||
@@ -29,6 +29,7 @@
|
||||
obj-$(CONFIG_MACH_ATEB9200) += board-eb9200.o
|
||||
obj-$(CONFIG_MACH_KAFA) += board-kafa.o
|
||||
obj-$(CONFIG_MACH_CHUB) += board-chub.o
|
||||
+obj-$(CONFIG_MACH_VLINK) += board-vlink.o
|
||||
obj-$(CONFIG_MACH_PICOTUX2XX) += board-picotux200.o
|
||||
obj-$(CONFIG_MACH_HOMEMATIC) += board-homematic.o
|
||||
obj-$(CONFIG_MACH_ECBAT91) += board-ecbat91.o
|
||||
--- linux-2.6.25.10.n/arch/arm/mach-at91/board-vlink.c 2008-07-04 13:06:19.000000000 +0200
|
||||
+++ linux-2.6.25.10/arch/arm/mach-at91/board-vlink.c 2008-07-04 12:45:48.000000000 +0200
|
||||
@@ -0,0 +1,201 @@
|
||||
+/*
|
||||
+ * linux/arch/arm/mach-at91/board-vlink.c
|
||||
+ *
|
||||
+ * Copyright (C) 2005 SAN People
|
||||
+ * Copyright (C) 2006,2007 Guthrie Consulting
|
||||
+ *
|
||||
+ *
|
||||
+ * 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/init.h>
|
||||
+#include <linux/mm.h>
|
||||
+#include <linux/module.h>
|
||||
+#include <linux/platform_device.h>
|
||||
+#include <linux/spi/spi.h>
|
||||
+#include <linux/mtd/physmap.h>
|
||||
+
|
||||
+#include <asm/hardware.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 <asm/arch/board.h>
|
||||
+#include <asm/arch/gpio.h>
|
||||
+#include <asm/arch/at91rm9200_mc.h>
|
||||
+
|
||||
+#include "generic.h"
|
||||
+
|
||||
+
|
||||
+static void __init vlink_map_io(void)
|
||||
+{
|
||||
+ /* Initialize processor: 18.432 MHz crystal */
|
||||
+ at91rm9200_initialize(18432000, AT91RM9200_PQFP);
|
||||
+
|
||||
+ /* Setup the LEDs */
|
||||
+ at91_init_leds(AT91_PIN_PC14, AT91_PIN_PC15);
|
||||
+
|
||||
+ /* Setup serial ports */
|
||||
+
|
||||
+ /* DBGU on ttyS0. (RX and TX only) */
|
||||
+ at91_register_uart(0, 0, 0);
|
||||
+
|
||||
+ /* USART1 on ttyS1. (Rx, Tx, CTS, RTS, DSR, DTR, DCD, RI) */
|
||||
+ at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS
|
||||
+ | ATMEL_UART_RTS | ATMEL_UART_DSR | ATMEL_UART_DTR
|
||||
+ | ATMEL_UART_DCD | ATMEL_UART_RI);
|
||||
+
|
||||
+ /* USART0 on ttys2. (Rx, Tx, CTS, RTS, DTR, DCD, RI) */
|
||||
+ at91_register_uart(AT91RM9200_ID_US0, 2, ATMEL_UART_CTS
|
||||
+ | ATMEL_UART_RTS | ATMEL_UART_DTR | ATMEL_UART_DCD | ATMEL_UART_RI);
|
||||
+
|
||||
+ /* USART3 on ttyS3. (Rx, Tx, CTS, RTS, DTR, DCD, RI) */
|
||||
+ at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_CTS
|
||||
+ | ATMEL_UART_RTS | ATMEL_UART_DTR | ATMEL_UART_DCD | ATMEL_UART_RI);
|
||||
+
|
||||
+ /* USART2 on ttyS4. (Rx and Tx only) */
|
||||
+ at91_register_uart(AT91RM9200_ID_US2, 4, 0);
|
||||
+
|
||||
+ /* Console on ttyS0 (ie DBGU) */
|
||||
+ at91_set_serial_console(0);
|
||||
+}
|
||||
+
|
||||
+static void __init vlink_init_irq(void)
|
||||
+{
|
||||
+ at91rm9200_init_interrupts(NULL);
|
||||
+}
|
||||
+
|
||||
+static struct at91_eth_data __initdata vlink_eth_data = {
|
||||
+ .phy_irq_pin = AT91_PIN_PC4,
|
||||
+ .is_rmii = 1,
|
||||
+};
|
||||
+
|
||||
+static struct at91_usbh_data __initdata vlink_usbh_data = {
|
||||
+ .ports = 1,
|
||||
+};
|
||||
+
|
||||
+/*
|
||||
+static struct at91_udc_data __initdata vlink_udc_data = {
|
||||
+ .vbus_pin = AT91_PIN_PD4,
|
||||
+ .pullup_pin = AT91_PIN_PD5,
|
||||
+};
|
||||
+*/
|
||||
+
|
||||
+static struct at91_mmc_data __initdata vlink_mmc_data = {
|
||||
+// .det_pin = AT91_PIN_PB27,
|
||||
+ .slot_b = 0,
|
||||
+ .wire4 = 1,
|
||||
+// .wp_pin = AT91_PIN_PA17,
|
||||
+};
|
||||
+
|
||||
+static struct spi_board_info vlink_spi_devices[] = {
|
||||
+ { /* DataFlash chip */
|
||||
+ .modalias = "mtd_dataflash",
|
||||
+ .chip_select = 0,
|
||||
+ .max_speed_hz = 15 * 1000 * 1000,
|
||||
+ },
|
||||
+#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||
+ { /* DataFlash card */
|
||||
+ .modalias = "mtd_dataflash",
|
||||
+ .chip_select = 3,
|
||||
+ .max_speed_hz = 15 * 1000 * 1000,
|
||||
+ },
|
||||
+#endif
|
||||
+};
|
||||
+
|
||||
+/*static struct at91_gpio_led vlink_leds[] = {
|
||||
+ {
|
||||
+ .name = "led0",
|
||||
+ .gpio = AT91_PIN_PC14,
|
||||
+ .trigger = "heartbeat",
|
||||
+ },
|
||||
+ {
|
||||
+ .name = "led1",
|
||||
+ .gpio = AT91_PIN_PC15,
|
||||
+ .trigger = "timer",
|
||||
+ }
|
||||
+};
|
||||
+*/
|
||||
+
|
||||
+static void __init vlink_board_init(void)
|
||||
+{
|
||||
+ /* Serial */
|
||||
+ at91_add_device_serial();
|
||||
+ /* Ethernet */
|
||||
+ at91_add_device_eth(&vlink_eth_data);
|
||||
+ /* USB Host */
|
||||
+ at91_add_device_usbh(&vlink_usbh_data);
|
||||
+ /* USB Device */
|
||||
+// at91_add_device_udc(&vlink_udc_data);
|
||||
+// at91_set_multi_drive(vlink_udc_data.pullup_pin, 1); /* pullup_pin is connected to reset */
|
||||
+ /* I2C */
|
||||
+// at91_add_device_i2c();
|
||||
+ /* SPI */
|
||||
+ at91_add_device_spi(vlink_spi_devices, ARRAY_SIZE(vlink_spi_devices));
|
||||
+#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||
+ /* DataFlash card */
|
||||
+// at91_set_gpio_output(AT91_PIN_PB22, 0);
|
||||
+#else
|
||||
+ /* MMC */
|
||||
+// at91_set_gpio_output(AT91_PIN_PB22, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */
|
||||
+ at91_add_device_mmc(0, &vlink_mmc_data);
|
||||
+#endif
|
||||
+ /* LEDs */
|
||||
+// at91_gpio_leds(vlink_leds, ARRAY_SIZE(vlink_leds));
|
||||
+
|
||||
+/* Other LED's */
|
||||
+ at91_set_gpio_output(AT91_PIN_PC7, 1); // LED FRONT AP1
|
||||
+ at91_set_gpio_output(AT91_PIN_PC8, 1); // LED FRONT BP1
|
||||
+ at91_set_gpio_output(AT91_PIN_PB14, 1); // LED BACK AP1
|
||||
+ at91_set_gpio_output(AT91_PIN_PB15, 1); // LED BACK BP1
|
||||
+ at91_set_gpio_output(AT91_PIN_PB16, 1); // LED BACK AP2
|
||||
+ at91_set_gpio_output(AT91_PIN_PB17, 1); // LED BACK BP2
|
||||
+
|
||||
+/* SIM Cards */
|
||||
+ at91_set_gpio_output(AT91_PIN_PB9, 1); // ENBSC3
|
||||
+ at91_set_gpio_output(AT91_PIN_PB10, 1); // ENBSC2
|
||||
+ at91_set_gpio_output(AT91_PIN_PB11, 1); // ENBSC1
|
||||
+
|
||||
+/* GSM Module Control */
|
||||
+ at91_set_gpio_output(AT91_PIN_PB12, 1); // GSMONOFF
|
||||
+
|
||||
+/* Test jig presence detection */
|
||||
+ at91_set_gpio_input(AT91_PIN_PB8, 1); // JIGPRESENT
|
||||
+
|
||||
+/* Power indicator */
|
||||
+ at91_set_gpio_input(AT91_PIN_PB22, 1); // PWR_IND
|
||||
+
|
||||
+/* USB Device control */
|
||||
+ at91_set_gpio_input(AT91_PIN_PB27, 1); // UDB_CNX
|
||||
+ at91_set_gpio_output(AT91_PIN_PB28, 1); // UDB_PUP
|
||||
+ at91_set_multi_drive(AT91_PIN_PB28, 1); // Set to multi-drive
|
||||
+
|
||||
+}
|
||||
+
|
||||
+MACHINE_START(VLINK, "FDL VersaLink")
|
||||
+ /* Maintainer: Guthrie Consulting */
|
||||
+ .phys_io = AT91_BASE_SYS,
|
||||
+ .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc,
|
||||
+ .boot_params = AT91_SDRAM_BASE + 0x100,
|
||||
+ .timer = &at91rm9200_timer,
|
||||
+ .map_io = vlink_map_io,
|
||||
+ .init_irq = vlink_init_irq,
|
||||
+ .init_machine = vlink_board_init,
|
||||
+MACHINE_END
|
@ -0,0 +1,42 @@ |
||||
Index: linux-2.6.22.19/drivers/mtd/devices/at91_dataflash.c
|
||||
===================================================================
|
||||
--- linux-2.6.22.19.orig/drivers/mtd/devices/at91_dataflash.c
|
||||
+++ linux-2.6.22.19/drivers/mtd/devices/at91_dataflash.c
|
||||
@@ -175,7 +175,7 @@ static struct mtd_partition static_parti
|
||||
};
|
||||
#endif
|
||||
|
||||
-static const char *part_probes[] = { "cmdlinepart", NULL, };
|
||||
+static const char *part_probes[] = { "cmdlinepart", "at91part", NULL, };
|
||||
|
||||
#endif
|
||||
|
||||
Index: linux-2.6.22.19/drivers/mtd/Kconfig
|
||||
===================================================================
|
||||
--- linux-2.6.22.19.orig/drivers/mtd/Kconfig
|
||||
+++ linux-2.6.22.19/drivers/mtd/Kconfig
|
||||
@@ -168,6 +168,12 @@ config MTD_AFS_PARTS
|
||||
the partition map from the children of the flash node,
|
||||
as described in Documentation/powerpc/booting-without-of.txt.
|
||||
|
||||
+config MTD_AT91_PARTS
|
||||
+ tristate "Atmel AT91 partitioning support"
|
||||
+ depends on MTD_PARTITIONS && ARCH_AT91RM9200 && AT91_SPI
|
||||
+ ---help---
|
||||
+ Atmel AT91 partitioning support
|
||||
+
|
||||
comment "User Modules And Translation Layers"
|
||||
|
||||
config MTD_CHAR
|
||||
Index: linux-2.6.22.19/drivers/mtd/Makefile
|
||||
===================================================================
|
||||
--- linux-2.6.22.19.orig/drivers/mtd/Makefile
|
||||
+++ linux-2.6.22.19/drivers/mtd/Makefile
|
||||
@@ -12,6 +12,7 @@ obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o
|
||||
obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
|
||||
obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
|
||||
obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
|
||||
+obj-$(CONFIG_MTD_AT91_PARTS) += at91part.o
|
||||
|
||||
# 'Users' - code which presents functionality to userspace.
|
||||
obj-$(CONFIG_MTD_CHAR) += mtdchar.o
|
@ -0,0 +1,161 @@ |
||||
--- linux-2.6.25.10.old/drivers/serial/atmel_serial.c 2008-07-04 14:21:12.000000000 +0200
|
||||
+++ linux-2.6.25.10/drivers/serial/atmel_serial.c 2008-07-04 14:55:37.000000000 +0200
|
||||
@@ -214,6 +214,34 @@
|
||||
at91_set_gpio_value(AT91_PIN_PA21, 0);
|
||||
else
|
||||
at91_set_gpio_value(AT91_PIN_PA21, 1);
|
||||
+
|
||||
+ /*
|
||||
+ * FDL VersaLink adds GPIOS to provide full modem
|
||||
+ * control on USART 0 - Drive DTR and RI pins manually
|
||||
+ */
|
||||
+ if (mctrl & TIOCM_DTR)
|
||||
+ at91_set_gpio_value(AT91_PIN_PB6, 0);
|
||||
+ else
|
||||
+ at91_set_gpio_value(AT91_PIN_PB6, 1);
|
||||
+ if (mctrl & TIOCM_RI)
|
||||
+ at91_set_gpio_value(AT91_PIN_PB7, 0);
|
||||
+ else
|
||||
+ at91_set_gpio_value(AT91_PIN_PB7, 1);
|
||||
+ }
|
||||
+
|
||||
+ /*
|
||||
+ * FDL VersaLink adds GPIOS to provide full modem control on
|
||||
+ * USART 3 - Drive DTR and RI pins manually
|
||||
+ */
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US3) {
|
||||
+ if (mctrl & TIOCM_DTR)
|
||||
+ at91_set_gpio_value(AT91_PIN_PB29, 0);
|
||||
+ else
|
||||
+ at91_set_gpio_value(AT91_PIN_PB29, 1);
|
||||
+ if (mctrl & TIOCM_RI)
|
||||
+ at91_set_gpio_value(AT91_PIN_PB2, 0);
|
||||
+ else
|
||||
+ at91_set_gpio_value(AT91_PIN_PB2, 1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -251,8 +279,10 @@
|
||||
/*
|
||||
* The control signals are active low.
|
||||
*/
|
||||
- if (!(status & ATMEL_US_DCD))
|
||||
- ret |= TIOCM_CD;
|
||||
+
|
||||
+ if (!(port->mapbase == AT91RM9200_BASE_US0 || port->mapbase == AT91RM9200_BASE_US3))
|
||||
+ if (!(status & ATMEL_US_DCD))
|
||||
+ ret |= TIOCM_CD;
|
||||
if (!(status & ATMEL_US_CTS))
|
||||
ret |= TIOCM_CTS;
|
||||
if (!(status & ATMEL_US_DSR))
|
||||
@@ -260,6 +290,16 @@
|
||||
if (!(status & ATMEL_US_RI))
|
||||
ret |= TIOCM_RI;
|
||||
|
||||
+ /*
|
||||
+ * Read the GPIO's for the FDL VersaLink special case
|
||||
+ */
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US0)
|
||||
+ if (!(at91_get_gpio_value(AT91_PIN_PA19)))
|
||||
+ ret |= TIOCM_CD;
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US3)
|
||||
+ if (!(at91_get_gpio_value(AT91_PIN_PA24)))
|
||||
+ ret |= TIOCM_CD;
|
||||
+
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -453,6 +493,34 @@
|
||||
}
|
||||
|
||||
/*
|
||||
+ * USART0 DCD Interrupt handler
|
||||
+ */
|
||||
+
|
||||
+static irqreturn_t atmel_u0_DCD_interrupt(int irq, void *dev_id)
|
||||
+{
|
||||
+ struct uart_port *port = dev_id;
|
||||
+ int status = at91_get_gpio_value(irq);
|
||||
+
|
||||
+ uart_handle_dcd_change(port, !(status));
|
||||
+
|
||||
+ return IRQ_HANDLED;
|
||||
+}
|
||||
+
|
||||
+/*
|
||||
+ * USART3 DCD Interrupt handler
|
||||
+ */
|
||||
+
|
||||
+static irqreturn_t atmel_u3_DCD_interrupt(int irq, void *dev_id)
|
||||
+{
|
||||
+ struct uart_port *port = dev_id;
|
||||
+ int status = at91_get_gpio_value(irq);
|
||||
+
|
||||
+ uart_handle_dcd_change(port, !(status));
|
||||
+
|
||||
+ return IRQ_HANDLED;
|
||||
+}
|
||||
+
|
||||
+/*
|
||||
* receive interrupt handler.
|
||||
*/
|
||||
static void
|
||||
@@ -815,6 +883,23 @@
|
||||
return retval;
|
||||
}
|
||||
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US0) {
|
||||
+ retval = request_irq(AT91_PIN_PA19, atmel_u0_DCD_interrupt, 0, "atmel_serial", port);
|
||||
+ if (retval) {
|
||||
+ printk("atmel_serial: atmel_startup - Can't get u0DCD irq\n");
|
||||
+ free_irq(port->irq, port);
|
||||
+ return retval;
|
||||
+ }
|
||||
+ }
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US3) {
|
||||
+ retval = request_irq(AT91_PIN_PA24, atmel_u3_DCD_interrupt, 0, "atmel_serial", port);
|
||||
+ if (retval) {
|
||||
+ printk("atmel_serial: atmel_startup - Can't get u3DCD irq\n");
|
||||
+ free_irq(port->irq, port);
|
||||
+ return retval;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
/*
|
||||
* Initialize DMA (if necessary)
|
||||
*/
|
||||
@@ -834,6 +919,10 @@
|
||||
kfree(atmel_port->pdc_rx[0].buf);
|
||||
}
|
||||
free_irq(port->irq, port);
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US0)
|
||||
+ free_irq(AT91_PIN_PA19, port);
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US3)
|
||||
+ free_irq(AT91_PIN_PA24, port);
|
||||
return -ENOMEM;
|
||||
}
|
||||
pdc->dma_addr = dma_map_single(port->dev,
|
||||
@@ -873,7 +962,11 @@
|
||||
retval = atmel_open_hook(port);
|
||||
if (retval) {
|
||||
free_irq(port->irq, port);
|
||||
- return retval;
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US0)
|
||||
+ free_irq(AT91_PIN_PA19, port);
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US3)
|
||||
+ free_irq(AT91_PIN_PA24, port);
|
||||
+ return retval;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -947,6 +1040,10 @@
|
||||
* Free the interrupt
|
||||
*/
|
||||
free_irq(port->irq, port);
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US0)
|
||||
+ free_irq(AT91_PIN_PA19, port);
|
||||
+ if (port->mapbase == AT91RM9200_BASE_US3)
|
||||
+ free_irq(AT91_PIN_PA24, port);
|
||||
|
||||
/*
|
||||
* If there is a specific "close" function (to unregister
|
@ -0,0 +1,34 @@ |
||||
--- linux-2.6.25.10.old/arch/arm/mach-at91/at91rm9200_devices.c 2008-07-04 15:04:13.000000000 +0200
|
||||
+++ linux-2.6.25.10/arch/arm/mach-at91/at91rm9200_devices.c 2008-07-04 15:11:44.000000000 +0200
|
||||
@@ -981,7 +981,15 @@
|
||||
* We need to drive the pin manually. Default is off (RTS is active low).
|
||||
*/
|
||||
at91_set_gpio_output(AT91_PIN_PA21, 1);
|
||||
- }
|
||||
+ }
|
||||
+ if (pins & ATMEL_UART_DTR)
|
||||
+ at91_set_gpio_output(AT91_PIN_PB6, 1); /* DTR0 */
|
||||
+ if (pins & ATMEL_UART_RI)
|
||||
+ at91_set_gpio_output(AT91_PIN_PB7, 1); /* RI0 */
|
||||
+ if (pins & ATMEL_UART_DCD) {
|
||||
+ at91_set_gpio_input(AT91_PIN_PA19, 1); /* DCD0 */
|
||||
+ at91_set_deglitch(AT91_PIN_PA19, 1);
|
||||
+ }
|
||||
}
|
||||
|
||||
static struct resource uart1_resources[] = {
|
||||
@@ -1119,6 +1127,14 @@
|
||||
at91_set_B_periph(AT91_PIN_PB1, 0); /* CTS3 */
|
||||
if (pins & ATMEL_UART_RTS)
|
||||
at91_set_B_periph(AT91_PIN_PB0, 0); /* RTS3 */
|
||||
+ if (pins & ATMEL_UART_DTR)
|
||||
+ at91_set_gpio_output(AT91_PIN_PB29, 1); /* DTR0 */
|
||||
+ if (pins & ATMEL_UART_RI)
|
||||
+ at91_set_gpio_output(AT91_PIN_PB2, 1); /* RI0 */
|
||||
+ if (pins & ATMEL_UART_DCD) {
|
||||
+ at91_set_gpio_input(AT91_PIN_PA24, 1); /* DCD0 */
|
||||
+ at91_set_deglitch(AT91_PIN_PA24, 1);
|
||||
+ }
|
||||
}
|
||||
|
||||
static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */
|
@ -0,0 +1,30 @@ |
||||
Index: linux-2.6.22.19/drivers/net/arm/at91_ether.c
|
||||
===================================================================
|
||||
--- linux-2.6.22.19.orig/drivers/net/arm/at91_ether.c
|
||||
+++ linux-2.6.22.19/drivers/net/arm/at91_ether.c
|
||||
@@ -146,6 +146,7 @@ static void update_linkspeed(struct net_
|
||||
struct at91_private *lp = netdev_priv(dev);
|
||||
unsigned int bmsr, bmcr, lpa, mac_cfg;
|
||||
unsigned int speed, duplex;
|
||||
+ unsigned long timeout = jiffies + HZ;
|
||||
|
||||
if (!mii_link_ok(&lp->mii)) { /* no link */
|
||||
netif_carrier_off(dev);
|
||||
@@ -158,8 +159,15 @@ static void update_linkspeed(struct net_
|
||||
read_phy(lp->phy_address, MII_BMSR, &bmsr);
|
||||
read_phy(lp->phy_address, MII_BMCR, &bmcr);
|
||||
if (bmcr & BMCR_ANENABLE) { /* AutoNegotiation is enabled */
|
||||
- if (!(bmsr & BMSR_ANEGCOMPLETE))
|
||||
- return; /* Do nothing - another interrupt generated when negotiation complete */
|
||||
+ while (!(bmsr & BMSR_ANEGCOMPLETE)) {
|
||||
+ if (time_after(jiffies, timeout)) {
|
||||
+ printk("at91_ether: Auto-negotiate timeout\n");
|
||||
+ return;
|
||||
+ }
|
||||
+ read_phy(lp->phy_address, MII_BMSR, &bmsr);
|
||||
+ read_phy(lp->phy_address, MII_BMCR, &bmcr);
|
||||
+ cpu_relax();
|
||||
+ }
|
||||
|
||||
read_phy(lp->phy_address, MII_LPA, &lpa);
|
||||
if ((lpa & LPA_100FULL) || (lpa & LPA_100HALF)) speed = SPEED_100;
|
@ -0,0 +1,20 @@ |
||||
Index: linux-2.6.22.19/drivers/mtd/devices/at91_dataflash.c
|
||||
===================================================================
|
||||
--- linux-2.6.22.19.orig/drivers/mtd/devices/at91_dataflash.c
|
||||
+++ linux-2.6.22.19/drivers/mtd/devices/at91_dataflash.c
|
||||
@@ -163,12 +163,12 @@ static struct mtd_partition static_parti
|
||||
.mask_flags = MTD_WRITEABLE, /* read-only */
|
||||
},
|
||||
{
|
||||
- .name = "kernel",
|
||||
+ .name = "knlroot",
|
||||
.offset = MTDPART_OFS_NXTBLK,
|
||||
- .size = 5 * 32 * 8 * 1056, /* 5 sectors */
|
||||
+ .size = 0x320400,
|
||||
},
|
||||
{
|
||||
- .name = "filesystem",
|
||||
+ .name = "jffs2",
|
||||
.offset = MTDPART_OFS_NXTBLK,
|
||||
.size = MTDPART_SIZ_FULL, /* rest = 26 sectors */
|
||||
}
|
Loading…
Reference in new issue