diff options
author | Ryan Mallon <ryan@bluewatersys.com> | 2011-05-20 03:34:21 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-20 17:34:24 -0400 |
commit | 61e72bca04be2dc11a637185f2bbe6dba32ecaf3 (patch) | |
tree | 997d0912e7f1483bdc913fae32e2c3b61481238e /arch/arm/mach-spear3xx/spear320.c | |
parent | f6558bf92aed978a81514131e408326f25046137 (diff) |
ARM: 6935/1: SPEAR3xx: Rename register/irq defines to remove naming conflicts
Prefix register and irq defintions to remove naming conflicts between
the three SPEAr3xx platforms.
Reviewed-by: Stanley Miao <stanley.miao@windriver.com>
Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-spear3xx/spear320.c')
-rw-r--r-- | arch/arm/mach-spear3xx/spear320.c | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/arch/arm/mach-spear3xx/spear320.c b/arch/arm/mach-spear3xx/spear320.c index fc4598a46f5e..ccb745b60106 100644 --- a/arch/arm/mach-spear3xx/spear320.c +++ b/arch/arm/mach-spear3xx/spear320.c | |||
@@ -387,123 +387,123 @@ struct pmx_driver pmx_driver = { | |||
387 | /* spear3xx shared irq */ | 387 | /* spear3xx shared irq */ |
388 | static struct shirq_dev_config shirq_ras1_config[] = { | 388 | static struct shirq_dev_config shirq_ras1_config[] = { |
389 | { | 389 | { |
390 | .virq = VIRQ_EMI, | 390 | .virq = SPEAR320_VIRQ_EMI, |
391 | .status_mask = EMI_IRQ_MASK, | 391 | .status_mask = SPEAR320_EMI_IRQ_MASK, |
392 | .clear_mask = EMI_IRQ_MASK, | 392 | .clear_mask = SPEAR320_EMI_IRQ_MASK, |
393 | }, { | 393 | }, { |
394 | .virq = VIRQ_CLCD, | 394 | .virq = SPEAR320_VIRQ_CLCD, |
395 | .status_mask = CLCD_IRQ_MASK, | 395 | .status_mask = SPEAR320_CLCD_IRQ_MASK, |
396 | .clear_mask = CLCD_IRQ_MASK, | 396 | .clear_mask = SPEAR320_CLCD_IRQ_MASK, |
397 | }, { | 397 | }, { |
398 | .virq = VIRQ_SPP, | 398 | .virq = SPEAR320_VIRQ_SPP, |
399 | .status_mask = SPP_IRQ_MASK, | 399 | .status_mask = SPEAR320_SPP_IRQ_MASK, |
400 | .clear_mask = SPP_IRQ_MASK, | 400 | .clear_mask = SPEAR320_SPP_IRQ_MASK, |
401 | }, | 401 | }, |
402 | }; | 402 | }; |
403 | 403 | ||
404 | static struct spear_shirq shirq_ras1 = { | 404 | static struct spear_shirq shirq_ras1 = { |
405 | .irq = IRQ_GEN_RAS_1, | 405 | .irq = SPEAR3XX_IRQ_GEN_RAS_1, |
406 | .dev_config = shirq_ras1_config, | 406 | .dev_config = shirq_ras1_config, |
407 | .dev_count = ARRAY_SIZE(shirq_ras1_config), | 407 | .dev_count = ARRAY_SIZE(shirq_ras1_config), |
408 | .regs = { | 408 | .regs = { |
409 | .enb_reg = -1, | 409 | .enb_reg = -1, |
410 | .status_reg = INT_STS_MASK_REG, | 410 | .status_reg = SPEAR320_INT_STS_MASK_REG, |
411 | .status_reg_mask = SHIRQ_RAS1_MASK, | 411 | .status_reg_mask = SPEAR320_SHIRQ_RAS1_MASK, |
412 | .clear_reg = INT_CLR_MASK_REG, | 412 | .clear_reg = SPEAR320_INT_CLR_MASK_REG, |
413 | .reset_to_clear = 1, | 413 | .reset_to_clear = 1, |
414 | }, | 414 | }, |
415 | }; | 415 | }; |
416 | 416 | ||
417 | static struct shirq_dev_config shirq_ras3_config[] = { | 417 | static struct shirq_dev_config shirq_ras3_config[] = { |
418 | { | 418 | { |
419 | .virq = VIRQ_PLGPIO, | 419 | .virq = SPEAR320_VIRQ_PLGPIO, |
420 | .enb_mask = GPIO_IRQ_MASK, | 420 | .enb_mask = SPEAR320_GPIO_IRQ_MASK, |
421 | .status_mask = GPIO_IRQ_MASK, | 421 | .status_mask = SPEAR320_GPIO_IRQ_MASK, |
422 | .clear_mask = GPIO_IRQ_MASK, | 422 | .clear_mask = SPEAR320_GPIO_IRQ_MASK, |
423 | }, { | 423 | }, { |
424 | .virq = VIRQ_I2S_PLAY, | 424 | .virq = SPEAR320_VIRQ_I2S_PLAY, |
425 | .enb_mask = I2S_PLAY_IRQ_MASK, | 425 | .enb_mask = SPEAR320_I2S_PLAY_IRQ_MASK, |
426 | .status_mask = I2S_PLAY_IRQ_MASK, | 426 | .status_mask = SPEAR320_I2S_PLAY_IRQ_MASK, |
427 | .clear_mask = I2S_PLAY_IRQ_MASK, | 427 | .clear_mask = SPEAR320_I2S_PLAY_IRQ_MASK, |
428 | }, { | 428 | }, { |
429 | .virq = VIRQ_I2S_REC, | 429 | .virq = SPEAR320_VIRQ_I2S_REC, |
430 | .enb_mask = I2S_REC_IRQ_MASK, | 430 | .enb_mask = SPEAR320_I2S_REC_IRQ_MASK, |
431 | .status_mask = I2S_REC_IRQ_MASK, | 431 | .status_mask = SPEAR320_I2S_REC_IRQ_MASK, |
432 | .clear_mask = I2S_REC_IRQ_MASK, | 432 | .clear_mask = SPEAR320_I2S_REC_IRQ_MASK, |
433 | }, | 433 | }, |
434 | }; | 434 | }; |
435 | 435 | ||
436 | static struct spear_shirq shirq_ras3 = { | 436 | static struct spear_shirq shirq_ras3 = { |
437 | .irq = IRQ_GEN_RAS_3, | 437 | .irq = SPEAR3XX_IRQ_GEN_RAS_3, |
438 | .dev_config = shirq_ras3_config, | 438 | .dev_config = shirq_ras3_config, |
439 | .dev_count = ARRAY_SIZE(shirq_ras3_config), | 439 | .dev_count = ARRAY_SIZE(shirq_ras3_config), |
440 | .regs = { | 440 | .regs = { |
441 | .enb_reg = INT_ENB_MASK_REG, | 441 | .enb_reg = SPEAR320_INT_ENB_MASK_REG, |
442 | .reset_to_enb = 1, | 442 | .reset_to_enb = 1, |
443 | .status_reg = INT_STS_MASK_REG, | 443 | .status_reg = SPEAR320_INT_STS_MASK_REG, |
444 | .status_reg_mask = SHIRQ_RAS3_MASK, | 444 | .status_reg_mask = SPEAR320_SHIRQ_RAS3_MASK, |
445 | .clear_reg = INT_CLR_MASK_REG, | 445 | .clear_reg = SPEAR320_INT_CLR_MASK_REG, |
446 | .reset_to_clear = 1, | 446 | .reset_to_clear = 1, |
447 | }, | 447 | }, |
448 | }; | 448 | }; |
449 | 449 | ||
450 | static struct shirq_dev_config shirq_intrcomm_ras_config[] = { | 450 | static struct shirq_dev_config shirq_intrcomm_ras_config[] = { |
451 | { | 451 | { |
452 | .virq = VIRQ_CANU, | 452 | .virq = SPEAR320_VIRQ_CANU, |
453 | .status_mask = CAN_U_IRQ_MASK, | 453 | .status_mask = SPEAR320_CAN_U_IRQ_MASK, |
454 | .clear_mask = CAN_U_IRQ_MASK, | 454 | .clear_mask = SPEAR320_CAN_U_IRQ_MASK, |
455 | }, { | 455 | }, { |
456 | .virq = VIRQ_CANL, | 456 | .virq = SPEAR320_VIRQ_CANL, |
457 | .status_mask = CAN_L_IRQ_MASK, | 457 | .status_mask = SPEAR320_CAN_L_IRQ_MASK, |
458 | .clear_mask = CAN_L_IRQ_MASK, | 458 | .clear_mask = SPEAR320_CAN_L_IRQ_MASK, |
459 | }, { | 459 | }, { |
460 | .virq = VIRQ_UART1, | 460 | .virq = SPEAR320_VIRQ_UART1, |
461 | .status_mask = UART1_IRQ_MASK, | 461 | .status_mask = SPEAR320_UART1_IRQ_MASK, |
462 | .clear_mask = UART1_IRQ_MASK, | 462 | .clear_mask = SPEAR320_UART1_IRQ_MASK, |
463 | }, { | 463 | }, { |
464 | .virq = VIRQ_UART2, | 464 | .virq = SPEAR320_VIRQ_UART2, |
465 | .status_mask = UART2_IRQ_MASK, | 465 | .status_mask = SPEAR320_UART2_IRQ_MASK, |
466 | .clear_mask = UART2_IRQ_MASK, | 466 | .clear_mask = SPEAR320_UART2_IRQ_MASK, |
467 | }, { | 467 | }, { |
468 | .virq = VIRQ_SSP1, | 468 | .virq = SPEAR320_VIRQ_SSP1, |
469 | .status_mask = SSP1_IRQ_MASK, | 469 | .status_mask = SPEAR320_SSP1_IRQ_MASK, |
470 | .clear_mask = SSP1_IRQ_MASK, | 470 | .clear_mask = SPEAR320_SSP1_IRQ_MASK, |
471 | }, { | 471 | }, { |
472 | .virq = VIRQ_SSP2, | 472 | .virq = SPEAR320_VIRQ_SSP2, |
473 | .status_mask = SSP2_IRQ_MASK, | 473 | .status_mask = SPEAR320_SSP2_IRQ_MASK, |
474 | .clear_mask = SSP2_IRQ_MASK, | 474 | .clear_mask = SPEAR320_SSP2_IRQ_MASK, |
475 | }, { | 475 | }, { |
476 | .virq = VIRQ_SMII0, | 476 | .virq = SPEAR320_VIRQ_SMII0, |
477 | .status_mask = SMII0_IRQ_MASK, | 477 | .status_mask = SPEAR320_SMII0_IRQ_MASK, |
478 | .clear_mask = SMII0_IRQ_MASK, | 478 | .clear_mask = SPEAR320_SMII0_IRQ_MASK, |
479 | }, { | 479 | }, { |
480 | .virq = VIRQ_MII1_SMII1, | 480 | .virq = SPEAR320_VIRQ_MII1_SMII1, |
481 | .status_mask = MII1_SMII1_IRQ_MASK, | 481 | .status_mask = SPEAR320_MII1_SMII1_IRQ_MASK, |
482 | .clear_mask = MII1_SMII1_IRQ_MASK, | 482 | .clear_mask = SPEAR320_MII1_SMII1_IRQ_MASK, |
483 | }, { | 483 | }, { |
484 | .virq = VIRQ_WAKEUP_SMII0, | 484 | .virq = SPEAR320_VIRQ_WAKEUP_SMII0, |
485 | .status_mask = WAKEUP_SMII0_IRQ_MASK, | 485 | .status_mask = SPEAR320_WAKEUP_SMII0_IRQ_MASK, |
486 | .clear_mask = WAKEUP_SMII0_IRQ_MASK, | 486 | .clear_mask = SPEAR320_WAKEUP_SMII0_IRQ_MASK, |
487 | }, { | 487 | }, { |
488 | .virq = VIRQ_WAKEUP_MII1_SMII1, | 488 | .virq = SPEAR320_VIRQ_WAKEUP_MII1_SMII1, |
489 | .status_mask = WAKEUP_MII1_SMII1_IRQ_MASK, | 489 | .status_mask = SPEAR320_WAKEUP_MII1_SMII1_IRQ_MASK, |
490 | .clear_mask = WAKEUP_MII1_SMII1_IRQ_MASK, | 490 | .clear_mask = SPEAR320_WAKEUP_MII1_SMII1_IRQ_MASK, |
491 | }, { | 491 | }, { |
492 | .virq = VIRQ_I2C, | 492 | .virq = SPEAR320_VIRQ_I2C1, |
493 | .status_mask = I2C1_IRQ_MASK, | 493 | .status_mask = SPEAR320_I2C1_IRQ_MASK, |
494 | .clear_mask = I2C1_IRQ_MASK, | 494 | .clear_mask = SPEAR320_I2C1_IRQ_MASK, |
495 | }, | 495 | }, |
496 | }; | 496 | }; |
497 | 497 | ||
498 | static struct spear_shirq shirq_intrcomm_ras = { | 498 | static struct spear_shirq shirq_intrcomm_ras = { |
499 | .irq = IRQ_INTRCOMM_RAS_ARM, | 499 | .irq = SPEAR3XX_IRQ_INTRCOMM_RAS_ARM, |
500 | .dev_config = shirq_intrcomm_ras_config, | 500 | .dev_config = shirq_intrcomm_ras_config, |
501 | .dev_count = ARRAY_SIZE(shirq_intrcomm_ras_config), | 501 | .dev_count = ARRAY_SIZE(shirq_intrcomm_ras_config), |
502 | .regs = { | 502 | .regs = { |
503 | .enb_reg = -1, | 503 | .enb_reg = -1, |
504 | .status_reg = INT_STS_MASK_REG, | 504 | .status_reg = SPEAR320_INT_STS_MASK_REG, |
505 | .status_reg_mask = SHIRQ_INTRCOMM_RAS_MASK, | 505 | .status_reg_mask = SPEAR320_SHIRQ_INTRCOMM_RAS_MASK, |
506 | .clear_reg = INT_CLR_MASK_REG, | 506 | .clear_reg = SPEAR320_INT_CLR_MASK_REG, |
507 | .reset_to_clear = 1, | 507 | .reset_to_clear = 1, |
508 | }, | 508 | }, |
509 | }; | 509 | }; |