18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * arch/arm/mach-sa1100/include/mach/nanoengine.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * This file contains the hardware specific definitions for nanoEngine.
68c2ecf20Sopenharmony_ci * Only include this file from SA1100-specific files.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Copyright (C) 2010 Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_NANOENGINE_H
118c2ecf20Sopenharmony_ci#define __ASM_ARCH_NANOENGINE_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <mach/irqs.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define GPIO_PC_READY0	11 /* ready for socket 0 (active high)*/
168c2ecf20Sopenharmony_ci#define GPIO_PC_READY1	12 /* ready for socket 1 (active high) */
178c2ecf20Sopenharmony_ci#define GPIO_PC_CD0	13 /* detect for socket 0 (active low) */
188c2ecf20Sopenharmony_ci#define GPIO_PC_CD1	14 /* detect for socket 1 (active low) */
198c2ecf20Sopenharmony_ci#define GPIO_PC_RESET0	15 /* reset socket 0 */
208c2ecf20Sopenharmony_ci#define GPIO_PC_RESET1	16 /* reset socket 1 */
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define NANOENGINE_IRQ_GPIO_PCI		IRQ_GPIO0
238c2ecf20Sopenharmony_ci#define NANOENGINE_IRQ_GPIO_PC_READY0	IRQ_GPIO11
248c2ecf20Sopenharmony_ci#define NANOENGINE_IRQ_GPIO_PC_READY1	IRQ_GPIO12
258c2ecf20Sopenharmony_ci#define NANOENGINE_IRQ_GPIO_PC_CD0	IRQ_GPIO13
268c2ecf20Sopenharmony_ci#define NANOENGINE_IRQ_GPIO_PC_CD1	IRQ_GPIO14
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci/*
298c2ecf20Sopenharmony_ci * nanoEngine Memory Map:
308c2ecf20Sopenharmony_ci *
318c2ecf20Sopenharmony_ci * 0000.0000 - 003F.0000 -   4 MB Flash
328c2ecf20Sopenharmony_ci * C000.0000 - C1FF.FFFF -  32 MB SDRAM
338c2ecf20Sopenharmony_ci * 1860.0000 - 186F.FFFF -   1 MB Internal PCI Memory Read/Write
348c2ecf20Sopenharmony_ci * 18A1.0000 - 18A1.FFFF -  64 KB Internal PCI Config Space
358c2ecf20Sopenharmony_ci * 4000.0000 - 47FF.FFFF - 128 MB External Bus I/O - Multiplexed Mode
368c2ecf20Sopenharmony_ci * 4800.0000 - 4FFF.FFFF - 128 MB External Bus I/O - Non-Multiplexed Mode
378c2ecf20Sopenharmony_ci *
388c2ecf20Sopenharmony_ci */
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#define NANO_PCI_MEM_RW_PHYS		0x18600000
418c2ecf20Sopenharmony_ci#define NANO_PCI_MEM_RW_VIRT		0xf1000000
428c2ecf20Sopenharmony_ci#define NANO_PCI_MEM_RW_SIZE		SZ_1M
438c2ecf20Sopenharmony_ci#define NANO_PCI_CONFIG_SPACE_PHYS	0x18A10000
448c2ecf20Sopenharmony_ci#define NANO_PCI_CONFIG_SPACE_VIRT	0xf2000000
458c2ecf20Sopenharmony_ci#define NANO_PCI_CONFIG_SPACE_SIZE	SZ_64K
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci#endif
488c2ecf20Sopenharmony_ci
49