
Tom wrote:
+#define MXC_CSPIRXDATA 0x00 +#define MXC_CSPITXDATA 0x04 +#define MXC_CSPICTRL 0x08 +#define MXC_CSPIPERIOD_32KHZ (1 << 15)
Pulling these out and making them common may not be the best thing to do. Located here, it hides the
#ifdef CONFIG_MX27 #elif defined (CONFIG_MX31) #elif defined (CONFIG_MX51) #else #endif
I would prefer if you just kept the copies in the mx31, mx51 locations
You are right - I will move them.
In 'Add SPI support to mx51evk board' The MAX_SPI_BYTES was defined in the config file. Here it is defined for mx31 generally. You should be consistent. These would be a better place for the mx51 values as you only have to do it once.
That is correct. And the value is not related to a particular board, setting this define in config file is definetely wrong. I will move it.
Be constistent with mx31 Move the #includes to the first lines after the #elif The other #defines to follow.
Ok, thanks.
Stefano