-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 22910 b: refs/heads/master c: 30f5933 h: refs/heads/master v: v3
- Loading branch information
Kumar Gala
authored and
Paul Mackerras
committed
Feb 7, 2006
1 parent
e0a7180
commit 1b8115b
Showing
6 changed files
with
72 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 4b10cfd40e3fa1c1663b9c9fa22260d41e669c6f | ||
refs/heads/master: 30f5933657d17fbbc743ce9522543ba50ce2e834 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# | ||
# Makefile for the PowerPC 83xx linux kernel. | ||
# | ||
obj-$(CONFIG_MPC834x_SYS) += mpc834x_sys.o pci.o | ||
obj-y := misc.o | ||
obj-$(CONFIG_PCI) += pci.o | ||
obj-$(CONFIG_MPC834x_SYS) += mpc834x_sys.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* misc setup functions for MPC83xx | ||
* | ||
* Maintainer: Kumar Gala <galak@kernel.crashing.org> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
*/ | ||
|
||
#include <linux/config.h> | ||
#include <linux/stddef.h> | ||
#include <linux/kernel.h> | ||
|
||
#include <asm/io.h> | ||
#include <asm/hw_irq.h> | ||
#include <sysdev/fsl_soc.h> | ||
|
||
#include "mpc83xx.h" | ||
|
||
void mpc83xx_restart(char *cmd) | ||
{ | ||
#define RST_OFFSET 0x00000900 | ||
#define RST_PROT_REG 0x00000018 | ||
#define RST_CTRL_REG 0x0000001c | ||
__be32 __iomem *reg; | ||
|
||
/* map reset register space */ | ||
reg = ioremap(get_immrbase() + 0x900, 0xff); | ||
|
||
local_irq_disable(); | ||
|
||
/* enable software reset "RSTE" */ | ||
out_be32(reg + (RST_PROT_REG >> 2), 0x52535445); | ||
|
||
/* set software hard reset */ | ||
out_be32(reg + (RST_CTRL_REG >> 2), 0x52535445); | ||
for (;;) ; | ||
} | ||
|
||
long __init mpc83xx_time_init(void) | ||
{ | ||
#define SPCR_OFFSET 0x00000110 | ||
#define SPCR_TBEN 0x00400000 | ||
__be32 __iomem *spcr = ioremap(get_immrbase() + SPCR_OFFSET, 4); | ||
__be32 tmp; | ||
|
||
tmp = in_be32(spcr); | ||
out_be32(spcr, tmp | SPCR_TBEN); | ||
|
||
iounmap(spcr); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters