.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for Atmel I2S controller |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015 Atmel Corporation |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Cyrille Pitchen <cyrille.pitchen@atmel.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify it |
---|
9 | | - * under the terms of the GNU General Public License version 2 as published by |
---|
10 | | - * the Free Software Foundation. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
13 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
14 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
15 | | - * more details. |
---|
16 | | - * |
---|
17 | | - * You should have received a copy of the GNU General Public License along with |
---|
18 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
---|
19 | 8 | */ |
---|
20 | 9 | |
---|
21 | 10 | #include <linux/init.h> |
---|
.. | .. |
---|
174 | 163 | |
---|
175 | 164 | #define I2S_MCK_12M288 12288000UL |
---|
176 | 165 | #define I2S_MCK_11M2896 11289600UL |
---|
| 166 | +#define I2S_MCK_6M144 6144000UL |
---|
177 | 167 | |
---|
178 | 168 | /* mck = (32 * (imckfs+1) / (imckdiv+1)) * fs */ |
---|
179 | 169 | static const struct atmel_i2s_gck_param gck_params[] = { |
---|
| 170 | + /* mck = 6.144Mhz */ |
---|
| 171 | + { 8000, I2S_MCK_6M144, 1, 47}, /* mck = 768 fs */ |
---|
| 172 | + |
---|
180 | 173 | /* mck = 12.288MHz */ |
---|
181 | | - { 8000, I2S_MCK_12M288, 0, 47}, /* mck = 1536 fs */ |
---|
182 | 174 | { 16000, I2S_MCK_12M288, 1, 47}, /* mck = 768 fs */ |
---|
183 | 175 | { 24000, I2S_MCK_12M288, 3, 63}, /* mck = 512 fs */ |
---|
184 | 176 | { 32000, I2S_MCK_12M288, 3, 47}, /* mck = 384 fs */ |
---|