static int spi_drv_interrupt(int irq, void *dev_id)
{
volatile int temp = 0;
int power = 1;
int i = 7;
printk("here is in interrupt\n");
for (; i >= 0; i--){
while ((GPEDAT & (1 << 13)) == 0){;};
if ((GPEDAT & (1 << 13)) != 0){
printk("here is in loop\n");
temp = temp + power;
power = power * 2;
}
{
int ret;
unsigned int eint_irq;
int ret_val;
GPFCON = (GPFCON | 0x0030) & 0xFFEF;
printk("SPI Driver.\n");
ret = register_chrdev(major, NAME, &spi_drv_fops);
if (ret<0) {
printk("Unable to register character device!\n");
return ret;
}