diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2009-09-09 06:46:19 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-10 07:18:11 -0500 |
commit | 57afb399350b45c0067f4979ce9f0c754239b048 (patch) | |
tree | 8dc43f8df53b016621a6bc9f43b5761858dfe6d0 /drivers/serial/Kconfig | |
parent | 94a038c2e6228727ae0549af75e97b9b634cd468 (diff) |
serial: bfin_5xx: move resources into board files
Rather than maintain Kconfig entries where people have to enter raw
numbers and hardcode lists of addresses/pins in the driver itself,
push it all to platform resources. This lets us simplify the driver,
the Kconfig, and gives board porters greater flexibility.
In the process, we need to also start supporting the early platform
interface. Not a big deal, but it causes the patch to be bigger than
a simple resource relocation.
All the Blackfin boards already have their resources updated and in
place for this change.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/serial/Kconfig')
-rw-r--r-- | drivers/serial/Kconfig | 70 |
1 files changed, 4 insertions, 66 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index ec3c214598d0..ce39357f708b 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig | |||
@@ -776,24 +776,7 @@ config BFIN_UART0_CTSRTS | |||
776 | bool "Enable UART0 hardware flow control" | 776 | bool "Enable UART0 hardware flow control" |
777 | depends on SERIAL_BFIN_UART0 | 777 | depends on SERIAL_BFIN_UART0 |
778 | help | 778 | help |
779 | Enable hardware flow control in the driver. Using GPIO emulate the CTS/RTS | 779 | Enable hardware flow control in the driver. |
780 | signal. | ||
781 | |||
782 | config UART0_CTS_PIN | ||
783 | int "UART0 CTS pin" | ||
784 | depends on BFIN_UART0_CTSRTS && !BF548 | ||
785 | default 23 | ||
786 | help | ||
787 | The default pin is GPIO_GP7. | ||
788 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
789 | |||
790 | config UART0_RTS_PIN | ||
791 | int "UART0 RTS pin" | ||
792 | depends on BFIN_UART0_CTSRTS && !BF548 | ||
793 | default 22 | ||
794 | help | ||
795 | The default pin is GPIO_GP6. | ||
796 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
797 | 780 | ||
798 | config SERIAL_BFIN_UART1 | 781 | config SERIAL_BFIN_UART1 |
799 | bool "Enable UART1" | 782 | bool "Enable UART1" |
@@ -805,22 +788,7 @@ config BFIN_UART1_CTSRTS | |||
805 | bool "Enable UART1 hardware flow control" | 788 | bool "Enable UART1 hardware flow control" |
806 | depends on SERIAL_BFIN_UART1 | 789 | depends on SERIAL_BFIN_UART1 |
807 | help | 790 | help |
808 | Enable hardware flow control in the driver. Using GPIO emulate the CTS/RTS | 791 | Enable hardware flow control in the driver. |
809 | signal. | ||
810 | |||
811 | config UART1_CTS_PIN | ||
812 | int "UART1 CTS pin" | ||
813 | depends on BFIN_UART1_CTSRTS && !BF548 | ||
814 | default -1 | ||
815 | help | ||
816 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
817 | |||
818 | config UART1_RTS_PIN | ||
819 | int "UART1 RTS pin" | ||
820 | depends on BFIN_UART1_CTSRTS && !BF548 | ||
821 | default -1 | ||
822 | help | ||
823 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
824 | 792 | ||
825 | config SERIAL_BFIN_UART2 | 793 | config SERIAL_BFIN_UART2 |
826 | bool "Enable UART2" | 794 | bool "Enable UART2" |
@@ -832,22 +800,7 @@ config BFIN_UART2_CTSRTS | |||
832 | bool "Enable UART2 hardware flow control" | 800 | bool "Enable UART2 hardware flow control" |
833 | depends on SERIAL_BFIN_UART2 | 801 | depends on SERIAL_BFIN_UART2 |
834 | help | 802 | help |
835 | Enable hardware flow control in the driver. Using GPIO emulate the CTS/RTS | 803 | Enable hardware flow control in the driver. |
836 | signal. | ||
837 | |||
838 | config UART2_CTS_PIN | ||
839 | int "UART2 CTS pin" | ||
840 | depends on BFIN_UART2_CTSRTS && !BF548 | ||
841 | default -1 | ||
842 | help | ||
843 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
844 | |||
845 | config UART2_RTS_PIN | ||
846 | int "UART2 RTS pin" | ||
847 | depends on BFIN_UART2_CTSRTS && !BF548 | ||
848 | default -1 | ||
849 | help | ||
850 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
851 | 804 | ||
852 | config SERIAL_BFIN_UART3 | 805 | config SERIAL_BFIN_UART3 |
853 | bool "Enable UART3" | 806 | bool "Enable UART3" |
@@ -859,22 +812,7 @@ config BFIN_UART3_CTSRTS | |||
859 | bool "Enable UART3 hardware flow control" | 812 | bool "Enable UART3 hardware flow control" |
860 | depends on SERIAL_BFIN_UART3 | 813 | depends on SERIAL_BFIN_UART3 |
861 | help | 814 | help |
862 | Enable hardware flow control in the driver. Using GPIO emulate the CTS/RTS | 815 | Enable hardware flow control in the driver. |
863 | signal. | ||
864 | |||
865 | config UART3_CTS_PIN | ||
866 | int "UART3 CTS pin" | ||
867 | depends on BFIN_UART3_CTSRTS && !BF548 | ||
868 | default -1 | ||
869 | help | ||
870 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
871 | |||
872 | config UART3_RTS_PIN | ||
873 | int "UART3 RTS pin" | ||
874 | depends on BFIN_UART3_CTSRTS && !BF548 | ||
875 | default -1 | ||
876 | help | ||
877 | Refer to arch/blackfin/mach-*/include/mach/gpio.h to see the GPIO map. | ||
878 | 816 | ||
879 | config SERIAL_IMX | 817 | config SERIAL_IMX |
880 | bool "IMX serial port support" | 818 | bool "IMX serial port support" |