dev.c (776dc38403676f499a73d32e2e7c61eb5b42f736) | dev.c (5407f31bd37d1289dfd0a2a23a45c5ff2aec8e58) |
---|---|
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. --- 19 unchanged lines hidden (view full) --- 28#include <trace/events/host1x.h> 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" | 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. --- 19 unchanged lines hidden (view full) --- 28#include <trace/events/host1x.h> 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" |
|
36 37void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r) 38{ 39 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; 40 41 writel(v, sync_regs + r); 42} 43 --- 18 unchanged lines hidden (view full) --- 62 .nb_channels = 8, 63 .nb_pts = 32, 64 .nb_mlocks = 16, 65 .nb_bases = 8, 66 .init = host1x01_init, 67 .sync_offset = 0x3000, 68}; 69 | 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 --- 18 unchanged lines hidden (view full) --- 63 .nb_channels = 8, 64 .nb_pts = 32, 65 .nb_mlocks = 16, 66 .nb_bases = 8, 67 .init = host1x01_init, 68 .sync_offset = 0x3000, 69}; 70 |
71static const struct host1x_info host1x02_info = { 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 |
|
70static struct of_device_id host1x_of_match[] = { | 80static struct of_device_id host1x_of_match[] = { |
81 { .compatible = "nvidia,tegra114-host1x", .data = &host1x02_info, }, |
|
71 { .compatible = "nvidia,tegra30-host1x", .data = &host1x01_info, }, 72 { .compatible = "nvidia,tegra20-host1x", .data = &host1x01_info, }, 73 { }, 74}; 75MODULE_DEVICE_TABLE(of, host1x_of_match); 76 77static int host1x_probe(struct platform_device *pdev) 78{ --- 141 unchanged lines hidden --- | 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) 89{ --- 141 unchanged lines hidden --- |