diff options
author | Jagan Teki <jteki@openedev.com> | 2015-10-27 23:11:11 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-10-28 13:54:09 +0530 |
commit | bef87adf95e7ca923f866e27bbcccb2dad85df9f (patch) | |
tree | 14ba910fddf7c61312df61226b04d82ca6d6ae44 /drivers/spi/altera_spi.c | |
parent | 9c63d44e92e3c90080491ba4e61e36e39a20aea8 (diff) | |
download | talos-obmc-uboot-bef87adf95e7ca923f866e27bbcccb2dad85df9f.tar.gz talos-obmc-uboot-bef87adf95e7ca923f866e27bbcccb2dad85df9f.zip |
spi: altera_spi: Minor cleanup
- Moved macro definitions to top
- Give tab space to CONFIG_ALTERA_SPI_IDLE_VAL value
- Re-arrange header includes ascending order
Acked-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/spi/altera_spi.c')
-rw-r--r-- | drivers/spi/altera_spi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index 3dbcfaa4ca..e49949b4a2 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -11,14 +11,17 @@ #include <dm.h> #include <errno.h> #include <malloc.h> -#include <spi.h> #include <fdtdec.h> +#include <spi.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; +#define ALTERA_SPI_STATUS_RRDY_MSK BIT(7) +#define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) + #ifndef CONFIG_ALTERA_SPI_IDLE_VAL -#define CONFIG_ALTERA_SPI_IDLE_VAL 0xff +#define CONFIG_ALTERA_SPI_IDLE_VAL 0xff #endif struct altera_spi_regs { @@ -38,9 +41,6 @@ struct altera_spi_priv { struct altera_spi_regs *regs; }; -#define ALTERA_SPI_STATUS_RRDY_MSK BIT(7) -#define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) - static void spi_cs_activate(struct udevice *dev, uint cs) { struct udevice *bus = dev->parent; |