From d654ba1e08697c9eeb822ff219c83176314266e3 Mon Sep 17 00:00:00 2001 From: Haavard Skinnemoen Date: Thu, 23 Oct 2008 15:24:10 +0200 Subject: [PATCH] --- yaml --- r: 117569 b: refs/heads/master c: d9214556b11a8d18ff588e60824c12041d30f791 h: refs/heads/master i: 117567: 309c637e95e404b2abb779ea9daad4b1817b3b29 v: v3 --- [refs] | 2 +- trunk/arch/avr32/Kconfig | 12 +- trunk/arch/avr32/Makefile | 2 + trunk/arch/avr32/boards/atngw100/Kconfig | 35 + trunk/arch/avr32/boards/atngw100/Makefile | 3 +- trunk/arch/avr32/boards/atngw100/evklcd10x.c | 155 ++ trunk/arch/avr32/boards/atngw100/setup.c | 5 + trunk/arch/avr32/boards/favr-32/Kconfig | 22 + trunk/arch/avr32/boards/favr-32/Makefile | 1 + trunk/arch/avr32/boards/favr-32/flash.c | 98 ++ trunk/arch/avr32/boards/favr-32/setup.c | 352 +++++ trunk/arch/avr32/boards/mimc200/Makefile | 1 + trunk/arch/avr32/boards/mimc200/flash.c | 143 ++ trunk/arch/avr32/boards/mimc200/fram.c | 80 ++ trunk/arch/avr32/boards/mimc200/setup.c | 237 ++++ .../configs/atngw100_evklcd100_defconfig | 1264 +++++++++++++++++ .../configs/atngw100_evklcd101_defconfig | 1264 +++++++++++++++++ trunk/arch/avr32/configs/favr-32_defconfig | 1235 ++++++++++++++++ trunk/arch/avr32/configs/mimc200_defconfig | 1109 +++++++++++++++ trunk/arch/avr32/mach-at32ap/at32ap700x.c | 4 + 20 files changed, 6020 insertions(+), 4 deletions(-) create mode 100644 trunk/arch/avr32/boards/atngw100/Kconfig create mode 100644 trunk/arch/avr32/boards/atngw100/evklcd10x.c create mode 100644 trunk/arch/avr32/boards/favr-32/Kconfig create mode 100644 trunk/arch/avr32/boards/favr-32/Makefile create mode 100644 trunk/arch/avr32/boards/favr-32/flash.c create mode 100644 trunk/arch/avr32/boards/favr-32/setup.c create mode 100644 trunk/arch/avr32/boards/mimc200/Makefile create mode 100644 trunk/arch/avr32/boards/mimc200/flash.c create mode 100644 trunk/arch/avr32/boards/mimc200/fram.c create mode 100644 trunk/arch/avr32/boards/mimc200/setup.c create mode 100644 trunk/arch/avr32/configs/atngw100_evklcd100_defconfig create mode 100644 trunk/arch/avr32/configs/atngw100_evklcd101_defconfig create mode 100644 trunk/arch/avr32/configs/favr-32_defconfig create mode 100644 trunk/arch/avr32/configs/mimc200_defconfig diff --git a/[refs] b/[refs] index c88d822b2b0a..b09eb4a25d7e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e82c6106b04b85879d802bbbeaed30d9b10a92e2 +refs/heads/master: d9214556b11a8d18ff588e60824c12041d30f791 diff --git a/trunk/arch/avr32/Kconfig b/trunk/arch/avr32/Kconfig index 33a5b2969eb4..26eca87f6735 100644 --- a/trunk/arch/avr32/Kconfig +++ b/trunk/arch/avr32/Kconfig @@ -121,11 +121,19 @@ config BOARD_ATSTK1000 config BOARD_ATNGW100 bool "ATNGW100 Network Gateway" select CPU_AT32AP7000 + +config BOARD_FAVR_32 + bool "Favr-32 LCD-board" + select CPU_AT32AP7000 + +config BOARD_MIMC200 + bool "MIMC200 CPU board" + select CPU_AT32AP7000 endchoice -if BOARD_ATSTK1000 source "arch/avr32/boards/atstk1000/Kconfig" -endif +source "arch/avr32/boards/atngw100/Kconfig" +source "arch/avr32/boards/favr-32/Kconfig" choice prompt "Boot loader type" diff --git a/trunk/arch/avr32/Makefile b/trunk/arch/avr32/Makefile index c9e1f0b47fd3..b088e103e753 100644 --- a/trunk/arch/avr32/Makefile +++ b/trunk/arch/avr32/Makefile @@ -33,6 +33,8 @@ head-y += arch/avr32/kernel/head.o core-y += $(machdirs) core-$(CONFIG_BOARD_ATSTK1000) += arch/avr32/boards/atstk1000/ core-$(CONFIG_BOARD_ATNGW100) += arch/avr32/boards/atngw100/ +core-$(CONFIG_BOARD_FAVR_32) += arch/avr32/boards/favr-32/ +core-$(CONFIG_BOARD_MIMC200) += arch/avr32/boards/mimc200/ core-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/ core-y += arch/avr32/kernel/ core-y += arch/avr32/mm/ diff --git a/trunk/arch/avr32/boards/atngw100/Kconfig b/trunk/arch/avr32/boards/atngw100/Kconfig new file mode 100644 index 000000000000..b3f99477bbeb --- /dev/null +++ b/trunk/arch/avr32/boards/atngw100/Kconfig @@ -0,0 +1,35 @@ +# NGW100 customization + +if BOARD_ATNGW100 + +config BOARD_ATNGW100_EVKLCD10X + bool "Add support for EVKLCD10X addon board" + help + This enables support for the EVKLCD100 (QVGA) or EVKLCD101 (VGA) + addon board for the NGW100. By enabling this the LCD controller and + AC97 controller is added as platform devices. + + This choice disables the detect pin and the write-protect pin for the + MCI platform device, since it conflicts with the LCD platform device. + The MCI pins can be reenabled by editing the "add device function" but + this may break the setup for other displays that use these pins. + + Choose 'Y' here if you have a EVKLCD100/101 connected to the NGW100. + +choice + prompt "LCD panel resolution on EVKLCD10X" + depends on BOARD_ATNGW100_EVKLCD10X + default BOARD_ATNGW100_EVKLCD10X_VGA + +config BOARD_ATNGW100_EVKLCD10X_QVGA + bool "QVGA (320x240)" + +config BOARD_ATNGW100_EVKLCD10X_VGA + bool "VGA (640x480)" + +config BOARD_ATNGW100_EVKLCD10X_POW_QVGA + bool "Powertip QVGA (320x240)" + +endchoice + +endif # BOARD_ATNGW100 diff --git a/trunk/arch/avr32/boards/atngw100/Makefile b/trunk/arch/avr32/boards/atngw100/Makefile index c740aa116755..6376f5322e4d 100644 --- a/trunk/arch/avr32/boards/atngw100/Makefile +++ b/trunk/arch/avr32/boards/atngw100/Makefile @@ -1 +1,2 @@ -obj-y += setup.o flash.o +obj-y += setup.o flash.o +obj-$(CONFIG_BOARD_ATNGW100_EVKLCD10X) += evklcd10x.o diff --git a/trunk/arch/avr32/boards/atngw100/evklcd10x.c b/trunk/arch/avr32/boards/atngw100/evklcd10x.c new file mode 100644 index 000000000000..8140b22b3461 --- /dev/null +++ b/trunk/arch/avr32/boards/atngw100/evklcd10x.c @@ -0,0 +1,155 @@ +/* + * Board-specific setup code for the ATEVKLCD10X addon board to the ATNGW100 + * Network Gateway + * + * Copyright (C) 2008 Atmel Corporation + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + */ + +#include +#include +#include +#include + +#include