how to setup GPMI NAND timing

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to setup GPMI NAND timing

ソリューションへジャンプ
2,923件の閲覧回数
x10
Contributor V

Hi, all

In Linux gpmi nand driver for imx28evk, I can not find the code to setup timing parameters into hardware registers. For example, in gpmi-nfc-hal-v1.c, the funtion set_timing(...) doesn't really write nfc's hardware registers, the function is as follows: 

/**
* set_timing() - Configures the NFC timing.
*
* @this: Per-device data.
* @timing: The timing of interest.
*/
static int set_timing(struct gpmi_nfc_data *this,
const struct gpmi_nfc_timing *timing)
{
struct nfc_hal *nfc = this->nfc;

/* Accept the new timing. */

nfc->timing = *timing;

/* Return success. */

return 0;

}

Some helps are needed for me to figure this problem out. Thanks very much.

BR

Cheng Shi

Emtronix

ラベル(1)
0 件の賞賛
返信
1 解決策
1,907件の閲覧回数
HuangShijie
Contributor III

yes.

But if the EDO mode is enabled with the ONFI nand.

The timing setting will be changed.

You can read the latest Linus's kernel for reference.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,907件の閲覧回数
x10
Contributor V

I'm sure that no real NAND timing setup is done in gpmi_nfc_hal_v1.c. As there are default settings which can work on most of Nandflash chips, all the nandflash r/w work ok.

0 件の賞賛
返信
1,908件の閲覧回数
HuangShijie
Contributor III

yes.

But if the EDO mode is enabled with the ONFI nand.

The timing setting will be changed.

You can read the latest Linus's kernel for reference.

0 件の賞賛
返信