prom.c (cb881f5e154c5bdeb4a440adc0b475e117c5dfc1) prom.c (e1ccbb65499b8ba1d90ae2134d56888c95e504bd)
1/*
2 * Copyright (C) 2004 Florian Schirmer <jolt@tuxbox.org>
3 * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net>
4 * Copyright (C) 2010-2012 Hauke Mehrtens <hauke@hauke-m.de>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your

--- 14 unchanged lines hidden (view full) ---

23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 675 Mass Ave, Cambridge, MA 02139, USA.
25 */
26
27#include <linux/init.h>
28#include <linux/types.h>
29#include <linux/kernel.h>
30#include <linux/spinlock.h>
1/*
2 * Copyright (C) 2004 Florian Schirmer <jolt@tuxbox.org>
3 * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net>
4 * Copyright (C) 2010-2012 Hauke Mehrtens <hauke@hauke-m.de>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your

--- 14 unchanged lines hidden (view full) ---

23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 675 Mass Ave, Cambridge, MA 02139, USA.
25 */
26
27#include <linux/init.h>
28#include <linux/types.h>
29#include <linux/kernel.h>
30#include <linux/spinlock.h>
31#include <linux/ssb/ssb_driver_chipcommon.h>
32#include <linux/ssb/ssb_regs.h>
31#include <linux/smp.h>
32#include <asm/bootinfo.h>
33#include <bcm47xx.h>
34#include <bcm47xx_board.h>
35
36
37static char bcm47xx_system_type[20] = "Broadcom BCM47XX";
38

--- 50 unchanged lines hidden (view full) ---

89 * space.
90 */
91 if (c->cputype == CPU_74K && (mem == (128 << 20)))
92 mem -= 0x1000;
93
94 add_memory_region(0, mem, BOOT_MEM_RAM);
95}
96
33#include <linux/smp.h>
34#include <asm/bootinfo.h>
35#include <bcm47xx.h>
36#include <bcm47xx_board.h>
37
38
39static char bcm47xx_system_type[20] = "Broadcom BCM47XX";
40

--- 50 unchanged lines hidden (view full) ---

91 * space.
92 */
93 if (c->cputype == CPU_74K && (mem == (128 << 20)))
94 mem -= 0x1000;
95
96 add_memory_region(0, mem, BOOT_MEM_RAM);
97}
98
99/*
100 * This is the first serial on the chip common core, it is at this position
101 * for sb (ssb) and ai (bcma) bus.
102 */
103#define BCM47XX_SERIAL_ADDR (SSB_ENUM_BASE + SSB_CHIPCO_UART0_DATA)
104
97void __init prom_init(void)
98{
99 prom_init_mem();
105void __init prom_init(void)
106{
107 prom_init_mem();
108 setup_8250_early_printk_port(CKSEG1ADDR(BCM47XX_SERIAL_ADDR), 0, 0);
100}
101
102void __init prom_free_prom_memory(void)
103{
104}
109}
110
111void __init prom_free_prom_memory(void)
112{
113}