vic.c (a6ed68d6468bd5a3da78a103344ded1435fed57a) vic.c (82d73874d422b43359698f73c418a02322c886d5)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2015, NVIDIA Corporation.
4 */
5
6#include <linux/clk.h>
7#include <linux/delay.h>
8#include <linux/host1x.h>

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

381#define NVIDIA_TEGRA_194_VIC_FIRMWARE "nvidia/tegra194/vic.bin"
382
383static const struct vic_config vic_t194_config = {
384 .firmware = NVIDIA_TEGRA_194_VIC_FIRMWARE,
385 .version = 0x19,
386 .supports_sid = true,
387};
388
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2015, NVIDIA Corporation.
4 */
5
6#include <linux/clk.h>
7#include <linux/delay.h>
8#include <linux/host1x.h>

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

381#define NVIDIA_TEGRA_194_VIC_FIRMWARE "nvidia/tegra194/vic.bin"
382
383static const struct vic_config vic_t194_config = {
384 .firmware = NVIDIA_TEGRA_194_VIC_FIRMWARE,
385 .version = 0x19,
386 .supports_sid = true,
387};
388
389static const struct of_device_id vic_match[] = {
389static const struct of_device_id tegra_vic_of_match[] = {
390 { .compatible = "nvidia,tegra124-vic", .data = &vic_t124_config },
391 { .compatible = "nvidia,tegra210-vic", .data = &vic_t210_config },
392 { .compatible = "nvidia,tegra186-vic", .data = &vic_t186_config },
393 { .compatible = "nvidia,tegra194-vic", .data = &vic_t194_config },
394 { },
395};
390 { .compatible = "nvidia,tegra124-vic", .data = &vic_t124_config },
391 { .compatible = "nvidia,tegra210-vic", .data = &vic_t210_config },
392 { .compatible = "nvidia,tegra186-vic", .data = &vic_t186_config },
393 { .compatible = "nvidia,tegra194-vic", .data = &vic_t194_config },
394 { },
395};
396MODULE_DEVICE_TABLE(of, tegra_vic_of_match);
396
397static int vic_probe(struct platform_device *pdev)
398{
399 struct device *dev = &pdev->dev;
400 struct host1x_syncpt **syncpts;
401 struct resource *regs;
402 struct vic *vic;
403 int err;

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

511
512static const struct dev_pm_ops vic_pm_ops = {
513 SET_RUNTIME_PM_OPS(vic_runtime_suspend, vic_runtime_resume, NULL)
514};
515
516struct platform_driver tegra_vic_driver = {
517 .driver = {
518 .name = "tegra-vic",
397
398static int vic_probe(struct platform_device *pdev)
399{
400 struct device *dev = &pdev->dev;
401 struct host1x_syncpt **syncpts;
402 struct resource *regs;
403 struct vic *vic;
404 int err;

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

512
513static const struct dev_pm_ops vic_pm_ops = {
514 SET_RUNTIME_PM_OPS(vic_runtime_suspend, vic_runtime_resume, NULL)
515};
516
517struct platform_driver tegra_vic_driver = {
518 .driver = {
519 .name = "tegra-vic",
519 .of_match_table = vic_match,
520 .of_match_table = tegra_vic_of_match,
520 .pm = &vic_pm_ops
521 },
522 .probe = vic_probe,
523 .remove = vic_remove,
524};
525
526#if IS_ENABLED(CONFIG_ARCH_TEGRA_124_SOC)
527MODULE_FIRMWARE(NVIDIA_TEGRA_124_VIC_FIRMWARE);
528#endif
529#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
530MODULE_FIRMWARE(NVIDIA_TEGRA_210_VIC_FIRMWARE);
531#endif
532#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC)
533MODULE_FIRMWARE(NVIDIA_TEGRA_186_VIC_FIRMWARE);
534#endif
535#if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
536MODULE_FIRMWARE(NVIDIA_TEGRA_194_VIC_FIRMWARE);
537#endif
521 .pm = &vic_pm_ops
522 },
523 .probe = vic_probe,
524 .remove = vic_remove,
525};
526
527#if IS_ENABLED(CONFIG_ARCH_TEGRA_124_SOC)
528MODULE_FIRMWARE(NVIDIA_TEGRA_124_VIC_FIRMWARE);
529#endif
530#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
531MODULE_FIRMWARE(NVIDIA_TEGRA_210_VIC_FIRMWARE);
532#endif
533#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC)
534MODULE_FIRMWARE(NVIDIA_TEGRA_186_VIC_FIRMWARE);
535#endif
536#if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
537MODULE_FIRMWARE(NVIDIA_TEGRA_194_VIC_FIRMWARE);
538#endif