|
@@ -377,3 +377,78 @@ void __init sa11x0_init_late(void)
|
|
|
* 0xffff2000-0xffff2fff: Minicache copy_user_page area
|
|
|
*
|
|
|
* Below 0xe8000000 is reserved for vm allocation.
|
|
|
+ *
|
|
|
+ * The machine specific code must provide the extra mapping beside the
|
|
|
+ * default mapping provided here.
|
|
|
+ */
|
|
|
+
|
|
|
+static struct map_desc standard_io_desc[] __initdata = {
|
|
|
+ { /* PCM */
|
|
|
+ .virtual = 0xf8000000,
|
|
|
+ .pfn = __phys_to_pfn(0x80000000),
|
|
|
+ .length = 0x00100000,
|
|
|
+ .type = MT_DEVICE
|
|
|
+ }, { /* SCM */
|
|
|
+ .virtual = 0xfa000000,
|
|
|
+ .pfn = __phys_to_pfn(0x90000000),
|
|
|
+ .length = 0x00100000,
|
|
|
+ .type = MT_DEVICE
|
|
|
+ }, { /* MER */
|
|
|
+ .virtual = 0xfc000000,
|
|
|
+ .pfn = __phys_to_pfn(0xa0000000),
|
|
|
+ .length = 0x00100000,
|
|
|
+ .type = MT_DEVICE
|
|
|
+ }, { /* LCD + DMA */
|
|
|
+ .virtual = 0xfe000000,
|
|
|
+ .pfn = __phys_to_pfn(0xb0000000),
|
|
|
+ .length = 0x00200000,
|
|
|
+ .type = MT_DEVICE
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+void __init sa1100_map_io(void)
|
|
|
+{
|
|
|
+ iotable_init(standard_io_desc, ARRAY_SIZE(standard_io_desc));
|
|
|
+}
|
|
|
+
|
|
|
+/*
|
|
|
+ * Disable the memory bus request/grant signals on the SA1110 to
|
|
|
+ * ensure that we don't receive spurious memory requests. We set
|
|
|
+ * the MBGNT signal false to ensure the SA1111 doesn't own the
|
|
|
+ * SDRAM bus.
|
|
|
+ */
|
|
|
+void sa1110_mb_disable(void)
|
|
|
+{
|
|
|
+ unsigned long flags;
|
|
|
+
|
|
|
+ local_irq_save(flags);
|
|
|
+
|
|
|
+ PGSR &= ~GPIO_MBGNT;
|
|
|
+ GPCR = GPIO_MBGNT;
|
|
|
+ GPDR = (GPDR & ~GPIO_MBREQ) | GPIO_MBGNT;
|
|
|
+
|
|
|
+ GAFR &= ~(GPIO_MBGNT | GPIO_MBREQ);
|
|
|
+
|
|
|
+ local_irq_restore(flags);
|
|
|
+}
|
|
|
+
|
|
|
+/*
|
|
|
+ * If the system is going to use the SA-1111 DMA engines, set up
|
|
|
+ * the memory bus request/grant pins.
|
|
|
+ */
|
|
|
+void sa1110_mb_enable(void)
|
|
|
+{
|
|
|
+ unsigned long flags;
|
|
|
+
|
|
|
+ local_irq_save(flags);
|
|
|
+
|
|
|
+ PGSR &= ~GPIO_MBGNT;
|
|
|
+ GPCR = GPIO_MBGNT;
|
|
|
+ GPDR = (GPDR & ~GPIO_MBREQ) | GPIO_MBGNT;
|
|
|
+
|
|
|
+ GAFR |= (GPIO_MBGNT | GPIO_MBREQ);
|
|
|
+ TUCR |= TUCR_MR;
|
|
|
+
|
|
|
+ local_irq_restore(flags);
|
|
|
+}
|
|
|
+
|