Path: blob/master/arch/arm/mach-clps711x/edb7211-arch.c
10817 views
/*1* linux/arch/arm/mach-clps711x/arch-edb7211.c2*3* Copyright (C) 2000, 2001 Blue Mug, Inc. All Rights Reserved.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/19#include <linux/init.h>20#include <linux/memblock.h>21#include <linux/types.h>22#include <linux/string.h>2324#include <asm/setup.h>25#include <asm/mach-types.h>26#include <asm/mach/arch.h>2728#include "common.h"2930extern void edb7211_map_io(void);3132/* Reserve screen memory region at the start of main system memory. */33static void __init edb7211_reserve(void)34{35memblock_reserve(PHYS_OFFSET, 0x00020000);36}3738static void __init39fixup_edb7211(struct machine_desc *desc, struct tag *tags,40char **cmdline, struct meminfo *mi)41{42/*43* Bank start addresses are not present in the information44* passed in from the boot loader. We could potentially45* detect them, but instead we hard-code them.46*47* Banks sizes _are_ present in the param block, but we're48* not using that information yet.49*/50mi->bank[0].start = 0xc0000000;51mi->bank[0].size = 8*1024*1024;52mi->bank[1].start = 0xc1000000;53mi->bank[1].size = 8*1024*1024;54mi->nr_banks = 2;55}5657MACHINE_START(EDB7211, "CL-EDB7211 (EP7211 eval board)")58/* Maintainer: Jon McClintock */59.boot_params = 0xc0020100, /* 0xc0000000 - 0xc001ffff can be video RAM */60.fixup = fixup_edb7211,61.map_io = edb7211_map_io,62.reserve = edb7211_reserve,63.init_irq = clps711x_init_irq,64.timer = &clps711x_timer,65MACHINE_END666768