summaryrefslogtreecommitdiff
path: root/cpu/arm926ejs/kirkwood/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm926ejs/kirkwood/cpu.c')
-rw-r--r--cpu/arm926ejs/kirkwood/cpu.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpu/arm926ejs/kirkwood/cpu.c b/cpu/arm926ejs/kirkwood/cpu.c
index 194ba1c..795a739 100644
--- a/cpu/arm926ejs/kirkwood/cpu.c
+++ b/cpu/arm926ejs/kirkwood/cpu.c
@@ -74,7 +74,7 @@ unsigned char get_random_hex(void)
* 64 KByte granularity (e.g., a value of 0x00FF specifies 256 = 16 MByte).
* NOTE: A value of 0x0 specifies 64-KByte size.
*/
-static unsigned int kw_winctrl_calcsize(unsigned int sizeval)
+unsigned int kw_winctrl_calcsize(unsigned int sizeval)
{
int i;
unsigned int j = 0;
@@ -87,10 +87,6 @@ static unsigned int kw_winctrl_calcsize(unsigned int sizeval)
return (0x0000ffff & j);
}
-/* prepares data to be loaded in win_Ctrl register */
-#define KWCPU_WIN_CTRL_DATA(size, target, attr, en) (en | (target << 4) \
- | (attr << 8) | (kw_winctrl_calcsize(size) << 16))
-
/*
* kw_config_adr_windows - Configure address Windows
*