aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_ram_console.h
blob: edd75e8d484e293edf609c9f74c0dd68411598fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * OMAP ram console support
 *
 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
 * Author: Huzefa Kankroliwala <huzefank@ti.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.

 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
 * kind, whether express or implied; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __OMAP_RAM_CONSOLE_H
#define __OMAP_RAM_CONSOLE_H

/* Board files use the following if they are ok with 512M size defaults */
#define OMAP_RAM_CONSOLE_START_DEFAULT	(PLAT_PHYS_OFFSET + SZ_512M)
#define OMAP_RAM_CONSOLE_SIZE_DEFAULT	SZ_2M

#ifdef CONFIG_OMAP_RAM_CONSOLE
extern int omap_ram_console_init(phys_addr_t phy_addr, size_t size);
#else
static inline int omap_ram_console_init(phys_addr_t phy_addr, size_t size)
{
	return 0;
}
#endif /* CONFIG_OMAP_RAM_CONSOLE */

#endif