From: Scott Jiang <scott.jiang.linux@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] blackfin: spi: move spi max chip select to spi.h
Date: Thu, 25 Sep 2014 17:25:29 +0800 [thread overview]
Message-ID: <1411637130-8686-1-git-send-email-scott.jiang.linux@gmail.com> (raw)
This macro is only related to spi. So it's better to place it in spi.h.
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
---
arch/blackfin/include/asm/config-pre.h | 3 ---
arch/blackfin/include/asm/mach-common/bits/spi.h | 1 +
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/blackfin/include/asm/config-pre.h b/arch/blackfin/include/asm/config-pre.h
index 2d8b293..189cb05 100644
--- a/arch/blackfin/include/asm/config-pre.h
+++ b/arch/blackfin/include/asm/config-pre.h
@@ -70,9 +70,6 @@ static inline const char *get_bfin_boot_mode(int bfin_boot)
# define BFIN_BOOT_SPI_SSEL 1
#endif
-/* Define to get a GPIO CS with the Blackfin SPI controller */
-#define MAX_CTRL_CS 8
-
/* There is no Blackfin/NetBSD port */
#undef CONFIG_BOOTM_NETBSD
diff --git a/arch/blackfin/include/asm/mach-common/bits/spi.h b/arch/blackfin/include/asm/mach-common/bits/spi.h
index 869dcb0..180cfaa 100644
--- a/arch/blackfin/include/asm/mach-common/bits/spi.h
+++ b/arch/blackfin/include/asm/mach-common/bits/spi.h
@@ -64,4 +64,5 @@
#define RXS 0x0020 /* SPI_RDBR Data Buffer Status (Full/Empty*) */
#define TXCOL 0x0040 /* Transmit Collision Error (Corrupt Data May Have Been Sent) */
+#define MAX_CTRL_CS 7
#endif
--
1.7.9.5
next reply other threads:[~2014-09-25 9:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 9:25 Scott Jiang [this message]
2014-09-25 9:25 ` [U-Boot] [PATCH 2/2] spi: add common spi3 controller driver Scott Jiang
2014-11-06 10:27 ` Scott Jiang
2014-11-12 21:50 ` Jagan Teki
2014-11-13 6:53 ` Scott Jiang
2014-11-16 19:23 ` Jagan Teki
2014-11-18 8:58 ` Scott Jiang
2014-12-02 22:08 ` Jagan Teki
2014-11-06 10:26 ` [U-Boot] [PATCH 1/2] blackfin: spi: move spi max chip select to spi.h Scott Jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1411637130-8686-1-git-send-email-scott.jiang.linux@gmail.com \
--to=scott.jiang.linux@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.