From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 08 Dec 2009 15:16:20 +0100 (CET) Received: from mail-px0-f176.google.com ([209.85.216.176]:47541 "EHLO mail-px0-f176.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1494186AbZLHOQQ (ORCPT ); Tue, 8 Dec 2009 15:16:16 +0100 Received: by pxi6 with SMTP id 6so4090402pxi.0 for ; Tue, 08 Dec 2009 06:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=zmVR5OBUBjCw+ZU02rSMDSCNYnP2Fhip3Bbz1EdFlwM=; b=xWeDIuv446GQIKWGk5rtB7/iBd013JFDS4R++tMmloDTVJmDrNm2/T3RV2KWkjR5Mf a/ePZWGtrx2Qp2VpCecIxh/7yWPjuEctLFDHKIFK/JL9/v9HTD87kuVcFA7Kx6lGU9B/ 5NEgTUzrS4Z4/V+i2qvVJ0UrEFMvFrpWCpCGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=vdu3NIsYFZZM4gqcYXUT/34fM+5JAwd/BJ+3ipN7ZTMDajrTuQESm9GmxC5PcEf09w QVGoZZ8wnsIkjz86nnZ2i5xIzsRGNjjVbD5yTCuwRvy4JoVFszB4QTmzqoQls2Byi4Dp B9eoXEZQquPlyPm+Lx92g6QSNOJNMaMiPTlYA= Received: by 10.115.99.11 with SMTP id b11mr2418459wam.17.1260281768690; Tue, 08 Dec 2009 06:16:08 -0800 (PST) Received: from localhost.localdomain ([222.92.8.142]) by mx.google.com with ESMTPS id 22sm6030062pzk.2.2009.12.08.06.16.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 06:16:08 -0800 (PST) From: Wu Zhangjin To: Ralf Baechle Cc: akpm@linux-foundation.org, Wu Zhangjin , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , "Rafael J . Wysocki" , zhangfx@lemote.com, linux-laptop@vger.kernel.org, Stephen Rothwell , Pavel Machek Subject: [PATCH v9 0/8] Loongson: YeeLoong: add platform drivers Date: Tue, 8 Dec 2009 22:15:48 +0800 Message-Id: X-Mailer: git-send-email 1.6.2.1 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 25372 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wuzhangjin@gmail.com Precedence: bulk X-list: linux-mips From: Wu Zhangjin Hi, Ralf and Andrew Morton Could you please queue this patchset for 2.6.33? Of course, any new feedbacks are welcome, thanks! Best Regards, Wu Zhangjin ------------------ This patchset adds platform specific drivers for YeeLoong netbook. including the backlight, battery, hwmon, video output, suspend and hotkey(input) subdrivers. These drivers provide standard interfaces to the user-space applications to manage the related devices. Changes from v8: o Cleanup of the get_battery_current() We need to return the signed value directly for the current flowing into and from the battery are totally different, and since the other platforms use value>0 indicates the discharge, so, we return -value here. (Thanks to Pavel Machek for giving this feedback!) Wu Zhangjin (8): MIPS: add subdirectory for platform extension drivers Loongson: YeeLoong: add platform driver Loongson: YeeLoong: add backlight driver Loongson: YeeLoong: add battery driver Loongson: YeeLoong: add hardware monitoring driver Loongson: YeeLoong: add video output driver Loongson: YeeLoong: add suspend support Loongson: YeeLoong: add input/hotkey driver arch/mips/include/asm/mach-loongson/ec_kb3310b.h | 191 ++++ arch/mips/include/asm/mach-loongson/loongson.h | 6 + arch/mips/loongson/common/cmdline.c | 8 + arch/mips/loongson/lemote-2f/Makefile | 2 +- arch/mips/loongson/lemote-2f/ec_kb3310b.c | 12 +- arch/mips/loongson/lemote-2f/ec_kb3310b.h | 188 ---- arch/mips/loongson/lemote-2f/platform.c | 40 + arch/mips/loongson/lemote-2f/pm.c | 4 +- arch/mips/loongson/lemote-2f/reset.c | 2 +- drivers/platform/Kconfig | 4 + drivers/platform/Makefile | 1 + drivers/platform/mips/Kconfig | 33 + drivers/platform/mips/Makefile | 5 + drivers/platform/mips/yeeloong_laptop.c | 1035 ++++++++++++++++++++++ 14 files changed, 1331 insertions(+), 200 deletions(-) create mode 100644 arch/mips/include/asm/mach-loongson/ec_kb3310b.h delete mode 100644 arch/mips/loongson/lemote-2f/ec_kb3310b.h create mode 100644 arch/mips/loongson/lemote-2f/platform.c create mode 100644 drivers/platform/mips/Kconfig create mode 100644 drivers/platform/mips/Makefile create mode 100644 drivers/platform/mips/yeeloong_laptop.c