mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 16:16:41 +07:00
69ebb22277
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 <Kristoffer.ericson@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
28 lines
825 B
C
28 lines
825 B
C
/*
|
|
* 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
|