-
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: 319599 b: refs/heads/master c: d9831a4 h: refs/heads/master i: 319597: 028beb1 319595: c8f3ca5 319591: 1aa10cd 319583: 0d99552 v: v3
- Loading branch information
Florian Fainelli
authored and
Ralf Baechle
committed
Jul 23, 2012
1 parent
932e1f0
commit 652aae9
Showing
7 changed files
with
96 additions
and
54 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: 6c2be5cf1d4e70e98d995f9c403b5fbe7b5f2a80 | ||
refs/heads/master: d9831a41e3409ae60e0cac353272d8ae4996b442 |
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,69 @@ | ||
/* | ||
* Common code used by all Alchemy develboards. | ||
* | ||
* Extracted from files which had this to say: | ||
* | ||
* Copyright 2000, 2008 MontaVista Software Inc. | ||
* Author: MontaVista Software, Inc. <source@mvista.com> | ||
* | ||
* 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. | ||
* | ||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
* 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., | ||
* 675 Mass Ave, Cambridge, MA 02139, USA. | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <linux/kernel.h> | ||
#include <asm/bootinfo.h> | ||
#include <asm/mach-au1x00/au1000.h> | ||
#include <prom.h> | ||
|
||
#if defined(CONFIG_MIPS_DB1000) || \ | ||
defined(CONFIG_MIPS_PB1100) || \ | ||
defined(CONFIG_MIPS_PB1500) | ||
#define ALCHEMY_BOARD_DEFAULT_MEMSIZE 0x04000000 | ||
|
||
#else /* Au1550/Au1200-based develboards */ | ||
#define ALCHEMY_BOARD_DEFAULT_MEMSIZE 0x08000000 | ||
#endif | ||
|
||
void __init prom_init(void) | ||
{ | ||
unsigned char *memsize_str; | ||
unsigned long memsize; | ||
|
||
prom_argc = (int)fw_arg0; | ||
prom_argv = (char **)fw_arg1; | ||
prom_envp = (char **)fw_arg2; | ||
|
||
prom_init_cmdline(); | ||
memsize_str = prom_getenv("memsize"); | ||
if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize)) | ||
memsize = ALCHEMY_BOARD_DEFAULT_MEMSIZE; | ||
|
||
add_memory_region(0, memsize, BOOT_MEM_RAM); | ||
} | ||
|
||
void prom_putchar(unsigned char c) | ||
{ | ||
#ifdef CONFIG_MIPS_DB1300 | ||
alchemy_uart_putchar(AU1300_UART2_PHYS_ADDR, c); | ||
#else | ||
alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c); | ||
#endif | ||
} |
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