1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[adm5120] add preliminary support for 2.6.24

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10329 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2008-01-30 15:25:48 +00:00
parent 59dc59994c
commit 13ac16c77f
30 changed files with 1928 additions and 7 deletions

View File

@@ -18,8 +18,10 @@
#ifndef _ADM5120_SWITCH_H_
#define _ADM5120_SWITCH_H_
#define BIT(at) (1 << (at))
#define BITMASK(len) ((1 << (len))-1)
#ifndef BIT
# define BIT(at) (1 << (at))
#endif
#define BITMASK(len) (BIT(len)-1)
#define SW_READ_REG(r) __raw_readl( \
(void __iomem *)KSEG1ADDR(ADM5120_SWITCH_BASE) + r)