ryu: display: Move display api to mainboard
Display configuration is board specific. The change here is preparing for supporting other than dsi interface. BUG=chrome-os-partner:34336 BRANCH=none TEST=build ryu and test dev/rec mode, also build rush ok Change-Id: I494a04f7d6c0dbad2d472f4c2cd0aabfb23b8c97 Signed-off-by: Jimmy Zhang <jimmzhang@nvidia.com> Reviewed-on: https://chromium-review.googlesource.com/234271 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
a7ab7225e3
commit
36be6b2e35
3 changed files with 10 additions and 1 deletions
|
|
@ -31,6 +31,8 @@
|
|||
#include <soc/funitcfg.h>
|
||||
#include <soc/nvidia/tegra/i2c.h>
|
||||
#include <soc/padconfig.h>
|
||||
#include <soc/nvidia/tegra/dc.h>
|
||||
#include <soc/display.h>
|
||||
#include <vboot_struct.h>
|
||||
#include <vendorcode/google/chromeos/vboot_handoff.h>
|
||||
#include <vendorcode/google/chromeos/vboot2/misc.h>
|
||||
|
|
@ -276,6 +278,11 @@ static void mainboard_init(device_t dev)
|
|||
configure_display_blocks();
|
||||
}
|
||||
|
||||
void display_startup(device_t dev)
|
||||
{
|
||||
dsi_display_startup(dev);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
dev->ops->init = &mainboard_init;
|
||||
|
|
|
|||
|
|
@ -875,7 +875,7 @@ static int dsi_enable(struct soc_nvidia_tegra132_config *config)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void display_startup(device_t dev)
|
||||
void dsi_display_startup(device_t dev)
|
||||
{
|
||||
struct soc_nvidia_tegra132_config *config = dev->chip_info;
|
||||
struct display_controller *disp_ctrl =
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@
|
|||
struct soc_nvidia_tegra132_config;
|
||||
struct display_controller;
|
||||
|
||||
void dsi_display_startup(device_t dev);
|
||||
|
||||
int tegra_dc_init(struct display_controller *disp_ctrl);
|
||||
int update_display_mode(struct display_controller *disp_ctrl,
|
||||
struct soc_nvidia_tegra132_config *config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue