diff options
author | Ksenija Stanojevic <ksenija.stanojevic@gmail.com> | 2016-02-03 06:31:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-03 17:14:22 -0500 |
commit | 305b37bd01c220a7a6285911d43c9884270257be (patch) | |
tree | 9fa3c74fb619acd4a4f2cbc6fba23426a39cb90c | |
parent | fec2f3335c637ca95166a9eb753fe2b49aee4e71 (diff) |
misc: Move panel driver out of staging
Move panel driver from drivers/staging/panel to drivers/misc.
Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | Documentation/misc-devices/lcd-panel-cgram.txt (renamed from drivers/staging/panel/lcd-panel-cgram.txt) | 0 | ||||
-rw-r--r-- | MAINTAINERS | 12 | ||||
-rw-r--r-- | drivers/misc/Kconfig | 278 | ||||
-rw-r--r-- | drivers/misc/Makefile | 1 | ||||
-rw-r--r-- | drivers/misc/panel.c (renamed from drivers/staging/panel/panel.c) | 0 | ||||
-rw-r--r-- | drivers/staging/Kconfig | 2 | ||||
-rw-r--r-- | drivers/staging/Makefile | 1 | ||||
-rw-r--r-- | drivers/staging/panel/Kconfig | 278 | ||||
-rw-r--r-- | drivers/staging/panel/Makefile | 1 | ||||
-rw-r--r-- | drivers/staging/panel/TODO | 8 |
10 files changed, 286 insertions, 295 deletions
diff --git a/drivers/staging/panel/lcd-panel-cgram.txt b/Documentation/misc-devices/lcd-panel-cgram.txt index 7f82c905763d..7f82c905763d 100644 --- a/drivers/staging/panel/lcd-panel-cgram.txt +++ b/Documentation/misc-devices/lcd-panel-cgram.txt | |||
diff --git a/MAINTAINERS b/MAINTAINERS index 369f6aefc189..7c39a48b4118 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -8168,6 +8168,13 @@ S: Maintained | |||
8168 | F: Documentation/mn10300/ | 8168 | F: Documentation/mn10300/ |
8169 | F: arch/mn10300/ | 8169 | F: arch/mn10300/ |
8170 | 8170 | ||
8171 | PARALLEL LCD/KEYPAD PANEL DRIVER | ||
8172 | M: Willy Tarreau <willy@haproxy.com> | ||
8173 | M: Ksenija Stanojevic <ksenija.stanojevic@gmail.com> | ||
8174 | S: Odd Fixes | ||
8175 | F: Documentation/misc-devices/lcd-panel-cgram.txt | ||
8176 | F: drivers/misc/panel.c | ||
8177 | |||
8171 | PARALLEL PORT SUBSYSTEM | 8178 | PARALLEL PORT SUBSYSTEM |
8172 | M: Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 8179 | M: Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
8173 | M: Sudip Mukherjee <sudip@vectorindia.org> | 8180 | M: Sudip Mukherjee <sudip@vectorindia.org> |
@@ -10391,11 +10398,6 @@ L: linux-tegra@vger.kernel.org | |||
10391 | S: Maintained | 10398 | S: Maintained |
10392 | F: drivers/staging/nvec/ | 10399 | F: drivers/staging/nvec/ |
10393 | 10400 | ||
10394 | STAGING - PARALLEL LCD/KEYPAD PANEL DRIVER | ||
10395 | M: Willy Tarreau <willy@haproxy.com> | ||
10396 | S: Odd Fixes | ||
10397 | F: drivers/staging/panel/ | ||
10398 | |||
10399 | STAGING - REALTEK RTL8712U DRIVERS | 10401 | STAGING - REALTEK RTL8712U DRIVERS |
10400 | M: Larry Finger <Larry.Finger@lwfinger.net> | 10402 | M: Larry Finger <Larry.Finger@lwfinger.net> |
10401 | M: Florian Schilhabel <florian.c.schilhabel@googlemail.com>. | 10403 | M: Florian Schilhabel <florian.c.schilhabel@googlemail.com>. |
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 054fc10cb3b6..f0ba78289504 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -525,6 +525,284 @@ config VEXPRESS_SYSCFG | |||
525 | ARM Ltd. Versatile Express uses specialised platform configuration | 525 | ARM Ltd. Versatile Express uses specialised platform configuration |
526 | bus. System Configuration interface is one of the possible means | 526 | bus. System Configuration interface is one of the possible means |
527 | of generating transactions on this bus. | 527 | of generating transactions on this bus. |
528 | config PANEL | ||
529 | tristate "Parallel port LCD/Keypad Panel support" | ||
530 | depends on PARPORT | ||
531 | ---help--- | ||
532 | Say Y here if you have an HD44780 or KS-0074 LCD connected to your | ||
533 | parallel port. This driver also features 4 and 6-key keypads. The LCD | ||
534 | is accessible through the /dev/lcd char device (10, 156), and the | ||
535 | keypad through /dev/keypad (10, 185). Both require misc device to be | ||
536 | enabled. This code can either be compiled as a module, or linked into | ||
537 | the kernel and started at boot. If you don't understand what all this | ||
538 | is about, say N. | ||
539 | |||
540 | config PANEL_PARPORT | ||
541 | int "Default parallel port number (0=LPT1)" | ||
542 | depends on PANEL | ||
543 | range 0 255 | ||
544 | default "0" | ||
545 | ---help--- | ||
546 | This is the index of the parallel port the panel is connected to. One | ||
547 | driver instance only supports one parallel port, so if your keypad | ||
548 | and LCD are connected to two separate ports, you have to start two | ||
549 | modules with different arguments. Numbering starts with '0' for LPT1, | ||
550 | and so on. | ||
551 | |||
552 | config PANEL_PROFILE | ||
553 | int "Default panel profile (0-5, 0=custom)" | ||
554 | depends on PANEL | ||
555 | range 0 5 | ||
556 | default "5" | ||
557 | ---help--- | ||
558 | To ease configuration, the driver supports different configuration | ||
559 | profiles for past and recent wirings. These profiles can also be | ||
560 | used to define an approximative configuration, completed by a few | ||
561 | other options. Here are the profiles : | ||
562 | |||
563 | 0 = custom (see further) | ||
564 | 1 = 2x16 parallel LCD, old keypad | ||
565 | 2 = 2x16 serial LCD (KS-0074), new keypad | ||
566 | 3 = 2x16 parallel LCD (Hantronix), no keypad | ||
567 | 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad | ||
568 | 5 = 2x40 parallel LCD (old one), with old keypad | ||
569 | |||
570 | Custom configurations allow you to define how your display is | ||
571 | wired to the parallel port, and how it works. This is only intended | ||
572 | for experts. | ||
573 | |||
574 | config PANEL_KEYPAD | ||
575 | depends on PANEL && PANEL_PROFILE="0" | ||
576 | int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)" | ||
577 | range 0 3 | ||
578 | default 0 | ||
579 | ---help--- | ||
580 | This enables and configures a keypad connected to the parallel port. | ||
581 | The keys will be read from character device 10,185. Valid values are : | ||
582 | |||
583 | 0 : do not enable this driver | ||
584 | 1 : old 6 keys keypad | ||
585 | 2 : new 6 keys keypad, as used on the server at www.ant-computing.com | ||
586 | 3 : Nexcom NSA1045's 4 keys keypad | ||
587 | |||
588 | New profiles can be described in the driver source. The driver also | ||
589 | supports simultaneous keys pressed when the keypad supports them. | ||
590 | |||
591 | config PANEL_LCD | ||
592 | depends on PANEL && PANEL_PROFILE="0" | ||
593 | int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)" | ||
594 | range 0 5 | ||
595 | default 0 | ||
596 | ---help--- | ||
597 | This enables and configures an LCD connected to the parallel port. | ||
598 | The driver includes an interpreter for escape codes starting with | ||
599 | '\e[L' which are specific to the LCD, and a few ANSI codes. The | ||
600 | driver will be registered as character device 10,156, usually | ||
601 | under the name '/dev/lcd'. There are a total of 6 supported types : | ||
602 | |||
603 | 0 : do not enable the driver | ||
604 | 1 : custom configuration and wiring (see further) | ||
605 | 2 : 2x16 & 2x40 parallel LCD (old wiring) | ||
606 | 3 : 2x16 serial LCD (KS-0074 based) | ||
607 | 4 : 2x16 parallel LCD (Hantronix wiring) | ||
608 | 5 : 2x16 parallel LCD (Nexcom wiring) | ||
609 | |||
610 | When type '1' is specified, other options will appear to configure | ||
611 | more precise aspects (wiring, dimensions, protocol, ...). Please note | ||
612 | that those values changed from the 2.4 driver for better consistency. | ||
613 | |||
614 | config PANEL_LCD_HEIGHT | ||
615 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
616 | int "Number of lines on the LCD (1-2)" | ||
617 | range 1 2 | ||
618 | default 2 | ||
619 | ---help--- | ||
620 | This is the number of visible character lines on the LCD in custom profile. | ||
621 | It can either be 1 or 2. | ||
622 | |||
623 | config PANEL_LCD_WIDTH | ||
624 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
625 | int "Number of characters per line on the LCD (1-40)" | ||
626 | range 1 40 | ||
627 | default 40 | ||
628 | ---help--- | ||
629 | This is the number of characters per line on the LCD in custom profile. | ||
630 | Common values are 16,20,24,40. | ||
631 | |||
632 | config PANEL_LCD_BWIDTH | ||
633 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
634 | int "Internal LCD line width (1-40, 40 by default)" | ||
635 | range 1 40 | ||
636 | default 40 | ||
637 | ---help--- | ||
638 | Most LCDs use a standard controller which supports hardware lines of 40 | ||
639 | characters, although sometimes only 16, 20 or 24 of them are really wired | ||
640 | to the terminal. This results in some non-visible but addressable characters, | ||
641 | and is the case for most parallel LCDs. Other LCDs, and some serial ones, | ||
642 | however, use the same line width internally as what is visible. The KS0074 | ||
643 | for example, uses 16 characters per line for 16 visible characters per line. | ||
644 | |||
645 | This option lets you configure the value used by your LCD in 'custom' profile. | ||
646 | If you don't know, put '40' here. | ||
647 | |||
648 | config PANEL_LCD_HWIDTH | ||
649 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
650 | int "Hardware LCD line width (1-64, 64 by default)" | ||
651 | range 1 64 | ||
652 | default 64 | ||
653 | ---help--- | ||
654 | Most LCDs use a single address bit to differentiate line 0 and line 1. Since | ||
655 | some of them need to be able to address 40 chars with the lower bits, they | ||
656 | often use the immediately superior power of 2, which is 64, to address the | ||
657 | next line. | ||
658 | |||
659 | If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and | ||
660 | 64 here for a 2x40. | ||
661 | |||
662 | config PANEL_LCD_CHARSET | ||
663 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
664 | int "LCD character set (0=normal, 1=KS0074)" | ||
665 | range 0 1 | ||
666 | default 0 | ||
667 | ---help--- | ||
668 | Some controllers such as the KS0074 use a somewhat strange character set | ||
669 | where many symbols are at unusual places. The driver knows how to map | ||
670 | 'standard' ASCII characters to the character sets used by these controllers. | ||
671 | Valid values are : | ||
672 | |||
673 | 0 : normal (untranslated) character set | ||
674 | 1 : KS0074 character set | ||
675 | |||
676 | If you don't know, use the normal one (0). | ||
677 | |||
678 | config PANEL_LCD_PROTO | ||
679 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
680 | int "LCD communication mode (0=parallel 8 bits, 1=serial)" | ||
681 | range 0 1 | ||
682 | default 0 | ||
683 | ---help--- | ||
684 | This driver now supports any serial or parallel LCD wired to a parallel | ||
685 | port. But before assigning signals, the driver needs to know if it will | ||
686 | be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires | ||
687 | (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals | ||
688 | (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits | ||
689 | parallel LCD, and 1 for a serial LCD. | ||
690 | |||
691 | config PANEL_LCD_PIN_E | ||
692 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" | ||
693 | int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) " | ||
694 | range -17 17 | ||
695 | default 14 | ||
696 | ---help--- | ||
697 | This describes the number of the parallel port pin to which the LCD 'E' | ||
698 | signal has been connected. It can be : | ||
699 | |||
700 | 0 : no connection (eg: connected to ground) | ||
701 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
702 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
703 | |||
704 | Default for the 'E' pin in custom profile is '14' (AUTOFEED). | ||
705 | |||
706 | config PANEL_LCD_PIN_RS | ||
707 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" | ||
708 | int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) " | ||
709 | range -17 17 | ||
710 | default 17 | ||
711 | ---help--- | ||
712 | This describes the number of the parallel port pin to which the LCD 'RS' | ||
713 | signal has been connected. It can be : | ||
714 | |||
715 | 0 : no connection (eg: connected to ground) | ||
716 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
717 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
718 | |||
719 | Default for the 'RS' pin in custom profile is '17' (SELECT IN). | ||
720 | |||
721 | config PANEL_LCD_PIN_RW | ||
722 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" | ||
723 | int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) " | ||
724 | range -17 17 | ||
725 | default 16 | ||
726 | ---help--- | ||
727 | This describes the number of the parallel port pin to which the LCD 'RW' | ||
728 | signal has been connected. It can be : | ||
729 | |||
730 | 0 : no connection (eg: connected to ground) | ||
731 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
732 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
733 | |||
734 | Default for the 'RW' pin in custom profile is '16' (INIT). | ||
735 | |||
736 | config PANEL_LCD_PIN_SCL | ||
737 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" | ||
738 | int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) " | ||
739 | range -17 17 | ||
740 | default 1 | ||
741 | ---help--- | ||
742 | This describes the number of the parallel port pin to which the serial | ||
743 | LCD 'SCL' signal has been connected. It can be : | ||
744 | |||
745 | 0 : no connection (eg: connected to ground) | ||
746 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
747 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
748 | |||
749 | Default for the 'SCL' pin in custom profile is '1' (STROBE). | ||
750 | |||
751 | config PANEL_LCD_PIN_SDA | ||
752 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" | ||
753 | int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) " | ||
754 | range -17 17 | ||
755 | default 2 | ||
756 | ---help--- | ||
757 | This describes the number of the parallel port pin to which the serial | ||
758 | LCD 'SDA' signal has been connected. It can be : | ||
759 | |||
760 | 0 : no connection (eg: connected to ground) | ||
761 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
762 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
763 | |||
764 | Default for the 'SDA' pin in custom profile is '2' (D0). | ||
765 | |||
766 | config PANEL_LCD_PIN_BL | ||
767 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
768 | int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) " | ||
769 | range -17 17 | ||
770 | default 0 | ||
771 | ---help--- | ||
772 | This describes the number of the parallel port pin to which the LCD 'BL' signal | ||
773 | has been connected. It can be : | ||
774 | |||
775 | 0 : no connection (eg: connected to ground) | ||
776 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
777 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
778 | |||
779 | Default for the 'BL' pin in custom profile is '0' (uncontrolled). | ||
780 | |||
781 | config PANEL_CHANGE_MESSAGE | ||
782 | depends on PANEL | ||
783 | bool "Change LCD initialization message ?" | ||
784 | default "n" | ||
785 | ---help--- | ||
786 | This allows you to replace the boot message indicating the kernel version | ||
787 | and the driver version with a custom message. This is useful on appliances | ||
788 | where a simple 'Starting system' message can be enough to stop a customer | ||
789 | from worrying. | ||
790 | |||
791 | If you say 'Y' here, you'll be able to choose a message yourself. Otherwise, | ||
792 | say 'N' and keep the default message with the version. | ||
793 | |||
794 | config PANEL_BOOT_MESSAGE | ||
795 | depends on PANEL && PANEL_CHANGE_MESSAGE="y" | ||
796 | string "New initialization message" | ||
797 | default "" | ||
798 | ---help--- | ||
799 | This allows you to replace the boot message indicating the kernel version | ||
800 | and the driver version with a custom message. This is useful on appliances | ||
801 | where a simple 'Starting system' message can be enough to stop a customer | ||
802 | from worrying. | ||
803 | |||
804 | An empty message will only clear the display at driver init time. Any other | ||
805 | printf()-formatted message is valid with newline and escape codes. | ||
528 | 806 | ||
529 | source "drivers/misc/c2port/Kconfig" | 807 | source "drivers/misc/c2port/Kconfig" |
530 | source "drivers/misc/eeprom/Kconfig" | 808 | source "drivers/misc/eeprom/Kconfig" |
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index 537d7f3b78da..b2fb6dbffcef 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile | |||
@@ -56,3 +56,4 @@ obj-$(CONFIG_GENWQE) += genwqe/ | |||
56 | obj-$(CONFIG_ECHO) += echo/ | 56 | obj-$(CONFIG_ECHO) += echo/ |
57 | obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o | 57 | obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o |
58 | obj-$(CONFIG_CXL_BASE) += cxl/ | 58 | obj-$(CONFIG_CXL_BASE) += cxl/ |
59 | obj-$(CONFIG_PANEL) += panel.o | ||
diff --git a/drivers/staging/panel/panel.c b/drivers/misc/panel.c index 4262db0237f9..4262db0237f9 100644 --- a/drivers/staging/panel/panel.c +++ b/drivers/misc/panel.c | |||
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index e80268ae8c9d..5f9a97a77393 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig | |||
@@ -30,8 +30,6 @@ source "drivers/staging/wlan-ng/Kconfig" | |||
30 | 30 | ||
31 | source "drivers/staging/comedi/Kconfig" | 31 | source "drivers/staging/comedi/Kconfig" |
32 | 32 | ||
33 | source "drivers/staging/panel/Kconfig" | ||
34 | |||
35 | source "drivers/staging/rtl8192u/Kconfig" | 33 | source "drivers/staging/rtl8192u/Kconfig" |
36 | 34 | ||
37 | source "drivers/staging/rtl8192e/Kconfig" | 35 | source "drivers/staging/rtl8192e/Kconfig" |
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index ba160f1ec02d..dbab17e9d45c 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile | |||
@@ -7,7 +7,6 @@ obj-y += media/ | |||
7 | obj-$(CONFIG_SLICOSS) += slicoss/ | 7 | obj-$(CONFIG_SLICOSS) += slicoss/ |
8 | obj-$(CONFIG_PRISM2_USB) += wlan-ng/ | 8 | obj-$(CONFIG_PRISM2_USB) += wlan-ng/ |
9 | obj-$(CONFIG_COMEDI) += comedi/ | 9 | obj-$(CONFIG_COMEDI) += comedi/ |
10 | obj-$(CONFIG_PANEL) += panel/ | ||
11 | obj-$(CONFIG_RTL8192U) += rtl8192u/ | 10 | obj-$(CONFIG_RTL8192U) += rtl8192u/ |
12 | obj-$(CONFIG_RTL8192E) += rtl8192e/ | 11 | obj-$(CONFIG_RTL8192E) += rtl8192e/ |
13 | obj-$(CONFIG_R8712U) += rtl8712/ | 12 | obj-$(CONFIG_R8712U) += rtl8712/ |
diff --git a/drivers/staging/panel/Kconfig b/drivers/staging/panel/Kconfig deleted file mode 100644 index 3defa0133f2e..000000000000 --- a/drivers/staging/panel/Kconfig +++ /dev/null | |||
@@ -1,278 +0,0 @@ | |||
1 | config PANEL | ||
2 | tristate "Parallel port LCD/Keypad Panel support" | ||
3 | depends on PARPORT | ||
4 | ---help--- | ||
5 | Say Y here if you have an HD44780 or KS-0074 LCD connected to your | ||
6 | parallel port. This driver also features 4 and 6-key keypads. The LCD | ||
7 | is accessible through the /dev/lcd char device (10, 156), and the | ||
8 | keypad through /dev/keypad (10, 185). Both require misc device to be | ||
9 | enabled. This code can either be compiled as a module, or linked into | ||
10 | the kernel and started at boot. If you don't understand what all this | ||
11 | is about, say N. | ||
12 | |||
13 | config PANEL_PARPORT | ||
14 | int "Default parallel port number (0=LPT1)" | ||
15 | depends on PANEL | ||
16 | range 0 255 | ||
17 | default "0" | ||
18 | ---help--- | ||
19 | This is the index of the parallel port the panel is connected to. One | ||
20 | driver instance only supports one parallel port, so if your keypad | ||
21 | and LCD are connected to two separate ports, you have to start two | ||
22 | modules with different arguments. Numbering starts with '0' for LPT1, | ||
23 | and so on. | ||
24 | |||
25 | config PANEL_PROFILE | ||
26 | int "Default panel profile (0-5, 0=custom)" | ||
27 | depends on PANEL | ||
28 | range 0 5 | ||
29 | default "5" | ||
30 | ---help--- | ||
31 | To ease configuration, the driver supports different configuration | ||
32 | profiles for past and recent wirings. These profiles can also be | ||
33 | used to define an approximative configuration, completed by a few | ||
34 | other options. Here are the profiles : | ||
35 | |||
36 | 0 = custom (see further) | ||
37 | 1 = 2x16 parallel LCD, old keypad | ||
38 | 2 = 2x16 serial LCD (KS-0074), new keypad | ||
39 | 3 = 2x16 parallel LCD (Hantronix), no keypad | ||
40 | 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad | ||
41 | 5 = 2x40 parallel LCD (old one), with old keypad | ||
42 | |||
43 | Custom configurations allow you to define how your display is | ||
44 | wired to the parallel port, and how it works. This is only intended | ||
45 | for experts. | ||
46 | |||
47 | config PANEL_KEYPAD | ||
48 | depends on PANEL && PANEL_PROFILE="0" | ||
49 | int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)" | ||
50 | range 0 3 | ||
51 | default 0 | ||
52 | ---help--- | ||
53 | This enables and configures a keypad connected to the parallel port. | ||
54 | The keys will be read from character device 10,185. Valid values are : | ||
55 | |||
56 | 0 : do not enable this driver | ||
57 | 1 : old 6 keys keypad | ||
58 | 2 : new 6 keys keypad, as used on the server at www.ant-computing.com | ||
59 | 3 : Nexcom NSA1045's 4 keys keypad | ||
60 | |||
61 | New profiles can be described in the driver source. The driver also | ||
62 | supports simultaneous keys pressed when the keypad supports them. | ||
63 | |||
64 | config PANEL_LCD | ||
65 | depends on PANEL && PANEL_PROFILE="0" | ||
66 | int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)" | ||
67 | range 0 5 | ||
68 | default 0 | ||
69 | ---help--- | ||
70 | This enables and configures an LCD connected to the parallel port. | ||
71 | The driver includes an interpreter for escape codes starting with | ||
72 | '\e[L' which are specific to the LCD, and a few ANSI codes. The | ||
73 | driver will be registered as character device 10,156, usually | ||
74 | under the name '/dev/lcd'. There are a total of 6 supported types : | ||
75 | |||
76 | 0 : do not enable the driver | ||
77 | 1 : custom configuration and wiring (see further) | ||
78 | 2 : 2x16 & 2x40 parallel LCD (old wiring) | ||
79 | 3 : 2x16 serial LCD (KS-0074 based) | ||
80 | 4 : 2x16 parallel LCD (Hantronix wiring) | ||
81 | 5 : 2x16 parallel LCD (Nexcom wiring) | ||
82 | |||
83 | When type '1' is specified, other options will appear to configure | ||
84 | more precise aspects (wiring, dimensions, protocol, ...). Please note | ||
85 | that those values changed from the 2.4 driver for better consistency. | ||
86 | |||
87 | config PANEL_LCD_HEIGHT | ||
88 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
89 | int "Number of lines on the LCD (1-2)" | ||
90 | range 1 2 | ||
91 | default 2 | ||
92 | ---help--- | ||
93 | This is the number of visible character lines on the LCD in custom profile. | ||
94 | It can either be 1 or 2. | ||
95 | |||
96 | config PANEL_LCD_WIDTH | ||
97 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
98 | int "Number of characters per line on the LCD (1-40)" | ||
99 | range 1 40 | ||
100 | default 40 | ||
101 | ---help--- | ||
102 | This is the number of characters per line on the LCD in custom profile. | ||
103 | Common values are 16,20,24,40. | ||
104 | |||
105 | config PANEL_LCD_BWIDTH | ||
106 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
107 | int "Internal LCD line width (1-40, 40 by default)" | ||
108 | range 1 40 | ||
109 | default 40 | ||
110 | ---help--- | ||
111 | Most LCDs use a standard controller which supports hardware lines of 40 | ||
112 | characters, although sometimes only 16, 20 or 24 of them are really wired | ||
113 | to the terminal. This results in some non-visible but addressable characters, | ||
114 | and is the case for most parallel LCDs. Other LCDs, and some serial ones, | ||
115 | however, use the same line width internally as what is visible. The KS0074 | ||
116 | for example, uses 16 characters per line for 16 visible characters per line. | ||
117 | |||
118 | This option lets you configure the value used by your LCD in 'custom' profile. | ||
119 | If you don't know, put '40' here. | ||
120 | |||
121 | config PANEL_LCD_HWIDTH | ||
122 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
123 | int "Hardware LCD line width (1-64, 64 by default)" | ||
124 | range 1 64 | ||
125 | default 64 | ||
126 | ---help--- | ||
127 | Most LCDs use a single address bit to differentiate line 0 and line 1. Since | ||
128 | some of them need to be able to address 40 chars with the lower bits, they | ||
129 | often use the immediately superior power of 2, which is 64, to address the | ||
130 | next line. | ||
131 | |||
132 | If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and | ||
133 | 64 here for a 2x40. | ||
134 | |||
135 | config PANEL_LCD_CHARSET | ||
136 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
137 | int "LCD character set (0=normal, 1=KS0074)" | ||
138 | range 0 1 | ||
139 | default 0 | ||
140 | ---help--- | ||
141 | Some controllers such as the KS0074 use a somewhat strange character set | ||
142 | where many symbols are at unusual places. The driver knows how to map | ||
143 | 'standard' ASCII characters to the character sets used by these controllers. | ||
144 | Valid values are : | ||
145 | |||
146 | 0 : normal (untranslated) character set | ||
147 | 1 : KS0074 character set | ||
148 | |||
149 | If you don't know, use the normal one (0). | ||
150 | |||
151 | config PANEL_LCD_PROTO | ||
152 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
153 | int "LCD communication mode (0=parallel 8 bits, 1=serial)" | ||
154 | range 0 1 | ||
155 | default 0 | ||
156 | ---help--- | ||
157 | This driver now supports any serial or parallel LCD wired to a parallel | ||
158 | port. But before assigning signals, the driver needs to know if it will | ||
159 | be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires | ||
160 | (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals | ||
161 | (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits | ||
162 | parallel LCD, and 1 for a serial LCD. | ||
163 | |||
164 | config PANEL_LCD_PIN_E | ||
165 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" | ||
166 | int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) " | ||
167 | range -17 17 | ||
168 | default 14 | ||
169 | ---help--- | ||
170 | This describes the number of the parallel port pin to which the LCD 'E' | ||
171 | signal has been connected. It can be : | ||
172 | |||
173 | 0 : no connection (eg: connected to ground) | ||
174 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
175 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
176 | |||
177 | Default for the 'E' pin in custom profile is '14' (AUTOFEED). | ||
178 | |||
179 | config PANEL_LCD_PIN_RS | ||
180 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" | ||
181 | int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) " | ||
182 | range -17 17 | ||
183 | default 17 | ||
184 | ---help--- | ||
185 | This describes the number of the parallel port pin to which the LCD 'RS' | ||
186 | signal has been connected. It can be : | ||
187 | |||
188 | 0 : no connection (eg: connected to ground) | ||
189 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
190 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
191 | |||
192 | Default for the 'RS' pin in custom profile is '17' (SELECT IN). | ||
193 | |||
194 | config PANEL_LCD_PIN_RW | ||
195 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" | ||
196 | int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) " | ||
197 | range -17 17 | ||
198 | default 16 | ||
199 | ---help--- | ||
200 | This describes the number of the parallel port pin to which the LCD 'RW' | ||
201 | signal has been connected. It can be : | ||
202 | |||
203 | 0 : no connection (eg: connected to ground) | ||
204 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
205 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
206 | |||
207 | Default for the 'RW' pin in custom profile is '16' (INIT). | ||
208 | |||
209 | config PANEL_LCD_PIN_SCL | ||
210 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" | ||
211 | int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) " | ||
212 | range -17 17 | ||
213 | default 1 | ||
214 | ---help--- | ||
215 | This describes the number of the parallel port pin to which the serial | ||
216 | LCD 'SCL' signal has been connected. It can be : | ||
217 | |||
218 | 0 : no connection (eg: connected to ground) | ||
219 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
220 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
221 | |||
222 | Default for the 'SCL' pin in custom profile is '1' (STROBE). | ||
223 | |||
224 | config PANEL_LCD_PIN_SDA | ||
225 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" | ||
226 | int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) " | ||
227 | range -17 17 | ||
228 | default 2 | ||
229 | ---help--- | ||
230 | This describes the number of the parallel port pin to which the serial | ||
231 | LCD 'SDA' signal has been connected. It can be : | ||
232 | |||
233 | 0 : no connection (eg: connected to ground) | ||
234 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
235 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
236 | |||
237 | Default for the 'SDA' pin in custom profile is '2' (D0). | ||
238 | |||
239 | config PANEL_LCD_PIN_BL | ||
240 | depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" | ||
241 | int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) " | ||
242 | range -17 17 | ||
243 | default 0 | ||
244 | ---help--- | ||
245 | This describes the number of the parallel port pin to which the LCD 'BL' signal | ||
246 | has been connected. It can be : | ||
247 | |||
248 | 0 : no connection (eg: connected to ground) | ||
249 | 1..17 : directly connected to any of these pins on the DB25 plug | ||
250 | -1..-17 : connected to the same pin through an inverter (eg: transistor). | ||
251 | |||
252 | Default for the 'BL' pin in custom profile is '0' (uncontrolled). | ||
253 | |||
254 | config PANEL_CHANGE_MESSAGE | ||
255 | depends on PANEL | ||
256 | bool "Change LCD initialization message ?" | ||
257 | default "n" | ||
258 | ---help--- | ||
259 | This allows you to replace the boot message indicating the kernel version | ||
260 | and the driver version with a custom message. This is useful on appliances | ||
261 | where a simple 'Starting system' message can be enough to stop a customer | ||
262 | from worrying. | ||
263 | |||
264 | If you say 'Y' here, you'll be able to choose a message yourself. Otherwise, | ||
265 | say 'N' and keep the default message with the version. | ||
266 | |||
267 | config PANEL_BOOT_MESSAGE | ||
268 | depends on PANEL && PANEL_CHANGE_MESSAGE="y" | ||
269 | string "New initialization message" | ||
270 | default "" | ||
271 | ---help--- | ||
272 | This allows you to replace the boot message indicating the kernel version | ||
273 | and the driver version with a custom message. This is useful on appliances | ||
274 | where a simple 'Starting system' message can be enough to stop a customer | ||
275 | from worrying. | ||
276 | |||
277 | An empty message will only clear the display at driver init time. Any other | ||
278 | printf()-formatted message is valid with newline and escape codes. | ||
diff --git a/drivers/staging/panel/Makefile b/drivers/staging/panel/Makefile deleted file mode 100644 index 747c238b82f9..000000000000 --- a/drivers/staging/panel/Makefile +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | obj-$(CONFIG_PANEL) += panel.o | ||
diff --git a/drivers/staging/panel/TODO b/drivers/staging/panel/TODO deleted file mode 100644 index 3a6405ab91e0..000000000000 --- a/drivers/staging/panel/TODO +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | TODO: | ||
2 | - checkpatch.pl cleanups | ||
3 | - review major/minor usages | ||
4 | - review userspace api | ||
5 | - see if all of this could be easier done in userspace instead. | ||
6 | |||
7 | Please send patches to Greg Kroah-Hartman <greg@kroah.com> and | ||
8 | Willy Tarreau <willy@haproxy.com> | ||