summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/ast-vga-disable/ast-vga-disable-check
blob: 31ed3dff74b36ea29538f3f51be34abccb9714e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
# Copyright © 2018 Raptor Engineering, LLC

FPGA_STATUS=$(i2cget -y 12 0x31 0x7)
AST_VGA_DISABLE=$(( FPGA_STATUS & 0x40 ))
if [[ $AST_VGA_DISABLE == 64 ]]; then
	# On-board VGA disabled
	devmem 0x1e6e207c 32 0x00008000
else
	# On-board VGA enabled
	devmem 0x1e6e2070 32 0x00008000
fi
OpenPOWER on IntegriCloud