How to enhance NAND Flash clock in i.MX6UL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enhance NAND Flash clock in i.MX6UL

Jump to solution
736 Views
lintunghui
Contributor I

Has anyone modified the Flash clock clock in iMX6UL? I have some

problem in enhancing NAND Flash speed. I see the kerenl patch in iMX6DL

with kernel 3.0.35. The patch only use clk_set_rate to enhance enfc_clk. And

it works. So if I want to enhance the NAND Flash clock in iMX6UL with kernel 4.1.15,

what should I have to modify? 

I already tried to use clk_set_rate to set gpmi_io clock, but it not works.

Should I modify dtb file or other setting?

Labels (1)
0 Kudos
1 Solution
474 Views
art
NXP Employee
NXP Employee

Check the Chapter 33 of the attached document. Check the driver source code at drivers/mtd/nand/, as described in the chapter.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
474 Views
lintunghui
Contributor I

Thank for your answer

in kernel source code

drivers/mtd/nand/gpmi-nand/gpmi-nand.c

function gpmi_get_clks

The function set gpmi clock here, modify and it finally worked

clk_set_rate(r->clock[0], 22000000);

0 Kudos
475 Views
art
NXP Employee
NXP Employee

Check the Chapter 33 of the attached document. Check the driver source code at drivers/mtd/nand/, as described in the chapter.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos