Commit a9f127bb authored by Cédric Le Goater's avatar Cédric Le Goater Committed by Cyrille Pitchen

mtd: spi-nor: aspeed: remove dummies from keep mask

There is no need to keep the dummy bytes in the control register if
the command mode is not kept also. This could lead to an inconsistent
setting : normal read mode (command 0x3) and dummy bytes. It is to be
noted that the HW allows such a configuration.
Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
Reviewed-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
parent d7c9ade2
...@@ -180,8 +180,7 @@ struct aspeed_smc_controller { ...@@ -180,8 +180,7 @@ struct aspeed_smc_controller {
#define CONTROL_KEEP_MASK \ #define CONTROL_KEEP_MASK \
(CONTROL_AAF_MODE | CONTROL_CE_INACTIVE_MASK | CONTROL_CLK_DIV4 | \ (CONTROL_AAF_MODE | CONTROL_CE_INACTIVE_MASK | CONTROL_CLK_DIV4 | \
CONTROL_IO_DUMMY_MASK | CONTROL_CLOCK_FREQ_SEL_MASK | \ CONTROL_CLOCK_FREQ_SEL_MASK | CONTROL_LSB_FIRST | CONTROL_CLOCK_MODE_3)
CONTROL_LSB_FIRST | CONTROL_CLOCK_MODE_3)
/* /*
* The Segment Register uses a 8MB unit to encode the start address * The Segment Register uses a 8MB unit to encode the start address
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment