14 #define pr_fmt(fmt) "SPEAr300: " fmt
21 #include <mach/generic.h>
22 #include <mach/spear.h>
25 #define SPEAR300_TELECOM_BASE UL(0x50000000)
28 #define SPEAR300_INT_ENB_MASK_REG 0x54
29 #define SPEAR300_INT_STS_MASK_REG 0x58
30 #define SPEAR300_IT_PERS_S_IRQ_MASK (1 << 0)
31 #define SPEAR300_IT_CHANGE_S_IRQ_MASK (1 << 1)
32 #define SPEAR300_I2S_IRQ_MASK (1 << 2)
33 #define SPEAR300_TDM_IRQ_MASK (1 << 3)
34 #define SPEAR300_CAMERA_L_IRQ_MASK (1 << 4)
35 #define SPEAR300_CAMERA_F_IRQ_MASK (1 << 5)
36 #define SPEAR300_CAMERA_V_IRQ_MASK (1 << 6)
37 #define SPEAR300_KEYBOARD_IRQ_MASK (1 << 7)
38 #define SPEAR300_GPIO1_IRQ_MASK (1 << 8)
40 #define SPEAR300_SHIRQ_RAS1_MASK 0x1FF
42 #define SPEAR300_SOC_CONFIG_BASE UL(0x99000000)
47 #define SPEAR300_VIRQ_IT_PERS_S (SPEAR3XX_VIRQ_START + 0)
48 #define SPEAR300_VIRQ_IT_CHANGE_S (SPEAR3XX_VIRQ_START + 1)
49 #define SPEAR300_VIRQ_I2S (SPEAR3XX_VIRQ_START + 2)
50 #define SPEAR300_VIRQ_TDM (SPEAR3XX_VIRQ_START + 3)
51 #define SPEAR300_VIRQ_CAMERA_L (SPEAR3XX_VIRQ_START + 4)
52 #define SPEAR300_VIRQ_CAMERA_F (SPEAR3XX_VIRQ_START + 5)
53 #define SPEAR300_VIRQ_CAMERA_V (SPEAR3XX_VIRQ_START + 6)
54 #define SPEAR300_VIRQ_KEYBOARD (SPEAR3XX_VIRQ_START + 7)
55 #define SPEAR300_VIRQ_GPIO1 (SPEAR3XX_VIRQ_START + 8)
58 #define SPEAR300_IRQ_CLCD SPEAR3XX_IRQ_GEN_RAS_3
61 #define SPEAR300_IRQ_SDHCI SPEAR3XX_IRQ_INTRCOMM_RAS_ARM
106 .dev_config = shirq_ras1_config,
119 .bus_id =
"uart0_rx",
125 .bus_id =
"uart0_tx",
173 .bus_id =
"from_jpeg",
278 static struct of_dev_auxdata spear300_auxdata_lookup[]
__initdata = {
286 static void __init spear300_dt_init(
void)
294 spear300_auxdata_lookup,
NULL);
298 if (shirq_ras1.
regs.base) {
301 pr_err(
"Error registering Shared IRQ\n");
305 static const char *
const spear300_dt_board_compat[] = {
311 static void __init spear300_map_io(
void)
317 .map_io = spear300_map_io,
321 .init_machine = spear300_dt_init,
323 .dt_compat = spear300_dt_board_compat,