From: Wu Zhangin <wuzhangjin@gmail.com>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Pavel Machek <pavel@ucw.cz>, "Rafael J. Wysocki" <rjw@sisk.pl>,
linux-mips@linux-mips.org, zhangfx@lemote.com,
Wu Zhangjin <wuzhangjin@gmail.com>
Subject: [PATCH v6 0/8] Loongson: YeeLoong: add platform specific drivers
Date: Tue, 1 Dec 2009 19:06:13 +0800 [thread overview]
Message-ID: <cover.1259660040.git.wuzhangjin@gmail.com> (raw)
From: Wu Zhangjin <wuzhangjin@gmail.com>
This patchset adds platform specific drivers for YeeLoong netbook. including
the backlight, battery, hwmon, video output, suspend and hotkey(input) drivers.
These drivers provide standard interfaces to the user-space applications to
manage the relative devices:
Modules Tools
- backlight
/sys/class/backlight/ kpowersave, gnome-power-manager
- battery
/proc/apm kpowersave, gnome-power-manager
- hwmon
/sys/class/hwmon/ lm-sensors, sensors-applet...
- video output
/sys/class/video_output ?
- suspend
/sys/power/state kpowersave, gnome-power-manager
- hotkey
/sys/class/input/ gnome-settings-daemon ?
To utilize the above interfaces, you are recommended to install the latest hal,
dbus.
This v6 revision incorporates with the feedbacks from Ralf, Pavel Machek,
Rafael J. Wysocki and Dmitry Torokhov.
Changes from the old v5 revision:
- Cleanup the "select" and "depend" of the options
Replace some "select"s by "depend"s to avoid potential compiling
errors.
- Cleanup the hotkey(input) driver
Merge several functions, Cleanup the comments, Use Switch...Case
instead of the array.
- Fixup of the video output driver
Seems the video output subsystem doesn't handle the input value, we
handle it outselves via !!od->request_state.
- Append the yl_ prefix to the file names
yl_ prefix is needed to distinguish it with the next patchset for
lynloong pc platform drivers.
All changes have been tested again.
Best Regards,
Wu Zhangjin
Wu Zhangjin (8):
Loongson: Lemote-2F: add platform specific submenu
Loongson: YeeLoong: add platform specific option
Loongson: YeeLoong: add backlight driver
Loongson: YeeLoong: add battery driver
Loongson: YeeLoong: add hwmon driver
Loongson: YeeLoong: add video output driver
Loongson: YeeLoong: add suspend driver
Loongson: YeeLoong: add hotkey driver
arch/mips/kernel/setup.c | 1 +
arch/mips/loongson/Kconfig | 21 +
arch/mips/loongson/lemote-2f/Makefile | 7 +-
arch/mips/loongson/lemote-2f/ec_kb3310b.c | 130 ------
arch/mips/loongson/lemote-2f/ec_kb3310b.h | 188 --------
arch/mips/loongson/lemote-2f/pm.c | 4 +-
arch/mips/loongson/lemote-2f/reset.c | 2 +-
.../loongson/lemote-2f/yeeloong_laptop/Kconfig | 65 +++
.../loongson/lemote-2f/yeeloong_laptop/Makefile | 10 +
.../lemote-2f/yeeloong_laptop/ec_kb3310b.c | 126 ++++++
.../lemote-2f/yeeloong_laptop/ec_kb3310b.h | 193 +++++++++
.../lemote-2f/yeeloong_laptop/yl_backlight.c | 93 ++++
.../lemote-2f/yeeloong_laptop/yl_battery.c | 127 ++++++
.../loongson/lemote-2f/yeeloong_laptop/yl_hotkey.c | 452 ++++++++++++++++++++
.../loongson/lemote-2f/yeeloong_laptop/yl_hwmon.c | 239 +++++++++++
.../lemote-2f/yeeloong_laptop/yl_suspend.c | 135 ++++++
.../loongson/lemote-2f/yeeloong_laptop/yl_vo.c | 164 +++++++
17 files changed, 1635 insertions(+), 322 deletions(-)
delete mode 100644 arch/mips/loongson/lemote-2f/ec_kb3310b.c
delete mode 100644 arch/mips/loongson/lemote-2f/ec_kb3310b.h
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/Kconfig
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/Makefile
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/ec_kb3310b.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/ec_kb3310b.h
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_backlight.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_battery.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_hotkey.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_hwmon.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_suspend.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_vo.c
WARNING: multiple messages have this Message-ID (diff)
From: Wu Zhangin <wuzhangjin@gmail.com>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Pavel Machek <pavel@ucw.cz>, "Rafael J. Wysocki" <rjw@sisk.pl>,
linux-mips@linux-mips.org, zhangfx@lemote.com,
Wu Zhangjin <wuzhangjin@gmail.com>
Subject: [lm-sensors] [PATCH v6 0/8] Loongson: YeeLoong: add platform
Date: Tue, 01 Dec 2009 11:09:58 +0000 [thread overview]
Message-ID: <cover.1259660040.git.wuzhangjin@gmail.com> (raw)
From: Wu Zhangjin <wuzhangjin@gmail.com>
This patchset adds platform specific drivers for YeeLoong netbook. including
the backlight, battery, hwmon, video output, suspend and hotkey(input) drivers.
These drivers provide standard interfaces to the user-space applications to
manage the relative devices:
Modules Tools
- backlight
/sys/class/backlight/ kpowersave, gnome-power-manager
- battery
/proc/apm kpowersave, gnome-power-manager
- hwmon
/sys/class/hwmon/ lm-sensors, sensors-applet...
- video output
/sys/class/video_output ?
- suspend
/sys/power/state kpowersave, gnome-power-manager
- hotkey
/sys/class/input/ gnome-settings-daemon ?
To utilize the above interfaces, you are recommended to install the latest hal,
dbus.
This v6 revision incorporates with the feedbacks from Ralf, Pavel Machek,
Rafael J. Wysocki and Dmitry Torokhov.
Changes from the old v5 revision:
- Cleanup the "select" and "depend" of the options
Replace some "select"s by "depend"s to avoid potential compiling
errors.
- Cleanup the hotkey(input) driver
Merge several functions, Cleanup the comments, Use Switch...Case
instead of the array.
- Fixup of the video output driver
Seems the video output subsystem doesn't handle the input value, we
handle it outselves via !!od->request_state.
- Append the yl_ prefix to the file names
yl_ prefix is needed to distinguish it with the next patchset for
lynloong pc platform drivers.
All changes have been tested again.
Best Regards,
Wu Zhangjin
Wu Zhangjin (8):
Loongson: Lemote-2F: add platform specific submenu
Loongson: YeeLoong: add platform specific option
Loongson: YeeLoong: add backlight driver
Loongson: YeeLoong: add battery driver
Loongson: YeeLoong: add hwmon driver
Loongson: YeeLoong: add video output driver
Loongson: YeeLoong: add suspend driver
Loongson: YeeLoong: add hotkey driver
arch/mips/kernel/setup.c | 1 +
arch/mips/loongson/Kconfig | 21 +
arch/mips/loongson/lemote-2f/Makefile | 7 +-
arch/mips/loongson/lemote-2f/ec_kb3310b.c | 130 ------
arch/mips/loongson/lemote-2f/ec_kb3310b.h | 188 --------
arch/mips/loongson/lemote-2f/pm.c | 4 +-
arch/mips/loongson/lemote-2f/reset.c | 2 +-
.../loongson/lemote-2f/yeeloong_laptop/Kconfig | 65 +++
.../loongson/lemote-2f/yeeloong_laptop/Makefile | 10 +
.../lemote-2f/yeeloong_laptop/ec_kb3310b.c | 126 ++++++
.../lemote-2f/yeeloong_laptop/ec_kb3310b.h | 193 +++++++++
.../lemote-2f/yeeloong_laptop/yl_backlight.c | 93 ++++
.../lemote-2f/yeeloong_laptop/yl_battery.c | 127 ++++++
.../loongson/lemote-2f/yeeloong_laptop/yl_hotkey.c | 452 ++++++++++++++++++++
.../loongson/lemote-2f/yeeloong_laptop/yl_hwmon.c | 239 +++++++++++
.../lemote-2f/yeeloong_laptop/yl_suspend.c | 135 ++++++
.../loongson/lemote-2f/yeeloong_laptop/yl_vo.c | 164 +++++++
17 files changed, 1635 insertions(+), 322 deletions(-)
delete mode 100644 arch/mips/loongson/lemote-2f/ec_kb3310b.c
delete mode 100644 arch/mips/loongson/lemote-2f/ec_kb3310b.h
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/Kconfig
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/Makefile
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/ec_kb3310b.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/ec_kb3310b.h
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_backlight.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_battery.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_hotkey.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_hwmon.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_suspend.c
create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/yl_vo.c
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next reply other threads:[~2009-12-01 11:06 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 11:06 Wu Zhangin [this message]
2009-12-01 11:09 ` [lm-sensors] [PATCH v6 0/8] Loongson: YeeLoong: add platform Wu Zhangin
[not found] ` <cover.1259664573.git.wuzhangjin@gmail.com>
2009-12-01 11:07 ` [PATCH v6 1/8] Loongson: Lemote-2F: add platform specific submenu Wu Zhangin
2009-12-01 13:32 ` Ralf Baechle
2009-12-01 13:35 ` Wu Zhangjin
2009-12-01 11:07 ` [PATCH v6 2/8] Loongson: YeeLoong: add platform specific option Wu Zhangin
2009-12-01 13:34 ` Ralf Baechle
2009-12-01 13:39 ` Wu Zhangjin
2009-12-01 14:17 ` Ralf Baechle
2009-12-01 11:08 ` [PATCH v6 3/8] Loongson: YeeLoong: add backlight driver Wu Zhangin
2009-12-01 14:06 ` Ralf Baechle
2009-12-01 14:52 ` Wu Zhangjin
2009-12-01 14:57 ` Ralf Baechle
2009-12-01 15:01 ` Wu Zhangjin
2009-12-01 15:23 ` Ralf Baechle
[not found] ` <1259681303.13403.4.camel@falcon.domain.org>
2009-12-01 15:41 ` Ralf Baechle
2009-12-01 11:09 ` [PATCH v6 4/8] Loongson: YeeLoong: add battery driver Wu Zhangin
2009-12-01 14:20 ` Ralf Baechle
2009-12-01 11:09 ` [PATCH v6 5/8] Loongson: YeeLoong: add hwmon driver Wu Zhangin
2009-12-01 11:09 ` [lm-sensors] " Wu Zhangin
2009-12-01 14:27 ` Ralf Baechle
2009-12-01 14:27 ` [lm-sensors] " Ralf Baechle
2009-12-01 11:10 ` [PATCH v6 6/8] Loongson: YeeLoong: add video output driver Wu Zhangin
2009-12-01 14:55 ` Ralf Baechle
2009-12-01 11:11 ` [PATCH v6 7/8] Loongson: YeeLoong: add suspend driver Wu Zhangin
2009-12-01 12:24 ` Rafael J. Wysocki
2009-12-01 15:18 ` Ralf Baechle
2009-12-01 15:18 ` Ralf Baechle
2009-12-01 12:24 ` Rafael J. Wysocki
2009-12-01 14:51 ` Ralf Baechle
2009-12-01 14:51 ` Ralf Baechle
2009-12-01 11:11 ` Wu Zhangin
2009-12-01 11:12 ` [PATCH v6 8/8] Loongson: YeeLoong: add hotkey driver Wu Zhangin
2009-12-01 15:40 ` Ralf Baechle
2009-12-01 18:03 ` Dmitry Torokhov
2009-12-02 9:43 ` Wu Zhangjin
2009-12-01 11:16 ` [PATCH v6 0/8] Loongson: YeeLoong: add platform specific drivers Wu Zhangjin
-- strict thread matches above, loose matches on Subject: below --
2009-12-01 11:11 Wu Zhangin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1259660040.git.wuzhangjin@gmail.com \
--to=wuzhangjin@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=pavel@ucw.cz \
--cc=ralf@linux-mips.org \
--cc=rjw@sisk.pl \
--cc=zhangfx@lemote.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.