diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-05-20 01:36:03 +0800 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-04-20 14:23:19 -0600 |
commit | 107ea34db4560e6db41a9da90128ccc5e60f6b21 (patch) | |
tree | 60e75e5ade320b57fa3c3663f4df8c6d8a39e019 /drivers/video/via/hw.c | |
parent | f1b99aa9dbe908b2839885aa999d6e8512fe1040 (diff) | |
download | kernel_samsung_smdk4412-107ea34db4560e6db41a9da90128ccc5e60f6b21.tar.gz kernel_samsung_smdk4412-107ea34db4560e6db41a9da90128ccc5e60f6b21.tar.bz2 kernel_samsung_smdk4412-107ea34db4560e6db41a9da90128ccc5e60f6b21.zip |
viafb: Determine type of 2D engine and store it in chip_info
This will help us for the upcoming support for 2D acceleration using
the M1 engine.
[jc: fixed merge conflicts]
Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Diffstat (limited to 'drivers/video/via/hw.c')
-rw-r--r-- | drivers/video/via/hw.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index c94bcce71ea..ae664fbd7e8 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c @@ -2016,6 +2016,21 @@ static void init_gfx_chip_info(struct pci_dev *pdev, CX700_REVISION_700; } } + + /* Determine which 2D engine we have */ + switch (viaparinfo->chip_info->gfx_chip_name) { + case UNICHROME_VX800: + case UNICHROME_VX855: + viaparinfo->chip_info->twod_engine = VIA_2D_ENG_M1; + break; + case UNICHROME_K8M890: + case UNICHROME_P4M900: + viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H5; + break; + default: + viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H2; + break; + } } static void init_tmds_chip_info(void) |