dev.c (4de6a2d6acb0e2a840f07db17def7e674b9d2bb4) | dev.c (e6fff4aaf99763da8a68b237e09cb8d47730f118) |
---|---|
1/* 2 * Tegra host1x driver 3 * 4 * Copyright (c) 2010-2013, NVIDIA Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 20 unchanged lines hidden (view full) --- 29 30#include "bus.h" 31#include "dev.h" 32#include "intr.h" 33#include "channel.h" 34#include "debug.h" 35#include "hw/host1x01.h" 36#include "hw/host1x02.h" | 1/* 2 * Tegra host1x driver 3 * 4 * Copyright (c) 2010-2013, NVIDIA Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 20 unchanged lines hidden (view full) --- 29 30#include "bus.h" 31#include "dev.h" 32#include "intr.h" 33#include "channel.h" 34#include "debug.h" 35#include "hw/host1x01.h" 36#include "hw/host1x02.h" |
37#include "hw/host1x04.h" |
|
37 38void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r) 39{ 40 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; 41 42 writel(v, sync_regs + r); 43} 44 --- 27 unchanged lines hidden (view full) --- 72 .nb_channels = 9, 73 .nb_pts = 32, 74 .nb_mlocks = 16, 75 .nb_bases = 12, 76 .init = host1x02_init, 77 .sync_offset = 0x3000, 78}; 79 | 38 39void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r) 40{ 41 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; 42 43 writel(v, sync_regs + r); 44} 45 --- 27 unchanged lines hidden (view full) --- 73 .nb_channels = 9, 74 .nb_pts = 32, 75 .nb_mlocks = 16, 76 .nb_bases = 12, 77 .init = host1x02_init, 78 .sync_offset = 0x3000, 79}; 80 |
81static const struct host1x_info host1x04_info = { 82 .nb_channels = 12, 83 .nb_pts = 192, 84 .nb_mlocks = 16, 85 .nb_bases = 64, 86 .init = host1x04_init, 87 .sync_offset = 0x2100, 88}; 89 |
|
80static struct of_device_id host1x_of_match[] = { | 90static struct of_device_id host1x_of_match[] = { |
91 { .compatible = "nvidia,tegra124-host1x", .data = &host1x04_info, }, |
|
81 { .compatible = "nvidia,tegra114-host1x", .data = &host1x02_info, }, 82 { .compatible = "nvidia,tegra30-host1x", .data = &host1x01_info, }, 83 { .compatible = "nvidia,tegra20-host1x", .data = &host1x01_info, }, 84 { }, 85}; 86MODULE_DEVICE_TABLE(of, host1x_of_match); 87 88static int host1x_probe(struct platform_device *pdev) --- 153 unchanged lines hidden --- | 92 { .compatible = "nvidia,tegra114-host1x", .data = &host1x02_info, }, 93 { .compatible = "nvidia,tegra30-host1x", .data = &host1x01_info, }, 94 { .compatible = "nvidia,tegra20-host1x", .data = &host1x01_info, }, 95 { }, 96}; 97MODULE_DEVICE_TABLE(of, host1x_of_match); 98 99static int host1x_probe(struct platform_device *pdev) --- 153 unchanged lines hidden --- |