forked from torvalds/linux
-
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.
Adds PPC32 RIO support. Init code for the MPC85xx RIO ports and glue for the STx GP3 board to use it. Signed-off-by: Matt Porter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Matt Porter
authored and
Linus Torvalds
committed
Nov 7, 2005
1 parent
fa78cc5
commit 2b0c28d
Showing
10 changed files
with
1,109 additions
and
34 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* RapidIO PPC32 support | ||
* | ||
* Copyright 2005 MontaVista Software, Inc. | ||
* Matt Porter <[email protected]> | ||
* | ||
* 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/init.h> | ||
#include <linux/kernel.h> | ||
#include <linux/rio.h> | ||
|
||
#include <asm/rio.h> | ||
|
||
/** | ||
* platform_rio_init - Do platform specific RIO init | ||
* | ||
* Any platform specific initialization of RapdIO | ||
* hardware is done here as well as registration | ||
* of any active master ports in the system. | ||
*/ | ||
void __attribute__ ((weak)) | ||
platform_rio_init(void) | ||
{ | ||
printk(KERN_WARNING "RIO: No platform_rio_init() present\n"); | ||
} | ||
|
||
/** | ||
* ppc_rio_init - Do PPC32 RIO init | ||
* | ||
* Calls platform-specific RIO init code and then calls | ||
* rio_init_mports() to initialize any master ports that | ||
* have been registered with the RIO subsystem. | ||
*/ | ||
static int __init ppc_rio_init(void) | ||
{ | ||
printk(KERN_INFO "RIO: RapidIO init\n"); | ||
|
||
/* Platform specific initialization */ | ||
platform_rio_init(); | ||
|
||
/* Enumerate all registered ports */ | ||
rio_init_mports(); | ||
|
||
return 0; | ||
} | ||
|
||
subsys_initcall(ppc_rio_init); |
Oops, something went wrong.