kirkwood.h (d8d11ba566761625e2b5ab716dca920725f3dc0b) kirkwood.h (363589bf110aa0352a203112af16685dd9cb56c1)
1/*
2 * kirkwood.h
3 *
4 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your

--- 63 unchanged lines hidden (view full) ---

72#define KIRKWOOD_DCO_CTL_FREQ_MASK (3<<0)
73#define KIRKWOOD_DCO_CTL_FREQ_11 (0<<0)
74#define KIRKWOOD_DCO_CTL_FREQ_12 (1<<0)
75#define KIRKWOOD_DCO_CTL_FREQ_24 (2<<0)
76
77#define KIRKWOOD_DCO_SPCR_STATUS 0x120c
78#define KIRKWOOD_DCO_SPCR_STATUS_DCO_LOCK (1<<16)
79
1/*
2 * kirkwood.h
3 *
4 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your

--- 63 unchanged lines hidden (view full) ---

72#define KIRKWOOD_DCO_CTL_FREQ_MASK (3<<0)
73#define KIRKWOOD_DCO_CTL_FREQ_11 (0<<0)
74#define KIRKWOOD_DCO_CTL_FREQ_12 (1<<0)
75#define KIRKWOOD_DCO_CTL_FREQ_24 (2<<0)
76
77#define KIRKWOOD_DCO_SPCR_STATUS 0x120c
78#define KIRKWOOD_DCO_SPCR_STATUS_DCO_LOCK (1<<16)
79
80#define KIRKWOOD_CLOCKS_CTRL 0x1230
81#define KIRKWOOD_MCLK_SOURCE_MASK (3<<0)
82#define KIRKWOOD_MCLK_SOURCE_DCO (0<<0)
83#define KIRKWOOD_MCLK_SOURCE_EXTCLK (3<<0)
84
80#define KIRKWOOD_ERR_CAUSE 0x1300
81#define KIRKWOOD_ERR_MASK 0x1304
82
83#define KIRKWOOD_INT_CAUSE 0x1308
84#define KIRKWOOD_INT_MASK 0x130C
85#define KIRKWOOD_INT_CAUSE_PLAY_BYTES (1<<14)
86#define KIRKWOOD_INT_CAUSE_REC_BYTES (1<<13)
87#define KIRKWOOD_INT_CAUSE_DMA_PLAY_END (1<<7)

--- 27 unchanged lines hidden (view full) ---

115/* need to find where they come from */
116#define KIRKWOOD_SND_MIN_PERIODS 8
117#define KIRKWOOD_SND_MAX_PERIODS 16
118#define KIRKWOOD_SND_MIN_PERIOD_BYTES 0x4000
119#define KIRKWOOD_SND_MAX_PERIOD_BYTES 0x4000
120
121struct kirkwood_dma_data {
122 void __iomem *io;
85#define KIRKWOOD_ERR_CAUSE 0x1300
86#define KIRKWOOD_ERR_MASK 0x1304
87
88#define KIRKWOOD_INT_CAUSE 0x1308
89#define KIRKWOOD_INT_MASK 0x130C
90#define KIRKWOOD_INT_CAUSE_PLAY_BYTES (1<<14)
91#define KIRKWOOD_INT_CAUSE_REC_BYTES (1<<13)
92#define KIRKWOOD_INT_CAUSE_DMA_PLAY_END (1<<7)

--- 27 unchanged lines hidden (view full) ---

120/* need to find where they come from */
121#define KIRKWOOD_SND_MIN_PERIODS 8
122#define KIRKWOOD_SND_MAX_PERIODS 16
123#define KIRKWOOD_SND_MIN_PERIOD_BYTES 0x4000
124#define KIRKWOOD_SND_MAX_PERIOD_BYTES 0x4000
125
126struct kirkwood_dma_data {
127 void __iomem *io;
128 struct clk *clk;
129 struct clk *extclk;
123 uint32_t ctl_play;
124 uint32_t ctl_rec;
125 int irq;
126 int burst;
130 uint32_t ctl_play;
131 uint32_t ctl_rec;
132 int irq;
133 int burst;
127 struct clk *clk;
128};
129
130#endif
134};
135
136#endif