diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2006-10-04 10:02:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 13:25:05 -0400 |
commit | 73e2798b0f3f4fa8ff7d3e8138027a8352359bb5 (patch) | |
tree | 88beae52a8aa22e49e339eb6145dcf8061f11e0b | |
parent | 1e8ea80219564c3433dbca7afe075ced9eb8117c (diff) |
[PATCH] at91_serial -> atmel_serial: Public definitions
Rename the following public definitions:
* AT91_NR_UART -> ATMEL_MAX_UART
* struct at91_uart_data -> struct atmel_uart_data
* at91_default_console_device -> atmel_default_console_device
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/arm/mach-at91rm9200/devices.c | 22 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap7000.c | 4 | ||||
-rw-r--r-- | drivers/serial/atmel_serial.c | 14 | ||||
-rw-r--r-- | include/asm-arm/arch-at91rm9200/board.h | 4 | ||||
-rw-r--r-- | include/asm-arm/arch-at91rm9200/hardware.h | 2 | ||||
-rw-r--r-- | include/asm-avr32/arch-at32ap/board.h | 4 |
6 files changed, 25 insertions, 25 deletions
diff --git a/arch/arm/mach-at91rm9200/devices.c b/arch/arm/mach-at91rm9200/devices.c index 28fd4b8f4742..5a3919f09d4d 100644 --- a/arch/arm/mach-at91rm9200/devices.c +++ b/arch/arm/mach-at91rm9200/devices.c | |||
@@ -558,7 +558,7 @@ static struct resource dbgu_resources[] = { | |||
558 | }, | 558 | }, |
559 | }; | 559 | }; |
560 | 560 | ||
561 | static struct at91_uart_data dbgu_data = { | 561 | static struct atmel_uart_data dbgu_data = { |
562 | .use_dma_tx = 0, | 562 | .use_dma_tx = 0, |
563 | .use_dma_rx = 0, /* DBGU not capable of receive DMA */ | 563 | .use_dma_rx = 0, /* DBGU not capable of receive DMA */ |
564 | }; | 564 | }; |
@@ -593,7 +593,7 @@ static struct resource uart0_resources[] = { | |||
593 | }, | 593 | }, |
594 | }; | 594 | }; |
595 | 595 | ||
596 | static struct at91_uart_data uart0_data = { | 596 | static struct atmel_uart_data uart0_data = { |
597 | .use_dma_tx = 1, | 597 | .use_dma_tx = 1, |
598 | .use_dma_rx = 1, | 598 | .use_dma_rx = 1, |
599 | }; | 599 | }; |
@@ -635,7 +635,7 @@ static struct resource uart1_resources[] = { | |||
635 | }, | 635 | }, |
636 | }; | 636 | }; |
637 | 637 | ||
638 | static struct at91_uart_data uart1_data = { | 638 | static struct atmel_uart_data uart1_data = { |
639 | .use_dma_tx = 1, | 639 | .use_dma_tx = 1, |
640 | .use_dma_rx = 1, | 640 | .use_dma_rx = 1, |
641 | }; | 641 | }; |
@@ -676,7 +676,7 @@ static struct resource uart2_resources[] = { | |||
676 | }, | 676 | }, |
677 | }; | 677 | }; |
678 | 678 | ||
679 | static struct at91_uart_data uart2_data = { | 679 | static struct atmel_uart_data uart2_data = { |
680 | .use_dma_tx = 1, | 680 | .use_dma_tx = 1, |
681 | .use_dma_rx = 1, | 681 | .use_dma_rx = 1, |
682 | }; | 682 | }; |
@@ -711,7 +711,7 @@ static struct resource uart3_resources[] = { | |||
711 | }, | 711 | }, |
712 | }; | 712 | }; |
713 | 713 | ||
714 | static struct at91_uart_data uart3_data = { | 714 | static struct atmel_uart_data uart3_data = { |
715 | .use_dma_tx = 1, | 715 | .use_dma_tx = 1, |
716 | .use_dma_rx = 1, | 716 | .use_dma_rx = 1, |
717 | }; | 717 | }; |
@@ -733,8 +733,8 @@ static inline void configure_usart3_pins(void) | |||
733 | at91_set_B_periph(AT91_PIN_PA6, 0); /* RXD3 */ | 733 | at91_set_B_periph(AT91_PIN_PA6, 0); /* RXD3 */ |
734 | } | 734 | } |
735 | 735 | ||
736 | struct platform_device *at91_uarts[AT91_NR_UART]; /* the UARTs to use */ | 736 | struct platform_device *at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ |
737 | struct platform_device *at91_default_console_device; /* the serial console device */ | 737 | struct platform_device *atmel_default_console_device; /* the serial console device */ |
738 | 738 | ||
739 | void __init at91_init_serial(struct at91_uart_config *config) | 739 | void __init at91_init_serial(struct at91_uart_config *config) |
740 | { | 740 | { |
@@ -775,9 +775,9 @@ void __init at91_init_serial(struct at91_uart_config *config) | |||
775 | } | 775 | } |
776 | 776 | ||
777 | /* Set serial console device */ | 777 | /* Set serial console device */ |
778 | if (config->console_tty < AT91_NR_UART) | 778 | if (config->console_tty < ATMEL_MAX_UART) |
779 | at91_default_console_device = at91_uarts[config->console_tty]; | 779 | atmel_default_console_device = at91_uarts[config->console_tty]; |
780 | if (!at91_default_console_device) | 780 | if (!atmel_default_console_device) |
781 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | 781 | printk(KERN_INFO "AT91: No default serial console defined.\n"); |
782 | } | 782 | } |
783 | 783 | ||
@@ -785,7 +785,7 @@ void __init at91_add_device_serial(void) | |||
785 | { | 785 | { |
786 | int i; | 786 | int i; |
787 | 787 | ||
788 | for (i = 0; i < AT91_NR_UART; i++) { | 788 | for (i = 0; i < ATMEL_MAX_UART; i++) { |
789 | if (at91_uarts[i]) | 789 | if (at91_uarts[i]) |
790 | platform_device_register(at91_uarts[i]); | 790 | platform_device_register(at91_uarts[i]); |
791 | } | 791 | } |
diff --git a/arch/avr32/mach-at32ap/at32ap7000.c b/arch/avr32/mach-at32ap/at32ap7000.c index 842e7be7fb5e..05d1296bd7b2 100644 --- a/arch/avr32/mach-at32ap/at32ap7000.c +++ b/arch/avr32/mach-at32ap/at32ap7000.c | |||
@@ -615,11 +615,11 @@ struct platform_device *__init at32_add_device_usart(unsigned int id) | |||
615 | return pdev; | 615 | return pdev; |
616 | } | 616 | } |
617 | 617 | ||
618 | struct platform_device *at91_default_console_device; | 618 | struct platform_device *atmel_default_console_device; |
619 | 619 | ||
620 | void __init at32_setup_serial_console(unsigned int usart_id) | 620 | void __init at32_setup_serial_console(unsigned int usart_id) |
621 | { | 621 | { |
622 | at91_default_console_device = setup_usart(usart_id); | 622 | atmel_default_console_device = setup_usart(usart_id); |
623 | } | 623 | } |
624 | 624 | ||
625 | /* -------------------------------------------------------------------- | 625 | /* -------------------------------------------------------------------- |
diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c index f14a07ed60b8..65972ce63c7d 100644 --- a/drivers/serial/atmel_serial.c +++ b/drivers/serial/atmel_serial.c | |||
@@ -113,7 +113,7 @@ struct at91_uart_port { | |||
113 | unsigned short suspended; /* is port suspended? */ | 113 | unsigned short suspended; /* is port suspended? */ |
114 | }; | 114 | }; |
115 | 115 | ||
116 | static struct at91_uart_port at91_ports[AT91_NR_UART]; | 116 | static struct at91_uart_port at91_ports[ATMEL_MAX_UART]; |
117 | 117 | ||
118 | #ifdef SUPPORT_SYSRQ | 118 | #ifdef SUPPORT_SYSRQ |
119 | static struct console at91_console; | 119 | static struct console at91_console; |
@@ -682,7 +682,7 @@ static struct uart_ops at91_pops = { | |||
682 | static void __devinit at91_init_port(struct at91_uart_port *at91_port, struct platform_device *pdev) | 682 | static void __devinit at91_init_port(struct at91_uart_port *at91_port, struct platform_device *pdev) |
683 | { | 683 | { |
684 | struct uart_port *port = &at91_port->uart; | 684 | struct uart_port *port = &at91_port->uart; |
685 | struct at91_uart_data *data = pdev->dev.platform_data; | 685 | struct atmel_uart_data *data = pdev->dev.platform_data; |
686 | 686 | ||
687 | port->iotype = UPIO_MEM; | 687 | port->iotype = UPIO_MEM; |
688 | port->flags = UPF_BOOT_AUTOCONF; | 688 | port->flags = UPF_BOOT_AUTOCONF; |
@@ -834,9 +834,9 @@ static struct console at91_console = { | |||
834 | */ | 834 | */ |
835 | static int __init at91_console_init(void) | 835 | static int __init at91_console_init(void) |
836 | { | 836 | { |
837 | if (at91_default_console_device) { | 837 | if (atmel_default_console_device) { |
838 | add_preferred_console(AT91_DEVICENAME, at91_default_console_device->id, NULL); | 838 | add_preferred_console(AT91_DEVICENAME, atmel_default_console_device->id, NULL); |
839 | at91_init_port(&(at91_ports[at91_default_console_device->id]), at91_default_console_device); | 839 | at91_init_port(&(at91_ports[atmel_default_console_device->id]), atmel_default_console_device); |
840 | register_console(&at91_console); | 840 | register_console(&at91_console); |
841 | } | 841 | } |
842 | 842 | ||
@@ -849,7 +849,7 @@ console_initcall(at91_console_init); | |||
849 | */ | 849 | */ |
850 | static int __init at91_late_console_init(void) | 850 | static int __init at91_late_console_init(void) |
851 | { | 851 | { |
852 | if (at91_default_console_device && !(at91_console.flags & CON_ENABLED)) | 852 | if (atmel_default_console_device && !(at91_console.flags & CON_ENABLED)) |
853 | register_console(&at91_console); | 853 | register_console(&at91_console); |
854 | 854 | ||
855 | return 0; | 855 | return 0; |
@@ -866,7 +866,7 @@ static struct uart_driver at91_uart = { | |||
866 | .dev_name = AT91_DEVICENAME, | 866 | .dev_name = AT91_DEVICENAME, |
867 | .major = SERIAL_AT91_MAJOR, | 867 | .major = SERIAL_AT91_MAJOR, |
868 | .minor = MINOR_START, | 868 | .minor = MINOR_START, |
869 | .nr = AT91_NR_UART, | 869 | .nr = ATMEL_MAX_UART, |
870 | .cons = AT91_CONSOLE_DEVICE, | 870 | .cons = AT91_CONSOLE_DEVICE, |
871 | }; | 871 | }; |
872 | 872 | ||
diff --git a/include/asm-arm/arch-at91rm9200/board.h b/include/asm-arm/arch-at91rm9200/board.h index c1ca9a4658ec..d56527055c9d 100644 --- a/include/asm-arm/arch-at91rm9200/board.h +++ b/include/asm-arm/arch-at91rm9200/board.h | |||
@@ -97,10 +97,10 @@ struct at91_uart_config { | |||
97 | unsigned short nr_tty; /* number of serial tty's */ | 97 | unsigned short nr_tty; /* number of serial tty's */ |
98 | short tty_map[]; /* map UART to tty number */ | 98 | short tty_map[]; /* map UART to tty number */ |
99 | }; | 99 | }; |
100 | extern struct platform_device *at91_default_console_device; | 100 | extern struct platform_device *atmel_default_console_device; |
101 | extern void __init at91_init_serial(struct at91_uart_config *config); | 101 | extern void __init at91_init_serial(struct at91_uart_config *config); |
102 | 102 | ||
103 | struct at91_uart_data { | 103 | struct atmel_uart_data { |
104 | short use_dma_tx; /* use transmit DMA? */ | 104 | short use_dma_tx; /* use transmit DMA? */ |
105 | short use_dma_rx; /* use receive DMA? */ | 105 | short use_dma_rx; /* use receive DMA? */ |
106 | }; | 106 | }; |
diff --git a/include/asm-arm/arch-at91rm9200/hardware.h b/include/asm-arm/arch-at91rm9200/hardware.h index 6551b4d1ff7b..9ca4cc9c0b2e 100644 --- a/include/asm-arm/arch-at91rm9200/hardware.h +++ b/include/asm-arm/arch-at91rm9200/hardware.h | |||
@@ -44,7 +44,7 @@ | |||
44 | #define AT91_SRAM_VIRT_BASE (AT91_IO_VIRT_BASE - AT91RM9200_SRAM_SIZE) | 44 | #define AT91_SRAM_VIRT_BASE (AT91_IO_VIRT_BASE - AT91RM9200_SRAM_SIZE) |
45 | 45 | ||
46 | /* Serial ports */ | 46 | /* Serial ports */ |
47 | #define AT91_NR_UART 5 /* 4 USART3's and one DBGU port */ | 47 | #define ATMEL_MAX_UART 5 /* 4 USART3's and one DBGU port */ |
48 | 48 | ||
49 | /* FLASH */ | 49 | /* FLASH */ |
50 | #define AT91_FLASH_BASE 0x10000000 /* NCS0: Flash physical base address */ | 50 | #define AT91_FLASH_BASE 0x10000000 /* NCS0: Flash physical base address */ |
diff --git a/include/asm-avr32/arch-at32ap/board.h b/include/asm-avr32/arch-at32ap/board.h index 39368e18ab20..82e5404d2f48 100644 --- a/include/asm-avr32/arch-at32ap/board.h +++ b/include/asm-avr32/arch-at32ap/board.h | |||
@@ -9,8 +9,8 @@ | |||
9 | /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */ | 9 | /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */ |
10 | void at32_add_system_devices(void); | 10 | void at32_add_system_devices(void); |
11 | 11 | ||
12 | #define AT91_NR_UART 4 | 12 | #define ATMEL_MAX_UART 4 |
13 | extern struct platform_device *at91_default_console_device; | 13 | extern struct platform_device *atmel_default_console_device; |
14 | 14 | ||
15 | struct platform_device *at32_add_device_usart(unsigned int id); | 15 | struct platform_device *at32_add_device_usart(unsigned int id); |
16 | 16 | ||