Browse Source

rcar_gen3: drivers: qos: V3M: Factor out mstat fix into separate file

Pull out the mstat fix array into separate file, to align the structure
of the driver with the other SoCs. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: Ifb6644063d8f463e2eb20bdadc5b69ab74ac591d
pull/1931/head
Marek Vasut 5 years ago
parent
commit
344797db32
  1. 92
      drivers/staging/renesas/rcar/qos/V3M/qos_init_v3m.c
  2. 98
      drivers/staging/renesas/rcar/qos/V3M/qos_init_v3m_mstat.h

92
drivers/staging/renesas/rcar/qos/V3M/qos_init_v3m.c

@ -15,97 +15,7 @@
#define RCAR_QOS_VERSION "rev.0.01"
#if RCAR_QOS_TYPE == RCAR_QOS_TYPE_DEFAULT
static const mstat_slot_t mstat_fix[] = {
{0x0000U, 0x000000000000FFFFU},
{0x0008U, 0x000000000000FFFFU},
{0x0010U, 0x000000000000FFFFU},
{0x0018U, 0x000000000000FFFFU},
{0x0020U, 0x001414090000FFFFU},
{0x0028U, 0x000C00000000FFFFU},
{0x0030U, 0x001008040000FFFFU},
{0x0038U, 0x001004040000FFFFU},
{0x0040U, 0x001004040000FFFFU},
{0x0048U, 0x000000000000FFFFU},
{0x0050U, 0x001004040000FFFFU},
{0x0058U, 0x001004040000FFFFU},
{0x0060U, 0x000000000000FFFFU},
{0x0068U, 0x001404040000FFFFU},
{0x0070U, 0x001008030000FFFFU},
{0x0078U, 0x001004030000FFFFU},
{0x0080U, 0x001004030000FFFFU},
{0x0088U, 0x000000000000FFFFU},
{0x0090U, 0x001004040000FFFFU},
{0x0098U, 0x001004040000FFFFU},
{0x00A0U, 0x000000000000FFFFU},
{0x00A8U, 0x000000000000FFFFU},
{0x00B0U, 0x000000000000FFFFU},
{0x00B8U, 0x000000000000FFFFU},
{0x00C0U, 0x000000000000FFFFU},
{0x00C8U, 0x000000000000FFFFU},
{0x00D0U, 0x000000000000FFFFU},
{0x00D8U, 0x000000000000FFFFU},
{0x00E0U, 0x001404020000FFFFU},
{0x00E8U, 0x000000000000FFFFU},
{0x00F0U, 0x000000000000FFFFU},
{0x00F8U, 0x000000000000FFFFU},
{0x0100U, 0x000000000000FFFFU},
{0x0108U, 0x000C04020000FFFFU},
{0x0110U, 0x000000000000FFFFU},
{0x0118U, 0x001404020000FFFFU},
{0x0120U, 0x000000000000FFFFU},
{0x0128U, 0x000000000000FFFFU},
{0x0130U, 0x000000000000FFFFU},
{0x0138U, 0x000000000000FFFFU},
{0x0140U, 0x000000000000FFFFU},
{0x0148U, 0x000000000000FFFFU},
};
static const mstat_slot_t mstat_be[] = {
{0x0000U, 0x00100020447FFC01U},
{0x0008U, 0x00100020447FFC01U},
{0x0010U, 0x00100040447FFC01U},
{0x0018U, 0x00100040447FFC01U},
{0x0020U, 0x0000000000000000U},
{0x0028U, 0x0000000000000000U},
{0x0030U, 0x0000000000000000U},
{0x0038U, 0x0000000000000000U},
{0x0040U, 0x0000000000000000U},
{0x0048U, 0x0000000000000000U},
{0x0050U, 0x0000000000000000U},
{0x0058U, 0x0000000000000000U},
{0x0060U, 0x0000000000000000U},
{0x0068U, 0x0000000000000000U},
{0x0070U, 0x0000000000000000U},
{0x0078U, 0x0000000000000000U},
{0x0080U, 0x0000000000000000U},
{0x0088U, 0x0000000000000000U},
{0x0090U, 0x0000000000000000U},
{0x0098U, 0x0000000000000000U},
{0x00A0U, 0x00100010447FFC01U},
{0x00A8U, 0x00100010447FFC01U},
{0x00B0U, 0x00100010447FFC01U},
{0x00B8U, 0x00100010447FFC01U},
{0x00C0U, 0x00100010447FFC01U},
{0x00C8U, 0x00100010447FFC01U},
{0x00D0U, 0x0000000000000000U},
{0x00D8U, 0x00100010447FFC01U},
{0x00E0U, 0x0000000000000000U},
{0x00E8U, 0x00100010447FFC01U},
{0x00F0U, 0x00100010447FFC01U},
{0x00F8U, 0x00100010447FFC01U},
{0x0100U, 0x00100010447FFC01U},
{0x0108U, 0x0000000000000000U},
{0x0110U, 0x00100010447FFC01U},
{0x0118U, 0x0000000000000000U},
{0x0120U, 0x00100010447FFC01U},
{0x0128U, 0x00100010447FFC01U},
{0x0130U, 0x00100010447FFC01U},
{0x0138U, 0x00100010447FFC01U},
{0x0140U, 0x00100020447FFC01U},
{0x0148U, 0x00100020447FFC01U},
};
#endif
#include "qos_init_v3m_mstat.h"
static void dbsc_setting(void)
{

98
drivers/staging/renesas/rcar/qos/V3M/qos_init_v3m_mstat.h

@ -0,0 +1,98 @@
/*
* Copyright (c) 2015-2019, Renesas Electronics Corporation
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#if RCAR_QOS_TYPE == RCAR_QOS_TYPE_DEFAULT
static const mstat_slot_t mstat_fix[] = {
{0x0000U, 0x000000000000FFFFU},
{0x0008U, 0x000000000000FFFFU},
{0x0010U, 0x000000000000FFFFU},
{0x0018U, 0x000000000000FFFFU},
{0x0020U, 0x001414090000FFFFU},
{0x0028U, 0x000C00000000FFFFU},
{0x0030U, 0x001008040000FFFFU},
{0x0038U, 0x001004040000FFFFU},
{0x0040U, 0x001004040000FFFFU},
{0x0048U, 0x000000000000FFFFU},
{0x0050U, 0x001004040000FFFFU},
{0x0058U, 0x001004040000FFFFU},
{0x0060U, 0x000000000000FFFFU},
{0x0068U, 0x001404040000FFFFU},
{0x0070U, 0x001008030000FFFFU},
{0x0078U, 0x001004030000FFFFU},
{0x0080U, 0x001004030000FFFFU},
{0x0088U, 0x000000000000FFFFU},
{0x0090U, 0x001004040000FFFFU},
{0x0098U, 0x001004040000FFFFU},
{0x00A0U, 0x000000000000FFFFU},
{0x00A8U, 0x000000000000FFFFU},
{0x00B0U, 0x000000000000FFFFU},
{0x00B8U, 0x000000000000FFFFU},
{0x00C0U, 0x000000000000FFFFU},
{0x00C8U, 0x000000000000FFFFU},
{0x00D0U, 0x000000000000FFFFU},
{0x00D8U, 0x000000000000FFFFU},
{0x00E0U, 0x001404020000FFFFU},
{0x00E8U, 0x000000000000FFFFU},
{0x00F0U, 0x000000000000FFFFU},
{0x00F8U, 0x000000000000FFFFU},
{0x0100U, 0x000000000000FFFFU},
{0x0108U, 0x000C04020000FFFFU},
{0x0110U, 0x000000000000FFFFU},
{0x0118U, 0x001404020000FFFFU},
{0x0120U, 0x000000000000FFFFU},
{0x0128U, 0x000000000000FFFFU},
{0x0130U, 0x000000000000FFFFU},
{0x0138U, 0x000000000000FFFFU},
{0x0140U, 0x000000000000FFFFU},
{0x0148U, 0x000000000000FFFFU},
};
static const mstat_slot_t mstat_be[] = {
{0x0000U, 0x00100020447FFC01U},
{0x0008U, 0x00100020447FFC01U},
{0x0010U, 0x00100040447FFC01U},
{0x0018U, 0x00100040447FFC01U},
{0x0020U, 0x0000000000000000U},
{0x0028U, 0x0000000000000000U},
{0x0030U, 0x0000000000000000U},
{0x0038U, 0x0000000000000000U},
{0x0040U, 0x0000000000000000U},
{0x0048U, 0x0000000000000000U},
{0x0050U, 0x0000000000000000U},
{0x0058U, 0x0000000000000000U},
{0x0060U, 0x0000000000000000U},
{0x0068U, 0x0000000000000000U},
{0x0070U, 0x0000000000000000U},
{0x0078U, 0x0000000000000000U},
{0x0080U, 0x0000000000000000U},
{0x0088U, 0x0000000000000000U},
{0x0090U, 0x0000000000000000U},
{0x0098U, 0x0000000000000000U},
{0x00A0U, 0x00100010447FFC01U},
{0x00A8U, 0x00100010447FFC01U},
{0x00B0U, 0x00100010447FFC01U},
{0x00B8U, 0x00100010447FFC01U},
{0x00C0U, 0x00100010447FFC01U},
{0x00C8U, 0x00100010447FFC01U},
{0x00D0U, 0x0000000000000000U},
{0x00D8U, 0x00100010447FFC01U},
{0x00E0U, 0x0000000000000000U},
{0x00E8U, 0x00100010447FFC01U},
{0x00F0U, 0x00100010447FFC01U},
{0x00F8U, 0x00100010447FFC01U},
{0x0100U, 0x00100010447FFC01U},
{0x0108U, 0x0000000000000000U},
{0x0110U, 0x00100010447FFC01U},
{0x0118U, 0x0000000000000000U},
{0x0120U, 0x00100010447FFC01U},
{0x0128U, 0x00100010447FFC01U},
{0x0130U, 0x00100010447FFC01U},
{0x0138U, 0x00100010447FFC01U},
{0x0140U, 0x00100020447FFC01U},
{0x0148U, 0x00100020447FFC01U},
};
#endif
Loading…
Cancel
Save