Hi:

    I am reading bootldr code(2.11.2 with JD's Mar-21-2001 
patch). 
    The SA-1110 manual documents that after Reset, GPDR=0x0.

    So I am confused here:

#ifdef CONFIG_ASSABET
ENTRY(GetSCR)
#define GPIO_2_9 (0x3fc)

        ldr     r0, GPIOBase
        ldr     r1, [r0, #SA1100_GPDR]

  -- Here, according to the manural,r1=0x00000000.

        and     r1, r1, #GPIO_2_9

  -- Here, r1=0x0, too. GPIO_2_9 is also for input. But they
     should be output. Do I misunderstand something? 
     Waiting for help. Thank you.



        str     r1, [r0, #SA1100_GPDR]
        mov     r1, #GPIO_2_9
        str     r1, [r0, #SA1100_GPSR]
        ldr     r1, [r0, #SA1100_GPDR]
        bic     r1, r1, #GPIO_2_9
        str     r1, [r0, #SA1100_GPDR]
        
        mov     r2, #100
1:      ldr     r1, [r0, #SA1100_GPLR]
        subs    r2, r2, #1
        bne     1b

        and     r2, r1, #GPIO_2_9
        ldr     r1, SCR
        str     r2, [r1]

        ldr     r1, [r0, #SA1100_GPDR]
        and     r1, r1, #GPIO_2_9
        str     r1, [r0, #SA1100_GPDR]

        mov     pc, lr
#endif
______________________________________

===================================================================
������ѵ������� (http://mail.sina.com.cn)
����Ѱ��ǧ�ٶ�!û��"��������",����"��˫�ɶ�"? (http://newchat.sina.com.cn)

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to