Path: blob/master/arch/sh/include/mach-common/mach/magicpanelr2.h
26495 views
/* SPDX-License-Identifier: GPL-2.01*2* include/asm-sh/magicpanelr2.h3*4* Copyright (C) 2007 Markus Brunner, Mark Jonas5*6* I/O addresses and bitmasks for Magic Panel Release 2 board7*/89#ifndef __ASM_SH_MAGICPANELR2_H10#define __ASM_SH_MAGICPANELR2_H1112#include <linux/gpio.h>1314#define __IO_PREFIX mpr215#include <asm/io_generic.h>161718#define SETBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) | mask, reg)19#define SETBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) | mask, reg)20#define SETBITS_OUTL(mask, reg) __raw_writel(__raw_readl(reg) | mask, reg)21#define CLRBITS_OUTB(mask, reg) __raw_writeb(__raw_readb(reg) & ~mask, reg)22#define CLRBITS_OUTW(mask, reg) __raw_writew(__raw_readw(reg) & ~mask, reg)23#define CLRBITS_OUTL(mask, reg) __raw_writel(__raw_readl(reg) & ~mask, reg)242526#define PA_LED PORT_PADR /* LED */272829/* BSC */30#define CMNCR 0xA4FD0000UL31#define CS0BCR 0xA4FD0004UL32#define CS2BCR 0xA4FD0008UL33#define CS3BCR 0xA4FD000CUL34#define CS4BCR 0xA4FD0010UL35#define CS5ABCR 0xA4FD0014UL36#define CS5BBCR 0xA4FD0018UL37#define CS6ABCR 0xA4FD001CUL38#define CS6BBCR 0xA4FD0020UL39#define CS0WCR 0xA4FD0024UL40#define CS2WCR 0xA4FD0028UL41#define CS3WCR 0xA4FD002CUL42#define CS4WCR 0xA4FD0030UL43#define CS5AWCR 0xA4FD0034UL44#define CS5BWCR 0xA4FD0038UL45#define CS6AWCR 0xA4FD003CUL46#define CS6BWCR 0xA4FD0040UL474849/* usb */5051#define PORT_UTRCTL 0xA405012CUL52#define PORT_UCLKCR_W 0xA40A0008UL5354#define INTC_ICR0 0xA414FEE0UL55#define INTC_ICR1 0xA4140010UL56#define INTC_ICR2 0xA4140012UL5758/* MTD */5960#define MPR2_MTD_BOOTLOADER_SIZE 0x00060000UL61#define MPR2_MTD_KERNEL_SIZE 0x00200000UL6263#endif /* __ASM_SH_MAGICPANELR2_H */646566