diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-04-12 03:01:49 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-04-25 05:51:47 -0400 |
commit | affa115ed365d646ad1a8cc7d2d063b8181cce37 (patch) | |
tree | df3d7caa7a0e42228312d6974977e1903306f891 /include/linux/amba | |
parent | d29bf01941795891828bf671f74c3a4f6fc3517f (diff) |
dma/amba-pl08x: add support for the Nomadik variant
The Nomadik PL080 variant has some extra protection bits that
may be set, so we need to check these bits to see if the
channels are actually available for the DMAengine to use.
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Alim Akhtar <alim.akhtar@gmail.com>
Cc: Alessandro Rubini <rubini@gnudd.com>
Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'include/linux/amba')
-rw-r--r-- | include/linux/amba/pl08x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h index e64ce2cfee99..02549017212a 100644 --- a/include/linux/amba/pl08x.h +++ b/include/linux/amba/pl08x.h | |||
@@ -92,6 +92,8 @@ struct pl08x_bus_data { | |||
92 | * right now | 92 | * right now |
93 | * @serving: the virtual channel currently being served by this physical | 93 | * @serving: the virtual channel currently being served by this physical |
94 | * channel | 94 | * channel |
95 | * @locked: channel unavailable for the system, e.g. dedicated to secure | ||
96 | * world | ||
95 | */ | 97 | */ |
96 | struct pl08x_phy_chan { | 98 | struct pl08x_phy_chan { |
97 | unsigned int id; | 99 | unsigned int id; |
@@ -99,6 +101,7 @@ struct pl08x_phy_chan { | |||
99 | spinlock_t lock; | 101 | spinlock_t lock; |
100 | int signal; | 102 | int signal; |
101 | struct pl08x_dma_chan *serving; | 103 | struct pl08x_dma_chan *serving; |
104 | bool locked; | ||
102 | }; | 105 | }; |
103 | 106 | ||
104 | /** | 107 | /** |