summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Morton <derek.morton@stericsson.com>2011-11-22 15:09:22 +0000
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-03-19 09:02:55 +0100
commit95758e6246f4cfc9cd79658b97c03c0d5ba4afc4 (patch)
treea25a7d6d36eb8d13ed8a475f7591e37a31731775
parent65dd4c2bbf79b6eafb2fa52ccb289cbca50ef7af (diff)
u95xx: Add API for HSI channel priority
Add support for specifying channel priority when configuring HSI interface. ST-Ericsson Linux next: N/A ST-Ericsson ID: 365662 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I4a1a453edec6122c7d5331db43cb8237c837cc42 Signed-off-by: Derek Morton <derek.morton@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42228 Reviewed-by: Pawel SZYSZUK <pawel.szyszuk@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Christopher BLAIR <chris.blair@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
-rw-r--r--include/linux/hsi/hsi.h2
-rw-r--r--include/linux/hsi/hsi_char.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hsi/hsi.h b/include/linux/hsi/hsi.h
index 1a52623a7dd..455120c1fb3 100644
--- a/include/linux/hsi/hsi.h
+++ b/include/linux/hsi/hsi.h
@@ -81,6 +81,8 @@ struct hsi_config {
unsigned int mode;
unsigned int channels;
unsigned int speed;
+ /* ch_prio for TX only, Valid if arb_mode == HSI_ARB_PRIO */
+ unsigned char ch_prio[HSI_MAX_CHANNELS];
union {
unsigned int flow; /* RX only */
unsigned int arb_mode; /* TX only */
diff --git a/include/linux/hsi/hsi_char.h b/include/linux/hsi/hsi_char.h
index fc498973714..4ffe33f7376 100644
--- a/include/linux/hsi/hsi_char.h
+++ b/include/linux/hsi/hsi_char.h
@@ -60,6 +60,7 @@ struct hsc_tx_config {
uint32_t channels;
uint32_t speed;
uint32_t arb_mode;
+ uint32_t priority;
};
#endif /* __HSI_CHAR_H */