Hi there,
lately I have reviewed the old code from kernel diff-2.4.9-ac9-rmk1. 
There I have found an entry in ucb1200_audio.c of the function 

static uint mcp_read_buttons(void)
{
  ucb1200_write_reg(UCB1200_REG_IO_DIRECTION, CODEC_ITSY_IO_DIRECTIONS);
  ucb1200_write_reg(UCB1200_REG_IO_DATA, 0);
  
   return((~ucb1200_read_reg(UCB1200_REG_IO_DATA)) & CODEC_ITSY_IO_BUTTONS);
}

Is this could equal to the the code of 2.4.18-rmk2 of the function
mcp_sa1100_read??????

Further I found the following functions for h3600:
static void action_button_handler(int irq, void *dev_id, struct pt_regs
*regs)
static void suspend_button_task_handler(void *data) 
static int keyEvent(ID * pDev )
static int keyRead(ID * pDev)


How does h3600 devices handel the reading of the buttons? With a demon?
Is a source of the demon on handhelds or somewhere else around?

My goal is to implement something like the code above to make it possible
that I can use the buttons on my device "SIMpad" (SA1100).
I can use any tips.

Thanks for helping
Juergen

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
http://www.arm.linux.org.uk/armlinux/mailinglists.php
Please visit the above addresses for information on this list.

Reply via email to