t19x: cvnas: expose cvsram base and size to kernel

Add nvcvnas_get_cvsram_base and nvcvnas_get_cvsram_size,
Use them in pva_queue.c and nvhost_buffer.c
instead of hardcoded values.

JIRA EVLR-2273

Change-Id: I3fbec50a2c57220034b25b3a91569ba4aec319f6
Signed-off-by: Damian Halas <dhalas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1651414
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
This commit is contained in:
Damian Halas
2018-02-02 14:25:05 -08:00
committed by Laxman Dewangan
parent f03685b25b
commit 04479abd45

28
include/linux/cvnas.h Normal file
View File

@@ -0,0 +1,28 @@
/*
* include/linux/cvnas.h
*
* Tegra cvnas driver
*
* Copyright (c) 2018, NVIDIA Corporation. All rights reserved.
*
* 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.
*
*/
#ifndef __LINUX_CVNAS_H
#define __LINUX_CVNAS_H
int nvcvnas_busy(void);
int nvcvnas_idle(void);
phys_addr_t nvcvnas_get_cvsram_base(void);
size_t nvcvnas_get_cvsram_size(void);
#endif