blob: f1368b9a8ece777b038961b2001b04cd09f3454a [file] [log] [blame]
Saeed Bisharaedabd382009-08-06 15:12:43 +03001/*
2 * arch/arm/mach-dove/include/mach/hardware.h
3 *
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
7 */
8
9#ifndef __ASM_ARCH_HARDWARE_H
10#define __ASM_ARCH_HARDWARE_H
11
12#include "dove.h"
13
Saeed Bisharaedabd382009-08-06 15:12:43 +030014/* Macros below are required for compatibility with PXA AC'97 driver. */
15#define __REG(x) (*((volatile u32 *)((x) - DOVE_SB_REGS_PHYS_BASE + \
16 DOVE_SB_REGS_VIRT_BASE)))
17#define __PREG(x) (((u32)&(x)) - DOVE_SB_REGS_VIRT_BASE + \
18 DOVE_SB_REGS_PHYS_BASE)
19#endif