-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'avr32-arch' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/hskinnemoen/avr32-2.6 * 'avr32-arch' of git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6: avr32: add hardware handshake support to atmel_serial avr32: add RTS/CTS/CLK pin selection for the USARTs Add RTC support for Merisc boards avr32: at32ap700x: setup DMA for AC97C in the machine code avr32: at32ap700x: setup DMA for ABDAC in the machine code Add Merisc board support avr32: use gpio_is_valid() to check USBA vbus_pin I/O line atmel-usba-udc: use gpio_is_valid() to check vbus_pin I/O line avr32: fix timing LCD parameters for EVKLCD10X boards avr32: use GPIO line PB15 on EVKLCD10x boards for backlight avr32: configure MCI detect and write protect pins for EVKLCD10x boards avr32: set pin mask to alternative 18 bpp for EVKLCD10x boards avr32: add pin mask for 18-bit color on the LCD controller avr32: fix 15-bit LCDC pin mask to use MSB lines
- Loading branch information
Showing
23 changed files
with
2,049 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Merisc customization | ||
|
||
if BOARD_MERISC | ||
|
||
endif # BOARD_MERISC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj-y += setup.o flash.o display.o merisc_sysfs.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Display setup code for the Merisc board | ||
* | ||
* Copyright (C) 2008 Martinsson Elektronik AB | ||
* | ||
* 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 <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/fb.h> | ||
#include <video/atmel_lcdc.h> | ||
#include <asm/setup.h> | ||
#include <mach/board.h> | ||
#include "merisc.h" | ||
|
||
static struct fb_videomode merisc_fb_videomode[] = { | ||
{ | ||
.refresh = 44, | ||
.xres = 640, | ||
.yres = 480, | ||
.left_margin = 96, | ||
.right_margin = 96, | ||
.upper_margin = 34, | ||
.lower_margin = 8, | ||
.hsync_len = 64, | ||
.vsync_len = 64, | ||
.name = "640x480 @ 44", | ||
.pixclock = KHZ2PICOS(25180), | ||
.sync = 0, | ||
.vmode = FB_VMODE_NONINTERLACED, | ||
}, | ||
}; | ||
|
||
static struct fb_monspecs merisc_fb_monspecs = { | ||
.manufacturer = "Kyo", | ||
.monitor = "TCG075VG2AD", | ||
.modedb = merisc_fb_videomode, | ||
.modedb_len = ARRAY_SIZE(merisc_fb_videomode), | ||
.hfmin = 30000, | ||
.hfmax = 33333, | ||
.vfmin = 60, | ||
.vfmax = 90, | ||
.dclkmax = 30000000, | ||
}; | ||
|
||
struct atmel_lcdfb_info merisc_lcdc_data = { | ||
.default_bpp = 24, | ||
.default_dmacon = ATMEL_LCDC_DMAEN | ATMEL_LCDC_DMA2DEN, | ||
.default_lcdcon2 = (ATMEL_LCDC_DISTYPE_TFT | ||
| ATMEL_LCDC_CLKMOD_ALWAYSACTIVE | ||
| ATMEL_LCDC_MEMOR_BIG), | ||
.default_monspecs = &merisc_fb_monspecs, | ||
.guard_time = 2, | ||
}; | ||
|
||
static int __init merisc_display_init(void) | ||
{ | ||
at32_add_device_lcdc(0, &merisc_lcdc_data, fbmem_start, | ||
fbmem_size, 0); | ||
|
||
return 0; | ||
} | ||
device_initcall(merisc_display_init); |
Oops, something went wrong.