summaryrefslogtreecommitdiff
path: root/packages/linux/linux-jlime-jornada7xx-2.6.17/AsmArm-ArchSa1100-Jornada720.patch
diff options
context:
space:
mode:
authorKristoffer Ericson <kristoffer_e1@hotmail.com>2006-07-14 13:57:06 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-07-14 13:57:06 +0000
commitb4fb1a340df59e0db01de9b022ca4697b3d35972 (patch)
tree787b02605bc4e0bb7b2406daa3191b9fd7660526 /packages/linux/linux-jlime-jornada7xx-2.6.17/AsmArm-ArchSa1100-Jornada720.patch
parent87fce2574a38e51cae0552f07371671ed1bc11df (diff)
Moving linux-jlime-${ARCH}-* -> linux-jlime-${machine}-*:
* Changing from arch->machine due to the addition of 56x support. This requires different kernel but since both 72x and 56x are arm we need to use MACHINE to define instead. conf/local.conf : Changing ARCH -> MACHINE.
Diffstat (limited to 'packages/linux/linux-jlime-jornada7xx-2.6.17/AsmArm-ArchSa1100-Jornada720.patch')
-rw-r--r--packages/linux/linux-jlime-jornada7xx-2.6.17/AsmArm-ArchSa1100-Jornada720.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/linux/linux-jlime-jornada7xx-2.6.17/AsmArm-ArchSa1100-Jornada720.patch b/packages/linux/linux-jlime-jornada7xx-2.6.17/AsmArm-ArchSa1100-Jornada720.patch
new file mode 100644
index 0000000000..dd35dec53f
--- /dev/null
+++ b/packages/linux/linux-jlime-jornada7xx-2.6.17/AsmArm-ArchSa1100-Jornada720.patch
@@ -0,0 +1,50 @@
+--- linux-2.6.17-vanilla/include/asm-arm/arch-sa1100/jornada720.h 2006-06-18 01:49:35.000000000 +0000
++++ linux-2.6.17/include/asm-arm/arch-sa1100/jornada720.h 2006-07-10 17:06:11.000000000 +0000
+@@ -11,6 +11,8 @@
+ #error "include <asm/hardware.h> instead"
+ #endif
+
++#define jornada720_mcu_read() jornada720_mcu_byte(MCU_TxDummy)
++
+ #define SA1111_BASE (0x40000000)
+
+ #define GPIO_JORNADA720_KEYBOARD GPIO_GPIO(0)
+@@ -19,9 +21,38 @@
+ #define GPIO_JORNADA720_KEYBOARD_IRQ IRQ_GPIO0
+ #define GPIO_JORNADA720_MOUSE_IRQ IRQ_GPIO9
+
++/* Epson 1356 LCD controll parameters */
++#define REGISTER_OFFSET ((unsigned char *) 0xf0000000/* 0 */)
++#define DISP_MEM_OFFSET ((unsigned char *) 0xf1000000/* 0 */)
++#define DISP_MEM_OFFSET_PHYS ((unsigned char *) 0x48200000/* 0 filip wtf? */)
++#define ALLOCATED_FB_MEM_SIZE 0x80000 /* display memory size (512kb) */
++
++#define MAX_BPP 16
++#define MAX_XRES 640
++#define MAX_YRES 240
++#define MIN_XRES 64
++#define MIN_YRES 64
++
++/* MCU COMMANDS */
++#define MCU_GetBatteryData 0xc0
++#define MCU_GetScanKeyCode 0x90
++#define MCU_GetTouchSamples 0xa0
++#define MCU_GetContrast 0xD0
++#define MCU_SetContrast 0xD1
++#define MCU_GetBrightness 0xD2
++#define MCU_SetBrightness 0xD3
++#define MCU_ContrastOff 0xD8
++#define MCU_BrightnessOff 0xD9
++#define MCU_PWMOFF 0xDF
++#define MCU_TxDummy 0x11
++#define MCU_ErrorCode 0x00
++
+ #ifndef __ASSEMBLY__
+
+ void jornada720_mcu_init(void);
++int jornada720_mcu_byte(int arg_data);
++int jornada720_mcu_start(int arg_data);
++void jornada720_mcu_end(void);
+ void jornada_contrast(int arg_contrast);
+ void jornada720_battery(void);
+ int jornada720_getkey(unsigned char *data, int size);