Update gdsys board support
cover Update gdsys board support
From: Dirk Eibach <[email protected]>
Dirk Eibach (4):
ioep-fpga: Support intempo compression
gdsys: osd: Allow osdsize on valid screens only
strider: Support con-dp flavor
strider: Support cpu-dp flavor
board/gdsys/common/Makefile | 1 + board/gdsys/common/ioep-fpga.c | 17 +++++---- board/gdsys/common/osd.c | 3 ++ board/gdsys/mpc8308/strider.c | 37 +++++++++++++++++++ configs/strider_con_dp_defconfig | 20 +++++++++++ configs/strider_cpu_dp_defconfig | 20 +++++++++++ include/configs/strider.h | 77 ++++++++++++++++++++++++++++++++++++---- include/gdsys_fpga.h | 2 +- 8 files changed, 164 insertions(+), 13 deletions(-) create mode 100644 configs/strider_con_dp_defconfig create mode 100644 configs/strider_cpu_dp_defconfig
Signature · 1 line
2.1.3
PATCH 1/4 ioep-fpga: Support intempo compression
From: Dirk Eibach <[email protected]>
There is a new "intempo" compression type that can be reported on startup.
---
board/gdsys/common/ioep-fpga.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-)
board/gdsys/common/ioep-fpga.c +11 -6
@@ -25,8 +25,9 @@ enum {enum {COMPRESSION_NONE =0 , -COMPRESSION_TYPE1_DELTA =1 , -COMPRESSION_TYPE1_TYPE2_DELTA =3 , +COMPRESSION_TYPE_1 =1 , +COMPRESSION_TYPE_1_2 =3 , +COMPRESSION_TYPE_1_2_3 =7 , };enum {
@@ -158,12 +159,16 @@ void ioep_fpga_print_info(unsigned int fpga)printf (" no compression" );break ; -case COMPRESSION_TYPE1_DELTA : -printf (" type1-deltacompression" ); +case COMPRESSION_TYPE_1 : +printf (" compression type1(delta)" );break ; -case COMPRESSION_TYPE1_TYPE2_DELTA : -printf (" type1-deltacompression, type2-inlinecompression" ); +case COMPRESSION_TYPE_1_2 : +printf (" compression type1(delta), type2(inline)" ); +break ; + +case COMPRESSION_TYPE_1_2_3 : +printf (" compression type1(delta), type2(inline), type3(intempo)" );break ;default :
Signature · 1 line
2.1.3
PATCH 1/4 ioep-fpga: Support intempo compression
Quoted 6 lines · dirk.eibach at gdsys.cc
From: Dirk Eibach <[email protected]>
There is a new "intempo" compression type that can be reported on startup.
Signed-off-by Dirk Eibach <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160602/4d6c00e9/attachment.sig>
PATCH 1/4 ioep-fpga: Support intempo compression
In reply to dirk.eibach at gdsys.ccQuoted 7 lines · Dirk Eibach
From: Dirk Eibach <[email protected]>
There is a new "intempo" compression type that can be reported on startup.
Signed-off-by Dirk Eibach <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160606/d4ca261e/attachment.sig>
PATCH 2/4 gdsys: osd: Allow osdsize on valid screens only
In reply to dirk.eibach at gdsys.ccFrom: Dirk Eibach <[email protected]>
Limit "osdsize"-command to access valid screens only.
---
board/gdsys/common/osd.c | 3 +++ 1 file changed, 3 insertions(+)
board/gdsys/common/osd.c +3 -0
@@ -469,6 +469,9 @@ int osd_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) }for (screen =0 ; screen <MAX_OSD_SCREEN ; ++screen) { +if (!(osd_screen_mask & (1 << screen))) +continue ; +OSD_SET_REG (screen, xy_size, ((x -1 ) <<8 ) | (y -1 ));OSD_SET_REG (screen, x_pos,32767 * (640 -12 * x) /65535 );OSD_SET_REG (screen, y_pos,32767 * (480 -18 * y) /65535 );
Signature · 1 line
2.1.3
PATCH 2/4 gdsys: osd: Allow osdsize on valid screens only
Quoted 5 lines · dirk.eibach at gdsys.cc
From: Dirk Eibach <[email protected]>
Limit "osdsize"-command to access valid screens only.
Signed-off-by Dirk Eibach <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160602/9e90353e/attachment.sig>
PATCH 2/4 gdsys: osd: Allow osdsize on valid screens only
In reply to dirk.eibach at gdsys.ccQuoted 6 lines · Dirk Eibach
From: Dirk Eibach <[email protected]>
Limit "osdsize"-command to access valid screens only.
Signed-off-by Dirk Eibach <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160606/fa8b4fb8/attachment.sig>
PATCH 3/4 strider: Support con-dp flavor
In reply to dirk.eibach at gdsys.ccFrom: Dirk Eibach <[email protected]>
There is a new strider console flavor with DisplayPort video.
---
board/gdsys/common/Makefile | 1 + board/gdsys/mpc8308/strider.c | 37 ++++++++++++++++++++++ configs/strider_con_dp_defconfig | 20 ++++++++++++ include/configs/strider.h | 67 +++++++++++++++++++++++++++++++++++++--- include/gdsys_fpga.h | 2 +- 5 files changed, 121 insertions(+), 6 deletions(-) create mode 100644 configs/strider_con_dp_defconfig
board/gdsys/common/Makefile +1 -0
@@ -16,3 +16,4 @@ obj-$(CONFIG_HRCON) += osd.o mclink.o dp501.o phy.o ioep-fpga.o fanctrl.o obj-$(CONFIG_STRIDER) += mclink.o dp501.o phy.o ioep-fpga.o adv7611.o ch7301.o obj-$(CONFIG_STRIDER) += fanctrl.o obj-$(CONFIG_STRIDER_CON) += osd.o +obj-$(CONFIG_STRIDER_CON_DP) += osd.o
board/gdsys/mpc8308/strider.c +37 -0
@@ -133,6 +133,9 @@ int last_stage_init(void)unsigned char mclink_controllers_dp[] = {0x24 ,0x25 ,0x26 };#endif bool hw_type_cat =pca9698_get_value (0x20 ,18 ); +#ifdef CONFIG_STRIDER_CON_DP +bool is_dh =pca9698_get_value (0x20 ,25 ); +#endif bool ch0_sgmii2_present = false;/* Turn on Analog Devices ADV7611 */
@@ -140,6 +143,7 @@ int last_stage_init(void)/* Turn on Parade DP501 */ pca9698_direction_output (0x20 ,10 ,1 ); +pca9698_direction_output (0x20 ,11 ,1 ); ch0_sgmii2_present = !pca9698_get_value (0x20 ,37 );
@@ -202,6 +206,14 @@ int last_stage_init(void)osd_probe (0 );#endif +#ifdef CONFIG_STRIDER_CON_DP +if (ioep_fpga_has_osd (0 )) { +osd_probe (0 ); +if (is_dh) +osd_probe (4 ); + } +#endif +#ifdef CONFIG_STRIDER_CPU ch7301_probe (0 , false);dp501_probe (0 , false);
@@ -226,6 +238,13 @@ int last_stage_init(void)if (ioep_fpga_has_osd (k))osd_probe (k);#endif +#ifdef CONFIG_STRIDER_CON_DP +if (ioep_fpga_has_osd (k)) { +osd_probe (k); +if (is_dh) +osd_probe (k +4 ); + } +#endif #ifdef CONFIG_STRIDER_CPU if (!adv7611_probe (k))printf (" Advantiv ADV7611 HDMI Receiver\n" );
@@ -270,6 +289,24 @@ int fpga_gpio_get(unsigned int bus, int pin)return val & pin; } +#ifdef CONFIG_STRIDER_CON_DP +void fpga_control_set (unsigned int bus,int pin) +{ +u16 val; + +FPGA_GET_REG (bus, control, &val); +FPGA_SET_REG (bus, control, val | pin); +} + +void fpga_control_clear (unsigned int bus,int pin) +{ +u16 val; + +FPGA_GET_REG (bus, control, &val); +FPGA_SET_REG (bus, control, val & ~pin); +} +#endif +void mpc8308_init (void ) {pca9698_direction_output (0x20 ,26 ,1 );
configs/strider_con_dp_defconfig new file +20 -0
@@ -0,0 +1,20 @@ +CONFIG_PPC=y +CONFIG_MPC83xx=y +CONFIG_TARGET_STRIDER=y +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +CONFIG_OF_BOARD_SETUP=y +CONFIG_OF_STDOUT_VIA_ALIAS=y +CONFIG_SYS_EXTRA_OPTIONS="STRIDER_CON_DP" +CONFIG_HUSH_PARSER=y +CONFIG_AUTOBOOT_KEYED=y +CONFIG_AUTOBOOT_STOP_STR=" " +CONFIG_CMD_MEMTEST=y +CONFIG_CMD_MMC=y +CONFIG_CMD_I2C=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_MII=y +CONFIG_CMD_PING=y +CONFIG_CMD_EXT2=y +CONFIG_SYS_NS16550=y +CONFIG_OF_LIBFDT=y
include/configs/strider.h +62 -5
132 lines not on this page · raw message
include/gdsys_fpga.h +1 -1
@@ -163,7 +163,7 @@ struct ihs_fpga { };#endif -#ifdef CONFIG_HRCON +#if defined(CONFIG_HRCON) || defined(CONFIG_STRIDER_CON_DP) struct ihs_fpga { u16 reflection_low; /* 0x0000 */ u16 versions; /* 0x0002 */
Signature · 1 line
2.1.3
PATCH 3/4 strider: Support con-dp flavor
Quoted 6 lines · dirk.eibach at gdsys.cc
From: Dirk Eibach <[email protected]>
There is a new strider console flavor with DisplayPort video.
Signed-off-by Dirk Eibach <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160602/93e4a6cf/attachment.sig>
PATCH 3/4 strider: Support con-dp flavor
In reply to dirk.eibach at gdsys.ccQuoted 7 lines · Dirk Eibach
From: Dirk Eibach <[email protected]>
There is a new strider console flavor with DisplayPort video.
Signed-off-by Dirk Eibach <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160606/d63c4691/attachment.sig>
PATCH 4/4 strider: Support cpu-dp flavor
In reply to dirk.eibach at gdsys.ccFrom: Dirk Eibach <[email protected]>
There is new strider cpu flavor with DisplayPort video.
---
configs/strider_cpu_dp_defconfig | 20 ++++++++++++++++++++ include/configs/strider.h | 10 +++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 configs/strider_cpu_dp_defconfig
configs/strider_cpu_dp_defconfig new file +20 -0
@@ -0,0 +1,20 @@ +CONFIG_PPC=y +CONFIG_MPC83xx=y +CONFIG_TARGET_STRIDER=y +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +CONFIG_OF_BOARD_SETUP=y +CONFIG_OF_STDOUT_VIA_ALIAS=y +CONFIG_SYS_EXTRA_OPTIONS="STRIDER_CPU,STRIDER_CPU_DP" +CONFIG_HUSH_PARSER=y +CONFIG_AUTOBOOT_KEYED=y +CONFIG_AUTOBOOT_STOP_STR=" " +CONFIG_CMD_MEMTEST=y +CONFIG_CMD_MMC=y +CONFIG_CMD_I2C=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_MII=y +CONFIG_CMD_PING=y +CONFIG_CMD_EXT2=y +CONFIG_SYS_NS16550=y +CONFIG_OF_LIBFDT=y
include/configs/strider.h +9 -1
@@ -20,7 +20,9 @@#define CONFIG_SYS_TEXT_BASE 0xFE000000 -#ifdef CONFIG_STRIDER_CPU +#ifdef CONFIG_STRIDER_CPU_DP +#define CONFIG_IDENT_STRING " strider cpu dp 0.01" +#elif defined(CONFIG_STRIDER_CPU )#define CONFIG_IDENT_STRING " strider cpu 0.01"#elif defined(CONFIG_STRIDER_CON_DP )#define CONFIG_IDENT_STRING " strider con dp 0.01"
@@ -414,6 +416,12 @@#define CONFIG_SYS_DP501_I2C {1, 3, 5, 7, 2, 4, 6, 8}#define CONFIG_STRIDER_FANS { {10, 0x4c}, {11, 0x4c}, \ {12, 0x4c} } +#elif defined(CONFIG_STRIDER_CPU_DP ) +#define CONFIG_SYS_CH7301_I2C {1, 2, 3, 4} +#define CONFIG_SYS_ADV7611_I2C {1, 2, 3, 4} +#define CONFIG_SYS_DP501_I2C {1, 2, 3, 4} +#define CONFIG_STRIDER_FANS { {6, 0x4c}, {7, 0x4c}, \ + {8, 0x4c} }#else #define CONFIG_SYS_CH7301_I2C {1, 2, 3, 4}#define CONFIG_SYS_ADV7611_I2C {1, 2, 3, 4}
Signature · 1 line
2.1.3
PATCH 4/4 strider: Support cpu-dp flavor
Quoted 6 lines · dirk.eibach at gdsys.cc
From: Dirk Eibach <[email protected]>
There is new strider cpu flavor with DisplayPort video.
Signed-off-by Dirk Eibach <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160602/4f22f5b6/attachment.sig>
PATCH 4/4 strider: Support cpu-dp flavor
In reply to dirk.eibach at gdsys.ccQuoted 6 lines · Dirk Eibach
From: Dirk Eibach <[email protected]>
There is new strider cpu flavor with DisplayPort video.
Signed-off-by Dirk Eibach <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160606/ce10af42/attachment.sig>
cover Update gdsys board support
In reply to dirk.eibach at gdsys.ccQuoted 11 lines · dirk.eibach at gdsys.cc
From: Dirk Eibach <[email protected]>
Dirk Eibach (4):
ioep-fpga: Support intempo compression
gdsys: osd: Allow osdsize on valid screens only
strider: Support con-dp flavor
strider: Support cpu-dp flavor
Quoted 11 lines
board/gdsys/common/Makefile | 1 + board/gdsys/common/ioep-fpga.c | 17 +++++---- board/gdsys/common/osd.c | 3 ++ board/gdsys/mpc8308/strider.c | 37 +++++++++++++++++++ configs/strider_con_dp_defconfig | 20 +++++++++++ configs/strider_cpu_dp_defconfig | 20 +++++++++++ include/configs/strider.h | 77 ++++++++++++++++++++++++++++++++++++---- include/gdsys_fpga.h | 2 +- 8 files changed, 164 insertions(+), 13 deletions(-) create mode 100644 configs/strider_con_dp_defconfig create mode 100644 configs/strider_cpu_dp_defconfig
Any chance you can review and ack/nak
https://patchwork.ozlabs.org/patch/567150/ ? Thanks! :)
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160602/da674595/attachment.sig>