Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319597
b: refs/heads/master
c: 278bf05
h: refs/heads/master
i:
  319595: c8f3ca5
v: v3
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed Jul 23, 2012
1 parent 149ed3e commit 028beb1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 62 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e25f4f243db6495cf57c1fcb3a4c0311a92b203
refs/heads/master: 278bf05cf68a6e5e965c85217ddc1318d18fcbf7
2 changes: 1 addition & 1 deletion trunk/arch/mips/alchemy/devboards/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Alchemy Develboards
#

obj-y += prom.o bcsr.o platform.o
obj-y += bcsr.o platform.o
obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_MIPS_PB1100) += pb1100.o
obj-$(CONFIG_MIPS_PB1500) += pb1500.o
Expand Down
30 changes: 30 additions & 0 deletions trunk/arch/mips/alchemy/devboards/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,39 @@
#include <linux/platform_device.h>
#include <linux/pm.h>

#include <asm/bootinfo.h>
#include <asm/reboot.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-db1x00/bcsr.h>

#include <prom.h>

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 || kstrtoul(memsize_str, 0, &memsize))
memsize = 64 << 20; /* all devboards have at least 64MB RAM */

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
}


static struct platform_device db1x00_rtc_dev = {
.name = "rtc-au1xxx",
Expand Down
60 changes: 0 additions & 60 deletions trunk/arch/mips/alchemy/devboards/prom.c

This file was deleted.

0 comments on commit 028beb1

Please sign in to comment.