|
@@ -16,12 +16,25 @@
|
|
|
|
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/hardware/vic.h>
|
|
#include <asm/hardware/vic.h>
|
|
|
|
+#include <asm/mach/map.h>
|
|
|
|
|
|
#include <mach/map.h>
|
|
#include <mach/map.h>
|
|
#include <mach/picoxcell_soc.h>
|
|
#include <mach/picoxcell_soc.h>
|
|
|
|
|
|
#include "common.h"
|
|
#include "common.h"
|
|
|
|
|
|
|
|
+static struct map_desc io_map __initdata = {
|
|
|
|
+ .virtual = PHYS_TO_IO(PICOXCELL_PERIPH_BASE),
|
|
|
|
+ .pfn = __phys_to_pfn(PICOXCELL_PERIPH_BASE),
|
|
|
|
+ .length = PICOXCELL_PERIPH_LENGTH,
|
|
|
|
+ .type = MT_DEVICE,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static void __init picoxcell_map_io(void)
|
|
|
|
+{
|
|
|
|
+ iotable_init(&io_map, 1);
|
|
|
|
+}
|
|
|
|
+
|
|
static void __init picoxcell_init_machine(void)
|
|
static void __init picoxcell_init_machine(void)
|
|
{
|
|
{
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|