c942fddf87
Based on 3 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [graeme] [gregory] [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema] [hk] [hemahk]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1105 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
58 lines
1.7 KiB
C
58 lines
1.7 KiB
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (C) 2016 Socionext Inc.
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*/
|
|
|
|
#include "clk-uniphier.h"
|
|
|
|
#define UNIPHIER_PERI_CLK_UART(idx, ch) \
|
|
UNIPHIER_CLK_GATE("uart" #ch, (idx), "uart", 0x24, 19 + (ch))
|
|
|
|
#define UNIPHIER_PERI_CLK_I2C_COMMON \
|
|
UNIPHIER_CLK_GATE("i2c-common", -1, "i2c", 0x20, 1)
|
|
|
|
#define UNIPHIER_PERI_CLK_I2C(idx, ch) \
|
|
UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c-common", 0x24, 5 + (ch))
|
|
|
|
#define UNIPHIER_PERI_CLK_FI2C(idx, ch) \
|
|
UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch))
|
|
|
|
#define UNIPHIER_PERI_CLK_SCSSI(idx) \
|
|
UNIPHIER_CLK_GATE("scssi", (idx), "spi", 0x20, 17)
|
|
|
|
#define UNIPHIER_PERI_CLK_MCSSI(idx) \
|
|
UNIPHIER_CLK_GATE("mcssi", (idx), "spi", 0x24, 14)
|
|
|
|
const struct uniphier_clk_data uniphier_ld4_peri_clk_data[] = {
|
|
UNIPHIER_PERI_CLK_UART(0, 0),
|
|
UNIPHIER_PERI_CLK_UART(1, 1),
|
|
UNIPHIER_PERI_CLK_UART(2, 2),
|
|
UNIPHIER_PERI_CLK_UART(3, 3),
|
|
UNIPHIER_PERI_CLK_I2C_COMMON,
|
|
UNIPHIER_PERI_CLK_I2C(4, 0),
|
|
UNIPHIER_PERI_CLK_I2C(5, 1),
|
|
UNIPHIER_PERI_CLK_I2C(6, 2),
|
|
UNIPHIER_PERI_CLK_I2C(7, 3),
|
|
UNIPHIER_PERI_CLK_I2C(8, 4),
|
|
UNIPHIER_PERI_CLK_SCSSI(11),
|
|
{ /* sentinel */ }
|
|
};
|
|
|
|
const struct uniphier_clk_data uniphier_pro4_peri_clk_data[] = {
|
|
UNIPHIER_PERI_CLK_UART(0, 0),
|
|
UNIPHIER_PERI_CLK_UART(1, 1),
|
|
UNIPHIER_PERI_CLK_UART(2, 2),
|
|
UNIPHIER_PERI_CLK_UART(3, 3),
|
|
UNIPHIER_PERI_CLK_FI2C(4, 0),
|
|
UNIPHIER_PERI_CLK_FI2C(5, 1),
|
|
UNIPHIER_PERI_CLK_FI2C(6, 2),
|
|
UNIPHIER_PERI_CLK_FI2C(7, 3),
|
|
UNIPHIER_PERI_CLK_FI2C(8, 4),
|
|
UNIPHIER_PERI_CLK_FI2C(9, 5),
|
|
UNIPHIER_PERI_CLK_FI2C(10, 6),
|
|
UNIPHIER_PERI_CLK_SCSSI(11),
|
|
UNIPHIER_PERI_CLK_MCSSI(12),
|
|
{ /* sentinel */ }
|
|
};
|