mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[ARM] 4506/1: HP Jornada 7XX: Addition of SSP Platform Driver
These patches add full SSP/MCU support for the HP Jornada 720 machine. Its needed to handle keyboard, touchscreen, battery and backlight/lcd. The main driver exports functions and the header file exports the command values. When talking to the MCU the general procedure is to start MCU, send command (using ssp_inout(command)), the proper reply is always TXDUMMY. After receiving TXDUMMY you can send the value you wish pushed (for example brightness level). End with ssp_end() so the spinlock gets unlocked. Drivers using this havent been implemented yet, but will shortly. Signed-off-by: Kristoffer Ericson <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
7b4c965a0b
commit
69ebb22277
4 changed files with 241 additions and 2 deletions
27
include/asm-arm/arch-sa1100/jornada720.h
Normal file
27
include/asm-arm/arch-sa1100/jornada720.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* include/asm-arm/arch-sa1100/jornada720.h
|
||||
*
|
||||
* This file contains SSP/MCU communication definitions for HP Jornada 710/720/728
|
||||
*
|
||||
* Copyright (C) 2007 Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
|
||||
* Copyright (C) 2000 John Ankcorn <jca@lcs.mit.edu>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
*/
|
||||
|
||||
/* HP Jornada 7xx microprocessor commands */
|
||||
#define GETBATTERYDATA 0xc0
|
||||
#define GETSCANKEYCODE 0x90
|
||||
#define GETTOUCHSAMPLES 0xa0
|
||||
#define GETCONTRAST 0xD0
|
||||
#define SETCONTRAST 0xD1
|
||||
#define GETBRIGHTNESS 0xD2
|
||||
#define SETBRIGHTNESS 0xD3
|
||||
#define CONTRASTOFF 0xD8
|
||||
#define BRIGHTNESSOFF 0xD9
|
||||
#define PWMOFF 0xDF
|
||||
#define TXDUMMY 0x11
|
||||
#define ERRORCODE 0x00
|
||||
Loading…
Reference in a new issue