Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / sh / cchips / voyagergx / setup.c
blob139ca88ac9e6217709783ca84f629cb3975c4ec6
1 /*
2 * arch/sh/cchips/voyagergx/setup.c
4 * Setup routines for VoyagerGX cchip.
6 * Copyright (C) 2003 Lineo uSolutions, Inc.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
13 #include <linux/init.h>
14 #include <linux/module.h>
15 #include <asm/io.h>
16 #include <asm/rts7751r2d/voyagergx_reg.h>
18 static int __init setup_voyagergx(void)
20 unsigned long val;
22 val = inl(DRAM_CTRL);
23 val |= (DRAM_CTRL_CPU_COLUMN_SIZE_256 |
24 DRAM_CTRL_CPU_ACTIVE_PRECHARGE |
25 DRAM_CTRL_CPU_RESET |
26 DRAM_CTRL_REFRESH_COMMAND |
27 DRAM_CTRL_BLOCK_WRITE_TIME |
28 DRAM_CTRL_BLOCK_WRITE_PRECHARGE |
29 DRAM_CTRL_ACTIVE_PRECHARGE |
30 DRAM_CTRL_RESET |
31 DRAM_CTRL_REMAIN_ACTIVE);
32 outl(val, DRAM_CTRL);
34 return 0;
37 module_init(setup_voyagergx);