mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
9c63d44e92
commit
bef87adf95
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue