This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP3 GPMC CONFIG TROUBLE

Other Parts Discussed in Thread: OMAP3530

Helloeveryone

 I am trying to use GPMC with CS6 on a  OMAP3530 board .  there is a cs5 gpmc config for smsc9220 in uboot and linux ,the smdc9220 is work. I want to enable gpmc cs6 like cs5 config, but cs6 did not work .

For test ,I test cs 6 in uboot code . and this is   code  .

       writel(FPGA_GPMC_CONFIG1, &gpmc_cfg->cs[6].config1);

       writel(FPGA_GPMC_CONFIG2, &gpmc_cfg->cs[6].config2);

       writel(FPGA_GPMC_CONFIG3, &gpmc_cfg->cs[6].config3);

       writel(FPGA_GPMC_CONFIG4, &gpmc_cfg->cs[6].config4);

       writel(FPGA_GPMC_CONFIG5, &gpmc_cfg->cs[6].config5);

       writel(FPGA_GPMC_CONFIG6, &gpmc_cfg->cs[6].config6);

       writel(FPGA_GPMC_CONFIG7, &gpmc_cfg->cs[6].config7);

      

#define FPGA_GPMC_CONFIG1 0x00001000

#define FPGA_GPMC_CONFIG2 0x001e1e01

#define FPGA_GPMC_CONFIG3 0x00080300

#define FPGA_GPMC_CONFIG4 0x1c091c09

#define FPGA_GPMC_CONFIG5 0x04181f1f

#define FPGA_GPMC_CONFIG6 0x00000FCF

#define FPGA_GPMC_CONFIG7 0x00000f70

I want to say ,I have troubled a lot time .and for now ,I have only know 7 register for gpmc .  Is there any config for gpmc and It is addr not correct ?

From I know ,gpmc_base_cs 6 is 3000 0000 ,Is it right ? when I read cyclely  addr 3000 0000,It have no response wave  with the  oscilloscope.

I am confused about if I missed any config for gpmc except seven  GPMC register , or I get a wrong base addr ?

Thanks.

  • I want to add something. I find muxmode function in the uboot like this, I change ncs6value like cs5 ,but it not work

           MUX_VAL(CP(GPMC_NCS0),         (IDIS | PTU | EN  | M0)) /*GPMC_nCS0*/\

    MUX_VAL(CP(GPMC_NCS1),           (IDIS | PTU | EN  | M0)) /*GPMC_nCS1*/\

           MUX_VAL(CP(GPMC_NCS2),           (IDIS | PTU | EN  | M0)) /*GPMC_nCS2*/\

           MUX_VAL(CP(GPMC_NCS3),           (IDIS | PTU | EN  | M0)) /*GPMC_nCS3*/\

           MUX_VAL(CP(GPMC_NCS4),           (IDIS | PTU | EN  | M0)) /*GPMC_nCS4*/\

           MUX_VAL(CP(GPMC_NCS5),           (IDIS | PTU | EN  | M0)) /*GPMC_nCS5*/\

           MUX_VAL(CP(GPMC_NCS6),           (IDIS | PTD | DIS | M0)) /*GPMC_nCS6*/\

           MUX_VAL(CP(GPMC_NCS7),           (IDIS | PTD | DIS | M0)) /*GPMC_nCS7*/\