diff options
| author | Dirk Eibach <eibach@gdsys.de> | 2011-04-06 13:53:47 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2011-04-21 10:34:45 +0200 | 
| commit | 52158e361606fffca89136481db720fdaab608d0 (patch) | |
| tree | b5958637423ab37e02e2b70456813749392a4bb9 | |
| parent | 5cb4100f5825de5181be1edce8a020bf646a9475 (diff) | |
| download | olio-uboot-2014.01-52158e361606fffca89136481db720fdaab608d0.tar.xz olio-uboot-2014.01-52158e361606fffca89136481db720fdaab608d0.zip | |
ppc4xx: Set DLVision 10G osd position to linux defaults
Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Stefan Roese <sr@denx.de>
| -rw-r--r-- | board/gdsys/common/osd.c | 2 | ||||
| -rw-r--r-- | include/gdsys_fpga.h | 7 | 
2 files changed, 7 insertions, 2 deletions
| diff --git a/board/gdsys/common/osd.c b/board/gdsys/common/osd.c index 6e4edaebb..5065f9d5e 100644 --- a/board/gdsys/common/osd.c +++ b/board/gdsys/common/osd.c @@ -376,6 +376,8 @@ int osd_probe(unsigned screen)  	out_le16(&osd->control, 0x0049);  	out_le16(&osd->xy_size, ((32 - 1) << 8) | (16 - 1)); +	out_le16(&osd->x_pos, 0x007f); +	out_le16(&osd->y_pos, 0x005f);  	return 0;  } diff --git a/include/gdsys_fpga.h b/include/gdsys_fpga.h index eaf6daafb..b02e28c8e 100644 --- a/include/gdsys_fpga.h +++ b/include/gdsys_fpga.h @@ -50,6 +50,9 @@ typedef struct ihs_osd {  	u16 features;  	u16 control;  	u16 xy_size; +	u16 xy_scale; +	u16 x_pos; +	u16 y_pos;  } ihs_osd_t;  #ifdef CONFIG_IO @@ -79,7 +82,7 @@ typedef struct ihs_fpga {  	u16 reserved_2[93];	/* 0x0044 */  	u16 reflection_high;	/* 0x00fe */  	ihs_osd_t osd;		/* 0x0100 */ -	u16 reserved_3[892];	/* 0x0108 */ +	u16 reserved_3[88];	/* 0x010e */  	u16 videomem;		/* 0x0800 */  } ihs_fpga_t;  #endif @@ -98,7 +101,7 @@ typedef struct ihs_fpga {  	u16 videocontrol;	/* 0x009e */  	u16 reserved_3[176];	/* 0x00a0 */  	ihs_osd_t osd;		/* 0x0200 */ -	u16 reserved_4[764];	/* 0x0208 */ +	u16 reserved_4[761];	/* 0x020e */  	u16 videomem;		/* 0x0800 */  } ihs_fpga_t;  #endif |