aboutsummaryrefslogtreecommitdiff
path: root/include/linux/cs5535.h
AgeCommit message (Collapse)AuthorFilesLines
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206Thomas Gleixner1-4/+1
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of version 2 of the gnu general public license as published by the free software foundation extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 107 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Allison Randal <[email protected]> Reviewed-by: Richard Fontana <[email protected]> Reviewed-by: Steve Winslow <[email protected]> Reviewed-by: Alexios Zavras <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-07x86/olpc/xo1/sci: Report RTC wakeup eventsDaniel Drake1-0/+1
When the system is woken due to a RTC event, report the wakeup event on the relevant rtc device (if it can be found). Signed-off-by: Daniel Drake <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
2011-07-06x86, olpc: Add XO-1 RTC driverDaniel Drake1-0/+5
Add a driver to configure the XO-1 RTC via CS5536 MSRs, to be used as a system wakeup source via olpc-xo1-pm. Device detection is based on finding the relevant device tree node. Signed-off-by: Daniel Drake <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Acked-by: Andres Salomon <[email protected]> Acked-by: Grant Likely <[email protected]> Reviewed-by: Sebastian Andrzej Siewior <[email protected]> Cc: [email protected] Signed-off-by: H. Peter Anvin <[email protected]>
2011-07-06x86, olpc-xo1-sci: Add lid switch functionalityDaniel Drake1-0/+1
Configure the XO-1's lid switch GPIO to trigger an SCI interrupt, and correctly expose this input device which can be used as a wakeup source. Signed-off-by: Daniel Drake <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Acked-by: Andres Salomon <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
2011-07-06x86, olpc-xo1-sci: Add GPE handler and ebook switch functionalityDaniel Drake1-0/+22
The EC in the OLPC XO-1 delivers GPE events to provide various notifications. Add the basic code for GPE/EC event processing and enable the ebook switch, which can be used as a wakeup source. Signed-off-by: Daniel Drake <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Acked-by: Andres Salomon <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
2011-07-06x86, olpc: Add XO-1 SCI driver and power button controlDaniel Drake1-0/+8
The System Control Interrupt is used in the OLPC XO-1 to control various features of the laptop. Add the driver base and the power button functionality. This driver can't be built as a module, because functionality added in future patches means that some drivers need to know at boot-time whether SCI-based functionality is available. Signed-off-by: Daniel Drake <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Acked-by: Andres Salomon <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
2011-07-06x86, olpc: Add XO-1 suspend/resume supportDaniel Drake1-0/+3
Add code needed for basic suspend/resume of the XO-1 laptop. Based on earlier work by Jordan Crouse, Andres Salomon, and others. This patch incorporates all earlier feedback from Thomas Gleixner. To clarify a certain point (now more obvious in the code itself): On resume, OpenFirmware returns execution to Linux in protected mode with a kernel-compatible GDT already set up. The changes and simplifications suggested have all been included. Signed-off-by: Daniel Drake <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Acked-by: Andres Salomon <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
2011-07-06x86, olpc: Move CS5536-related constants to cs5535.hDaniel Drake1-0/+21
Move these definitions into the relevant header file. This was requested in the review of the upcoming XO-1 suspend/resume code. Signed-off-by: Daniel Drake <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Acked-by: Andres Salomon <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
2011-01-13drivers/staging/olpc_dcon: convert to new cs5535 gpio APIAndres Salomon1-0/+4
Drop the old geode_gpio crud, as well as the raw outl() calls; instead, use the Linux GPIO API where possible, and the cs5535_gpio API in other places. Note that we don't actually clean up the driver properly yet (once loaded, it always remains loaded). That'll come later.. This patch is necessary for building the driver. Signed-off-by: Andres Salomon <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2011-01-13drivers/gpio/cs5535-gpio.c: add some additional cs5535-specific GPIO ↵Andres Salomon1-0/+2
functionality This adds (well, re-adds actually) handling for events/IRQs through cs5535 GPIOs. In the wild and wooly world of CS5535, setup_event() is for assigning an IRQ to a GPIO filter/event pair, and set_irq() sets up the pair to trigger IRQs. These should really only be used in highly platform-specific drivers (such as OLPC's DCON driver). Sadly, because set_irq() uses MSRs, this causes the driver to become X86-specific. Signed-off-by: Andres Salomon <[email protected]> Signed-off-by: Daniel Drake <[email protected]> Cc: Grant Likely <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-12-15cs5535: define lxfb/gxfb MSRs in linux/cs5535.hAndres Salomon1-0/+13
..and include them in the lxfb/gxfb drivers rather than asm/geode.h (where possible). Signed-off-by: Andres Salomon <[email protected]> Cc: Jordan Crouse <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: john stultz <[email protected]> Cc: Chris Ball <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-12-15cs5535: move VSA2 checks into linux/cs5535.hAndres Salomon1-0/+32
Signed-off-by: Andres Salomon <[email protected]> Cc: Jordan Crouse <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: john stultz <[email protected]> Cc: Chris Ball <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-12-15cs5535: move the DIVIL MSR definition into linux/cs5535.hAndres Salomon1-0/+2
The only thing that uses this is the reboot_fixups code. Signed-off-by: Andres Salomon <[email protected]> Cc: Jordan Crouse <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: john stultz <[email protected]> Cc: Chris Ball <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-12-15cs5535: add a generic MFGPT driverAndres Salomon1-0/+67
This is based on the old code on arch/x86/kernel/mfgpt_32.c, except it's not x86 specific, it's modular, and it makes use of a PCI BAR rather than a random MSR. Currently module unloading is not supported; it's uncertain whether or not it can be made work with the hardware. [[email protected]: add X86 dependency] Signed-off-by: Andres Salomon <[email protected]> Cc: Jordan Crouse <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: john stultz <[email protected]> Cc: Chris Ball <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-12-15cs5535-gpio: add AMD CS5535/CS5536 GPIO driver supportAndres Salomon1-0/+58
This creates a CS5535/CS5536 GPIO driver which uses a gpio_chip backend (allowing GPIO users to use the generic GPIO API if desired) while also allowing architecture-specific users directly (via the cs5535_gpio_* functions). Tested on an OLPC machine. Some Leemotes also use CS5536 (with a mips cpu), which is why this is in drivers/gpio rather than arch/x86. Currently, it conflicts with older geode GPIO support; once MFGPT support is reworked to also be more generic, the older geode code will be removed. Signed-off-by: Andres Salomon <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: Jordan Crouse <[email protected]> Cc: David Brownell <[email protected]> Reviewed-by: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>