diff options
author | Tian Fang <tfang@fb.com> | 2015-05-06 19:10:58 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2015-05-06 19:21:55 +0100 |
commit | 4dd5a046546948baaa21992dc9cb9aee5b416392 (patch) | |
tree | 950ad0cc0f627eafe152bbe64d41455692b48c9c /arch/arm/cpu/arm926ejs/aspeed/reset.c | |
parent | 62c175fbb8a0f9a926c88294ea9f7e88eb898f6c (diff) | |
download | u-boot-baserock/v2013.07+aspeed.tar.gz |
Add support for aspeed chipsbaserock/v2013.07+aspeed
Diffstat (limited to 'arch/arm/cpu/arm926ejs/aspeed/reset.c')
-rw-r--r-- | arch/arm/cpu/arm926ejs/aspeed/reset.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/aspeed/reset.c b/arch/arm/cpu/arm926ejs/aspeed/reset.c new file mode 100644 index 0000000000..e0a57f9db6 --- /dev/null +++ b/arch/arm/cpu/arm926ejs/aspeed/reset.c @@ -0,0 +1,24 @@ +/* + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#include <common.h> +#include <asm/io.h> + +#define AST_WDT_BASE 0x1e785000 +void reset_cpu(ulong addr) +{ + __raw_writel(0x10 , AST_WDT_BASE+0x04); + __raw_writel(0x4755, AST_WDT_BASE+0x08); + __raw_writel(0x3, AST_WDT_BASE+0x0c); + + while (1) + /*nothing*/; +} |