diff options
Diffstat (limited to 'arch/arm/mach-lpc32xx/include')
-rw-r--r-- | arch/arm/mach-lpc32xx/include/mach/platform.h | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/arch/arm/mach-lpc32xx/include/mach/platform.h b/arch/arm/mach-lpc32xx/include/mach/platform.h index 14ea8d1aadb5..c584f5bb164f 100644 --- a/arch/arm/mach-lpc32xx/include/mach/platform.h +++ b/arch/arm/mach-lpc32xx/include/mach/platform.h | |||
@@ -591,42 +591,42 @@ | |||
591 | /* | 591 | /* |
592 | * Timer/counter register offsets | 592 | * Timer/counter register offsets |
593 | */ | 593 | */ |
594 | #define LCP32XX_TIMER_IR(x) io_p2v((x) + 0x00) | 594 | #define LPC32XX_TIMER_IR(x) io_p2v((x) + 0x00) |
595 | #define LCP32XX_TIMER_TCR(x) io_p2v((x) + 0x04) | 595 | #define LPC32XX_TIMER_TCR(x) io_p2v((x) + 0x04) |
596 | #define LCP32XX_TIMER_TC(x) io_p2v((x) + 0x08) | 596 | #define LPC32XX_TIMER_TC(x) io_p2v((x) + 0x08) |
597 | #define LCP32XX_TIMER_PR(x) io_p2v((x) + 0x0C) | 597 | #define LPC32XX_TIMER_PR(x) io_p2v((x) + 0x0C) |
598 | #define LCP32XX_TIMER_PC(x) io_p2v((x) + 0x10) | 598 | #define LPC32XX_TIMER_PC(x) io_p2v((x) + 0x10) |
599 | #define LCP32XX_TIMER_MCR(x) io_p2v((x) + 0x14) | 599 | #define LPC32XX_TIMER_MCR(x) io_p2v((x) + 0x14) |
600 | #define LCP32XX_TIMER_MR0(x) io_p2v((x) + 0x18) | 600 | #define LPC32XX_TIMER_MR0(x) io_p2v((x) + 0x18) |
601 | #define LCP32XX_TIMER_MR1(x) io_p2v((x) + 0x1C) | 601 | #define LPC32XX_TIMER_MR1(x) io_p2v((x) + 0x1C) |
602 | #define LCP32XX_TIMER_MR2(x) io_p2v((x) + 0x20) | 602 | #define LPC32XX_TIMER_MR2(x) io_p2v((x) + 0x20) |
603 | #define LCP32XX_TIMER_MR3(x) io_p2v((x) + 0x24) | 603 | #define LPC32XX_TIMER_MR3(x) io_p2v((x) + 0x24) |
604 | #define LCP32XX_TIMER_CCR(x) io_p2v((x) + 0x28) | 604 | #define LPC32XX_TIMER_CCR(x) io_p2v((x) + 0x28) |
605 | #define LCP32XX_TIMER_CR0(x) io_p2v((x) + 0x2C) | 605 | #define LPC32XX_TIMER_CR0(x) io_p2v((x) + 0x2C) |
606 | #define LCP32XX_TIMER_CR1(x) io_p2v((x) + 0x30) | 606 | #define LPC32XX_TIMER_CR1(x) io_p2v((x) + 0x30) |
607 | #define LCP32XX_TIMER_CR2(x) io_p2v((x) + 0x34) | 607 | #define LPC32XX_TIMER_CR2(x) io_p2v((x) + 0x34) |
608 | #define LCP32XX_TIMER_CR3(x) io_p2v((x) + 0x38) | 608 | #define LPC32XX_TIMER_CR3(x) io_p2v((x) + 0x38) |
609 | #define LCP32XX_TIMER_EMR(x) io_p2v((x) + 0x3C) | 609 | #define LPC32XX_TIMER_EMR(x) io_p2v((x) + 0x3C) |
610 | #define LCP32XX_TIMER_CTCR(x) io_p2v((x) + 0x70) | 610 | #define LPC32XX_TIMER_CTCR(x) io_p2v((x) + 0x70) |
611 | 611 | ||
612 | /* | 612 | /* |
613 | * ir register definitions | 613 | * ir register definitions |
614 | */ | 614 | */ |
615 | #define LCP32XX_TIMER_CNTR_MTCH_BIT(n) (1 << ((n) & 0x3)) | 615 | #define LPC32XX_TIMER_CNTR_MTCH_BIT(n) (1 << ((n) & 0x3)) |
616 | #define LCP32XX_TIMER_CNTR_CAPT_BIT(n) (1 << (4 + ((n) & 0x3))) | 616 | #define LPC32XX_TIMER_CNTR_CAPT_BIT(n) (1 << (4 + ((n) & 0x3))) |
617 | 617 | ||
618 | /* | 618 | /* |
619 | * tcr register definitions | 619 | * tcr register definitions |
620 | */ | 620 | */ |
621 | #define LCP32XX_TIMER_CNTR_TCR_EN 0x1 | 621 | #define LPC32XX_TIMER_CNTR_TCR_EN 0x1 |
622 | #define LCP32XX_TIMER_CNTR_TCR_RESET 0x2 | 622 | #define LPC32XX_TIMER_CNTR_TCR_RESET 0x2 |
623 | 623 | ||
624 | /* | 624 | /* |
625 | * mcr register definitions | 625 | * mcr register definitions |
626 | */ | 626 | */ |
627 | #define LCP32XX_TIMER_CNTR_MCR_MTCH(n) (0x1 << ((n) * 3)) | 627 | #define LPC32XX_TIMER_CNTR_MCR_MTCH(n) (0x1 << ((n) * 3)) |
628 | #define LCP32XX_TIMER_CNTR_MCR_RESET(n) (0x1 << (((n) * 3) + 1)) | 628 | #define LPC32XX_TIMER_CNTR_MCR_RESET(n) (0x1 << (((n) * 3) + 1)) |
629 | #define LCP32XX_TIMER_CNTR_MCR_STOP(n) (0x1 << (((n) * 3) + 2)) | 629 | #define LPC32XX_TIMER_CNTR_MCR_STOP(n) (0x1 << (((n) * 3) + 2)) |
630 | 630 | ||
631 | /* | 631 | /* |
632 | * Standard UART register offsets | 632 | * Standard UART register offsets |
@@ -690,5 +690,8 @@ | |||
690 | #define LPC32XX_GPIO_P1_MUX_SET _GPREG(0x130) | 690 | #define LPC32XX_GPIO_P1_MUX_SET _GPREG(0x130) |
691 | #define LPC32XX_GPIO_P1_MUX_CLR _GPREG(0x134) | 691 | #define LPC32XX_GPIO_P1_MUX_CLR _GPREG(0x134) |
692 | #define LPC32XX_GPIO_P1_MUX_STATE _GPREG(0x138) | 692 | #define LPC32XX_GPIO_P1_MUX_STATE _GPREG(0x138) |
693 | #define LPC32XX_GPIO_P2_MUX_SET _GPREG(0x028) | ||
694 | #define LPC32XX_GPIO_P2_MUX_CLR _GPREG(0x02C) | ||
695 | #define LPC32XX_GPIO_P2_MUX_STATE _GPREG(0x030) | ||
693 | 696 | ||
694 | #endif | 697 | #endif |