Path: blob/master/arch/mips/loongson/common/init.c
10819 views
/*1* Copyright (C) 2009 Lemote Inc.2* Author: Wu Zhangjin, [email protected]3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License as published by the6* Free Software Foundation; either version 2 of the License, or (at your7* option) any later version.8*/910#include <linux/bootmem.h>1112#include <loongson.h>1314/* Loongson CPU address windows config space base address */15unsigned long __maybe_unused _loongson_addrwincfg_base;1617void __init prom_init(void)18{19/* init base address of io space */20set_io_port_base((unsigned long)21ioremap(LOONGSON_PCIIO_BASE, LOONGSON_PCIIO_SIZE));2223#ifdef CONFIG_CPU_SUPPORTS_ADDRWINCFG24_loongson_addrwincfg_base = (unsigned long)25ioremap(LOONGSON_ADDRWINCFG_BASE, LOONGSON_ADDRWINCFG_SIZE);26#endif2728prom_init_cmdline();29prom_init_env();30prom_init_memory();3132/*init the uart base address */33prom_init_uart_base();34}3536void __init prom_free_prom_memory(void)37{38}394041