mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
49cbe78637
"""The Marvell® PXA168 processor is the first in a family of application processors targeted at mass market opportunities in computing and consumer devices. It balances high computing and multimedia performance with low power consumption to support extended battery life, and includes a wealth of integrated peripherals to reduce overall BOM cost .... """ See http://www.marvell.com/featured/pxa168.jsp for more information. 1. Marvell Mohawk core is a hybrid of xscale3 and its own ARM core, there are many enhancements like instructions for flushing the whole D-cache, and so on 2. Clock reuses Russell's common clkdev, and added the basic support for UART1/2. 3. Devices are a bit different from the 'mach-pxa' way, the platform devices are now dynamically allocated only when necessary (i.e. when pxa_register_device() is called). Description for each device are stored in an array of 'struct pxa_device_desc'. Now that: a. this array of device description is marked with __initdata and can be freed up system is fully up b. which means board code has to add all needed devices early in his initializing function c. platform specific data can now be marked as __initdata since they are allocated and copied by platform_device_add_data() 4. only the basic UART1/2/3 are added, more devices will come later. Signed-off-by: Jason Chagas <chagas@marvell.com> Signed-off-by: Eric Miao <eric.miao@marvell.com>
38 lines
834 B
C
38 lines
834 B
C
/*
|
|
* linux/arch/arm/mach-mmp/common.c
|
|
*
|
|
* Code common to PXA168 processor lines
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/kernel.h>
|
|
|
|
#include <asm/page.h>
|
|
#include <asm/mach/map.h>
|
|
#include <mach/addr-map.h>
|
|
|
|
#include "common.h"
|
|
|
|
static struct map_desc standard_io_desc[] __initdata = {
|
|
{
|
|
.pfn = __phys_to_pfn(APB_PHYS_BASE),
|
|
.virtual = APB_VIRT_BASE,
|
|
.length = APB_PHYS_SIZE,
|
|
.type = MT_DEVICE,
|
|
}, {
|
|
.pfn = __phys_to_pfn(AXI_PHYS_BASE),
|
|
.virtual = AXI_VIRT_BASE,
|
|
.length = AXI_PHYS_SIZE,
|
|
.type = MT_DEVICE,
|
|
},
|
|
};
|
|
|
|
void __init pxa_map_io(void)
|
|
{
|
|
iotable_init(standard_io_desc, ARRAY_SIZE(standard_io_desc));
|
|
}
|