Path: blob/master/arch/sh/include/mach-common/mach/magicpanelr2.h
15162 views
/*1* include/asm-sh/magicpanelr2.h2*3* Copyright (C) 2007 Markus Brunner, Mark Jonas4*5* I/O addresses and bitmasks for Magic Panel Release 2 board6*7* This file is subject to the terms and conditions of the GNU General Public8* License. See the file "COPYING" in the main directory of this archive9* for more details.10*/1112#ifndef __ASM_SH_MAGICPANELR2_H13#define __ASM_SH_MAGICPANELR2_H1415#include <asm/gpio.h>1617#define __IO_PREFIX mpr218#include <asm/io_generic.h>192021#define SETBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) | mask, reg)22#define SETBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) | mask, reg)23#define SETBITS_OUTL(mask, reg) __raw_writel(__raw_readl(reg) | mask, reg)24#define CLRBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) & ~mask, reg)25#define CLRBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) & ~mask, reg)26#define CLRBITS_OUTL(mask, reg) __raw_writel(__raw_readl(reg) & ~mask, reg)272829#define PA_LED PORT_PADR /* LED */303132/* BSC */33#define CMNCR 0xA4FD0000UL34#define CS0BCR 0xA4FD0004UL35#define CS2BCR 0xA4FD0008UL36#define CS3BCR 0xA4FD000CUL37#define CS4BCR 0xA4FD0010UL38#define CS5ABCR 0xA4FD0014UL39#define CS5BBCR 0xA4FD0018UL40#define CS6ABCR 0xA4FD001CUL41#define CS6BBCR 0xA4FD0020UL42#define CS0WCR 0xA4FD0024UL43#define CS2WCR 0xA4FD0028UL44#define CS3WCR 0xA4FD002CUL45#define CS4WCR 0xA4FD0030UL46#define CS5AWCR 0xA4FD0034UL47#define CS5BWCR 0xA4FD0038UL48#define CS6AWCR 0xA4FD003CUL49#define CS6BWCR 0xA4FD0040UL505152/* usb */5354#define PORT_UTRCTL 0xA405012CUL55#define PORT_UCLKCR_W 0xA40A0008UL5657#define INTC_ICR0 0xA414FEE0UL58#define INTC_ICR1 0xA4140010UL59#define INTC_ICR2 0xA4140012UL6061/* MTD */6263#define MPR2_MTD_BOOTLOADER_SIZE 0x00060000UL64#define MPR2_MTD_KERNEL_SIZE 0x00200000UL6566#endif /* __ASM_SH_MAGICPANELR2_H */676869