Path: blob/master/arch/arm/mach-clps711x/fortunet.c
10817 views
/*1* linux/arch/arm/mach-clps711x/fortunet.c2*3* Derived from linux/arch/arm/mach-integrator/arch.c4*5* Copyright (C) 2000 Deep Blue Solutions Ltd6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA20*/21#include <linux/types.h>22#include <linux/init.h>23#include <linux/initrd.h>2425#include <mach/hardware.h>26#include <asm/setup.h>27#include <asm/mach-types.h>2829#include <asm/mach/arch.h>3031#include <asm/memory.h>3233#include "common.h"3435struct meminfo memmap = {36.nr_banks = 1,37.bank = {38{39.start = 0xC0000000,40.size = 0x01000000,41},42},43};4445typedef struct tag_IMAGE_PARAMS46{47int ramdisk_ok;48int ramdisk_address;49int ramdisk_size;50int ram_size;51int extra_param_type;52int extra_param_ptr;53int command_line;54} IMAGE_PARAMS;5556#define IMAGE_PARAMS_PHYS 0xC01F00005758static void __init59fortunet_fixup(struct machine_desc *desc, struct tag *tags,60char **cmdline, struct meminfo *mi)61{62IMAGE_PARAMS *ip = phys_to_virt(IMAGE_PARAMS_PHYS);63*cmdline = phys_to_virt(ip->command_line);64#ifdef CONFIG_BLK_DEV_INITRD65if(ip->ramdisk_ok)66{67initrd_start = __phys_to_virt(ip->ramdisk_address);68initrd_end = initrd_start + ip->ramdisk_size;69}70#endif71memmap.bank[0].size = ip->ram_size;72*mi = memmap;73}7475MACHINE_START(FORTUNET, "ARM-FortuNet")76/* Maintainer: FortuNet Inc. */77.boot_params = 0x00000000,78.fixup = fortunet_fixup,79.map_io = clps711x_map_io,80.init_irq = clps711x_init_irq,81.timer = &clps711x_timer,82MACHINE_END838485