soc/nvidia: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: I065ed3a0deab2f59e510717f5d52beb2a62e900d
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26537
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Elyes HAOUAS 2018-05-25 10:03:57 +02:00 committed by Patrick Georgi
parent 90f515a14b
commit 3fcb218565
7 changed files with 11 additions and 11 deletions

View File

@ -516,7 +516,7 @@ unsigned long READL(void * p);
void WRITEL(unsigned long value, void * p); void WRITEL(unsigned long value, void * p);
#ifndef __PRE_RAM__ #ifndef __PRE_RAM__
void display_startup(device_t dev); void display_startup(struct device *dev);
#endif #endif
void dp_init(void * _config); void dp_init(void * _config);
void dp_enable(void * _dp); void dp_enable(void * _dp);

View File

@ -212,7 +212,7 @@ uint32_t fb_base_mb(void)
/* this is really aimed at the lcd panel. That said, there are two display /* this is really aimed at the lcd panel. That said, there are two display
* devices on this part and we may someday want to extend it for other boards. * devices on this part and we may someday want to extend it for other boards.
*/ */
void display_startup(device_t dev) void display_startup(struct device *dev)
{ {
struct soc_nvidia_tegra124_config *config = dev->chip_info; struct soc_nvidia_tegra124_config *config = dev->chip_info;
struct display_controller *disp_ctrl = (void *)config->display_controller; struct display_controller *disp_ctrl = (void *)config->display_controller;

View File

@ -30,7 +30,7 @@
* Will break if we get 2. Sigh. * Will break if we get 2. Sigh.
* We assume it's all multiples of MiB for MMUs sake. * We assume it's all multiples of MiB for MMUs sake.
*/ */
static void soc_enable(device_t dev) static void soc_enable(struct device *dev)
{ {
u32 lcdbase = fb_base_mb(); u32 lcdbase = fb_base_mb();
unsigned long fb_size = FB_SIZE_MB; unsigned long fb_size = FB_SIZE_MB;
@ -47,7 +47,7 @@ static void soc_enable(device_t dev)
(sdram_end_mb - sdram_max_addressable_mb())*KiB); (sdram_end_mb - sdram_max_addressable_mb())*KiB);
} }
static void soc_init(device_t dev) static void soc_init(struct device *dev)
{ {
if (display_init_required()) if (display_init_required())
display_startup(dev); display_startup(dev);
@ -64,7 +64,7 @@ static struct device_operations soc_ops = {
.scan_bus = 0, .scan_bus = 0,
}; };
static void enable_tegra124_dev(device_t dev) static void enable_tegra124_dev(struct device *dev)
{ {
dev->ops = &soc_ops; dev->ops = &soc_ops;
} }

View File

@ -1570,7 +1570,7 @@ error_enable:
return; return;
} }
void dp_display_startup(device_t dev) void dp_display_startup(struct device *dev)
{ {
struct soc_nvidia_tegra210_config *config = dev->chip_info; struct soc_nvidia_tegra210_config *config = dev->chip_info;
struct display_controller *disp_ctrl = struct display_controller *disp_ctrl =

View File

@ -965,7 +965,7 @@ static int dsi_enable(struct soc_nvidia_tegra210_config *config)
return 0; return 0;
} }
void dsi_display_startup(device_t dev) void dsi_display_startup(struct device *dev)
{ {
struct soc_nvidia_tegra210_config *config = dev->chip_info; struct soc_nvidia_tegra210_config *config = dev->chip_info;
struct display_controller *disp_ctrl = struct display_controller *disp_ctrl =

View File

@ -43,8 +43,8 @@ enum {
struct soc_nvidia_tegra210_config; struct soc_nvidia_tegra210_config;
struct display_controller; struct display_controller;
void dsi_display_startup(device_t dev); void dsi_display_startup(struct device *dev);
void dp_display_startup(device_t dev); void dp_display_startup(struct device *dev);
int tegra_dc_init(struct display_controller *disp_ctrl); int tegra_dc_init(struct display_controller *disp_ctrl);
int update_display_mode(struct display_controller *disp_ctrl, int update_display_mode(struct display_controller *disp_ctrl,

View File

@ -35,7 +35,7 @@
#include "chip.h" #include "chip.h"
static void soc_read_resources(device_t dev) static void soc_read_resources(struct device *dev)
{ {
unsigned long index = 0; unsigned long index = 0;
int i; uintptr_t begin, end; int i; uintptr_t begin, end;
@ -65,7 +65,7 @@ static struct device_operations soc_ops = {
.scan_bus = NULL, .scan_bus = NULL,
}; };
static void enable_tegra210_dev(device_t dev) static void enable_tegra210_dev(struct device *dev)
{ {
if (dev->path.type == DEVICE_PATH_CPU_CLUSTER) if (dev->path.type == DEVICE_PATH_CPU_CLUSTER)
dev->ops = &soc_ops; dev->ops = &soc_ops;