File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
drivers/mtd/nand/raw/atmel Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ struct atmel_pmecc_caps {
143
143
int nstrengths ;
144
144
int el_offset ;
145
145
bool correct_erased_chunks ;
146
+ bool clk_ctrl ;
146
147
};
147
148
148
149
struct atmel_pmecc {
@@ -843,6 +844,10 @@ static struct atmel_pmecc *atmel_pmecc_create(struct platform_device *pdev,
843
844
if (IS_ERR (pmecc -> regs .errloc ))
844
845
return ERR_CAST (pmecc -> regs .errloc );
845
846
847
+ /* pmecc data setup time */
848
+ if (caps -> clk_ctrl )
849
+ writel (PMECC_CLK_133MHZ , pmecc -> regs .base + ATMEL_PMECC_CLK );
850
+
846
851
/* Disable all interrupts before registering the PMECC handler. */
847
852
writel (0xffffffff , pmecc -> regs .base + ATMEL_PMECC_IDR );
848
853
atmel_pmecc_reset (pmecc );
@@ -896,6 +901,7 @@ static struct atmel_pmecc_caps at91sam9g45_caps = {
896
901
.strengths = atmel_pmecc_strengths ,
897
902
.nstrengths = 5 ,
898
903
.el_offset = 0x8c ,
904
+ .clk_ctrl = true,
899
905
};
900
906
901
907
static struct atmel_pmecc_caps sama5d4_caps = {
You can’t perform that action at this time.
0 commit comments