/* * SuperH Mobile LCDC Framebuffer * * Copyright (c) 2008 Magnus Damm * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */#include<linux/kernel.h>#include<linux/init.h>#include<linux/delay.h>#include<linux/mm.h>#include<linux/clk.h>#include<linux/pm_runtime.h>#include<linux/platform_device.h>#include<linux/dma-mapping.h>#include<linux/interrupt.h>#include<linux/vmalloc.h>#include<linux/ioctl.h>#include<linux/slab.h>#include<linux/console.h>#include<linux/backlight.h>#include<linux/gpio.h>#include<video/sh_mobile_lcdc.h>#include<asm/atomic.h>#include"sh_mobile_lcdcfb.h"#define SIDE_B_OFFSET 0x1000#define MIRROR_OFFSET 0x2000/* shared registers */#define _LDDCKR 0x410#define _LDDCKSTPR 0x414#define _LDINTR 0x468#define _LDSR 0x46c#define _LDCNT1R 0x470#define _LDCNT2R 0x474#define _LDRCNTR 0x478#define _LDDDSR 0x47c#define _LDDWD0R 0x800#define _LDDRDR 0x840#define _LDDWAR 0x900#define _LDDRAR 0x904/* shared registers and their order for context save/restore */staticintlcdc_shared_regs[]=