18c2ecf20Sopenharmony_ci#!/usr/bin/env perl
28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci# Copyright (c) Mauro Carvalho Chehab <mchehab@kernel.org>
58c2ecf20Sopenharmony_ci#
68c2ecf20Sopenharmony_ci# In order to use, you need to:
78c2ecf20Sopenharmony_ci#	1) Download the windows driver with something like:
88c2ecf20Sopenharmony_ci#	Version 2.4
98c2ecf20Sopenharmony_ci#		wget http://www.twinhan.com/files/AW/BDA T/20080303_V1.0.6.7.zip
108c2ecf20Sopenharmony_ci#		or wget http://www.stefanringel.de/pub/20080303_V1.0.6.7.zip
118c2ecf20Sopenharmony_ci#	Version 2.7
128c2ecf20Sopenharmony_ci#		wget http://www.steventoth.net/linux/xc5000/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
138c2ecf20Sopenharmony_ci#	2) Extract the files from the zip into the current dir:
148c2ecf20Sopenharmony_ci#		unzip -j 20080303_V1.0.6.7.zip 20080303_v1.0.6.7/UDXTTM6000.sys
158c2ecf20Sopenharmony_ci#		unzip -j HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip Driver85/hcw85bda.sys
168c2ecf20Sopenharmony_ci#	3) run the script:
178c2ecf20Sopenharmony_ci#		./extract_xc3028.pl
188c2ecf20Sopenharmony_ci#	4) copy the generated files:
198c2ecf20Sopenharmony_ci#		cp xc3028-v24.fw /lib/firmware
208c2ecf20Sopenharmony_ci#		cp xc3028-v27.fw /lib/firmware
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#use strict;
238c2ecf20Sopenharmony_ciuse IO::Handle;
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cimy $debug=0;
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cisub verify ($$)
288c2ecf20Sopenharmony_ci{
298c2ecf20Sopenharmony_ci	my ($filename, $hash) = @_;
308c2ecf20Sopenharmony_ci	my ($testhash);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	if (system("which md5sum > /dev/null 2>&1")) {
338c2ecf20Sopenharmony_ci		die "This firmware requires the md5sum command - see http://www.gnu.org/software/coreutils/\n";
348c2ecf20Sopenharmony_ci	}
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci	open(CMD, "md5sum ".$filename."|");
378c2ecf20Sopenharmony_ci	$testhash = <CMD>;
388c2ecf20Sopenharmony_ci	$testhash =~ /([a-zA-Z0-9]*)/;
398c2ecf20Sopenharmony_ci	$testhash = $1;
408c2ecf20Sopenharmony_ci	close CMD;
418c2ecf20Sopenharmony_ci		die "Hash of extracted file does not match (found $testhash, expected $hash!\n" if ($testhash ne $hash);
428c2ecf20Sopenharmony_ci}
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_cisub get_hunk ($$)
458c2ecf20Sopenharmony_ci{
468c2ecf20Sopenharmony_ci	my ($offset, $length) = @_;
478c2ecf20Sopenharmony_ci	my ($chunklength, $buf, $rcount, $out);
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci	sysseek(INFILE, $offset, SEEK_SET);
508c2ecf20Sopenharmony_ci	while ($length > 0) {
518c2ecf20Sopenharmony_ci	# Calc chunk size
528c2ecf20Sopenharmony_ci		$chunklength = 2048;
538c2ecf20Sopenharmony_ci		$chunklength = $length if ($chunklength > $length);
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci		$rcount = sysread(INFILE, $buf, $chunklength);
568c2ecf20Sopenharmony_ci		die "Ran out of data\n" if ($rcount != $chunklength);
578c2ecf20Sopenharmony_ci		$out .= $buf;
588c2ecf20Sopenharmony_ci		$length -= $rcount;
598c2ecf20Sopenharmony_ci	}
608c2ecf20Sopenharmony_ci	return $out;
618c2ecf20Sopenharmony_ci}
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_cisub write_le16($)
648c2ecf20Sopenharmony_ci{
658c2ecf20Sopenharmony_ci	my $val = shift;
668c2ecf20Sopenharmony_ci	my $msb = ($val >> 8) &0xff;
678c2ecf20Sopenharmony_ci	my $lsb = $val & 0xff;
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci	syswrite(OUTFILE, chr($lsb).chr($msb));
708c2ecf20Sopenharmony_ci}
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_cisub write_le32($)
738c2ecf20Sopenharmony_ci{
748c2ecf20Sopenharmony_ci	my $val = shift;
758c2ecf20Sopenharmony_ci	my $l3 = ($val >> 24) & 0xff;
768c2ecf20Sopenharmony_ci	my $l2 = ($val >> 16) & 0xff;
778c2ecf20Sopenharmony_ci	my $l1 = ($val >> 8)  & 0xff;
788c2ecf20Sopenharmony_ci	my $l0 = $val         & 0xff;
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci	syswrite(OUTFILE, chr($l0).chr($l1).chr($l2).chr($l3));
818c2ecf20Sopenharmony_ci}
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_cisub write_le64($$)
848c2ecf20Sopenharmony_ci{
858c2ecf20Sopenharmony_ci	my $msb_val = shift;
868c2ecf20Sopenharmony_ci	my $lsb_val = shift;
878c2ecf20Sopenharmony_ci	my $l7 = ($msb_val >> 24) & 0xff;
888c2ecf20Sopenharmony_ci	my $l6 = ($msb_val >> 16) & 0xff;
898c2ecf20Sopenharmony_ci	my $l5 = ($msb_val >> 8)  & 0xff;
908c2ecf20Sopenharmony_ci	my $l4 = $msb_val         & 0xff;
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci	my $l3 = ($lsb_val >> 24) & 0xff;
938c2ecf20Sopenharmony_ci	my $l2 = ($lsb_val >> 16) & 0xff;
948c2ecf20Sopenharmony_ci	my $l1 = ($lsb_val >> 8)  & 0xff;
958c2ecf20Sopenharmony_ci	my $l0 = $lsb_val         & 0xff;
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci	syswrite(OUTFILE,
988c2ecf20Sopenharmony_ci		 chr($l0).chr($l1).chr($l2).chr($l3).
998c2ecf20Sopenharmony_ci		 chr($l4).chr($l5).chr($l6).chr($l7));
1008c2ecf20Sopenharmony_ci}
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_cisub write_hunk($$)
1038c2ecf20Sopenharmony_ci{
1048c2ecf20Sopenharmony_ci	my ($offset, $length) = @_;
1058c2ecf20Sopenharmony_ci	my $out = get_hunk($offset, $length);
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci	printf "(len %d) ",$length if ($debug);
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci	for (my $i=0;$i<$length;$i++) {
1108c2ecf20Sopenharmony_ci		printf "%02x ",ord(substr($out,$i,1)) if ($debug);
1118c2ecf20Sopenharmony_ci	}
1128c2ecf20Sopenharmony_ci	printf "\n" if ($debug);
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci	syswrite(OUTFILE, $out);
1158c2ecf20Sopenharmony_ci}
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_cisub write_hunk_fix_endian($$)
1188c2ecf20Sopenharmony_ci{
1198c2ecf20Sopenharmony_ci	my ($offset, $length) = @_;
1208c2ecf20Sopenharmony_ci	my $out = get_hunk($offset, $length);
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci	printf "(len_fix %d) ",$length if ($debug);
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_ci	for (my $i=0;$i<$length;$i++) {
1258c2ecf20Sopenharmony_ci		printf "%02x ",ord(substr($out,$i,1)) if ($debug);
1268c2ecf20Sopenharmony_ci	}
1278c2ecf20Sopenharmony_ci	printf "\n" if ($debug);
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci	my $i=0;
1308c2ecf20Sopenharmony_ci	while ($i<$length) {
1318c2ecf20Sopenharmony_ci		my $size = ord(substr($out,$i,1))*256+ord(substr($out,$i+1,1));
1328c2ecf20Sopenharmony_ci		syswrite(OUTFILE, substr($out,$i+1,1));
1338c2ecf20Sopenharmony_ci		syswrite(OUTFILE, substr($out,$i,1));
1348c2ecf20Sopenharmony_ci		$i+=2;
1358c2ecf20Sopenharmony_ci		if ($size>0 && $size <0x8000) {
1368c2ecf20Sopenharmony_ci			for (my $j=0;$j<$size;$j++) {
1378c2ecf20Sopenharmony_ci				syswrite(OUTFILE, substr($out,$j+$i,1));
1388c2ecf20Sopenharmony_ci			}
1398c2ecf20Sopenharmony_ci			$i+=$size;
1408c2ecf20Sopenharmony_ci		}
1418c2ecf20Sopenharmony_ci	}
1428c2ecf20Sopenharmony_ci}
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_cisub main_firmware_24($$$$)
1458c2ecf20Sopenharmony_ci{
1468c2ecf20Sopenharmony_ci	my $out;
1478c2ecf20Sopenharmony_ci	my $j=0;
1488c2ecf20Sopenharmony_ci	my $outfile = shift;
1498c2ecf20Sopenharmony_ci	my $name    = shift;
1508c2ecf20Sopenharmony_ci	my $version = shift;
1518c2ecf20Sopenharmony_ci	my $nr_desc = shift;
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ci	for ($j = length($name); $j <32; $j++) {
1548c2ecf20Sopenharmony_ci		$name = $name.chr(0);
1558c2ecf20Sopenharmony_ci	}
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci	open OUTFILE, ">$outfile";
1588c2ecf20Sopenharmony_ci	syswrite(OUTFILE, $name);
1598c2ecf20Sopenharmony_ci	write_le16($version);
1608c2ecf20Sopenharmony_ci	write_le16($nr_desc);
1618c2ecf20Sopenharmony_ci
1628c2ecf20Sopenharmony_ci	#
1638c2ecf20Sopenharmony_ci	# Firmware 0, type: BASE FW   F8MHZ (0x00000003), id: (0000000000000000), size: 6635
1648c2ecf20Sopenharmony_ci	#
1658c2ecf20Sopenharmony_ci
1668c2ecf20Sopenharmony_ci	write_le32(0x00000003);			# Type
1678c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
1688c2ecf20Sopenharmony_ci	write_le32(6635);			# Size
1698c2ecf20Sopenharmony_ci	write_hunk_fix_endian(257752, 6635);
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci	#
1728c2ecf20Sopenharmony_ci	# Firmware 1, type: BASE FW   F8MHZ MTS (0x00000007), id: (0000000000000000), size: 6635
1738c2ecf20Sopenharmony_ci	#
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_ci	write_le32(0x00000007);			# Type
1768c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
1778c2ecf20Sopenharmony_ci	write_le32(6635);			# Size
1788c2ecf20Sopenharmony_ci	write_hunk_fix_endian(264392, 6635);
1798c2ecf20Sopenharmony_ci
1808c2ecf20Sopenharmony_ci	#
1818c2ecf20Sopenharmony_ci	# Firmware 2, type: BASE FW   FM (0x00000401), id: (0000000000000000), size: 6525
1828c2ecf20Sopenharmony_ci	#
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_ci	write_le32(0x00000401);			# Type
1858c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
1868c2ecf20Sopenharmony_ci	write_le32(6525);			# Size
1878c2ecf20Sopenharmony_ci	write_hunk_fix_endian(271040, 6525);
1888c2ecf20Sopenharmony_ci
1898c2ecf20Sopenharmony_ci	#
1908c2ecf20Sopenharmony_ci	# Firmware 3, type: BASE FW   FM INPUT1 (0x00000c01), id: (0000000000000000), size: 6539
1918c2ecf20Sopenharmony_ci	#
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_ci	write_le32(0x00000c01);			# Type
1948c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
1958c2ecf20Sopenharmony_ci	write_le32(6539);			# Size
1968c2ecf20Sopenharmony_ci	write_hunk_fix_endian(277568, 6539);
1978c2ecf20Sopenharmony_ci
1988c2ecf20Sopenharmony_ci	#
1998c2ecf20Sopenharmony_ci	# Firmware 4, type: BASE FW   (0x00000001), id: (0000000000000000), size: 6633
2008c2ecf20Sopenharmony_ci	#
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci	write_le32(0x00000001);			# Type
2038c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
2048c2ecf20Sopenharmony_ci	write_le32(6633);			# Size
2058c2ecf20Sopenharmony_ci	write_hunk_fix_endian(284120, 6633);
2068c2ecf20Sopenharmony_ci
2078c2ecf20Sopenharmony_ci	#
2088c2ecf20Sopenharmony_ci	# Firmware 5, type: BASE FW   MTS (0x00000005), id: (0000000000000000), size: 6617
2098c2ecf20Sopenharmony_ci	#
2108c2ecf20Sopenharmony_ci
2118c2ecf20Sopenharmony_ci	write_le32(0x00000005);			# Type
2128c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
2138c2ecf20Sopenharmony_ci	write_le32(6617);			# Size
2148c2ecf20Sopenharmony_ci	write_hunk_fix_endian(290760, 6617);
2158c2ecf20Sopenharmony_ci
2168c2ecf20Sopenharmony_ci	#
2178c2ecf20Sopenharmony_ci	# Firmware 6, type: STD FW    (0x00000000), id: PAL/BG A2/A (0000000100000007), size: 161
2188c2ecf20Sopenharmony_ci	#
2198c2ecf20Sopenharmony_ci
2208c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
2218c2ecf20Sopenharmony_ci	write_le64(0x00000001, 0x00000007);	# ID
2228c2ecf20Sopenharmony_ci	write_le32(161);			# Size
2238c2ecf20Sopenharmony_ci	write_hunk_fix_endian(297384, 161);
2248c2ecf20Sopenharmony_ci
2258c2ecf20Sopenharmony_ci	#
2268c2ecf20Sopenharmony_ci	# Firmware 7, type: STD FW    MTS (0x00000004), id: PAL/BG A2/A (0000000100000007), size: 169
2278c2ecf20Sopenharmony_ci	#
2288c2ecf20Sopenharmony_ci
2298c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
2308c2ecf20Sopenharmony_ci	write_le64(0x00000001, 0x00000007);	# ID
2318c2ecf20Sopenharmony_ci	write_le32(169);			# Size
2328c2ecf20Sopenharmony_ci	write_hunk_fix_endian(297552, 169);
2338c2ecf20Sopenharmony_ci
2348c2ecf20Sopenharmony_ci	#
2358c2ecf20Sopenharmony_ci	# Firmware 8, type: STD FW    (0x00000000), id: PAL/BG A2/B (0000000200000007), size: 161
2368c2ecf20Sopenharmony_ci	#
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
2398c2ecf20Sopenharmony_ci	write_le64(0x00000002, 0x00000007);	# ID
2408c2ecf20Sopenharmony_ci	write_le32(161);			# Size
2418c2ecf20Sopenharmony_ci	write_hunk_fix_endian(297728, 161);
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_ci	#
2448c2ecf20Sopenharmony_ci	# Firmware 9, type: STD FW    MTS (0x00000004), id: PAL/BG A2/B (0000000200000007), size: 169
2458c2ecf20Sopenharmony_ci	#
2468c2ecf20Sopenharmony_ci
2478c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
2488c2ecf20Sopenharmony_ci	write_le64(0x00000002, 0x00000007);	# ID
2498c2ecf20Sopenharmony_ci	write_le32(169);			# Size
2508c2ecf20Sopenharmony_ci	write_hunk_fix_endian(297896, 169);
2518c2ecf20Sopenharmony_ci
2528c2ecf20Sopenharmony_ci	#
2538c2ecf20Sopenharmony_ci	# Firmware 10, type: STD FW    (0x00000000), id: PAL/BG NICAM/A (0000000400000007), size: 161
2548c2ecf20Sopenharmony_ci	#
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
2578c2ecf20Sopenharmony_ci	write_le64(0x00000004, 0x00000007);	# ID
2588c2ecf20Sopenharmony_ci	write_le32(161);			# Size
2598c2ecf20Sopenharmony_ci	write_hunk_fix_endian(298072, 161);
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ci	#
2628c2ecf20Sopenharmony_ci	# Firmware 11, type: STD FW    MTS (0x00000004), id: PAL/BG NICAM/A (0000000400000007), size: 169
2638c2ecf20Sopenharmony_ci	#
2648c2ecf20Sopenharmony_ci
2658c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
2668c2ecf20Sopenharmony_ci	write_le64(0x00000004, 0x00000007);	# ID
2678c2ecf20Sopenharmony_ci	write_le32(169);			# Size
2688c2ecf20Sopenharmony_ci	write_hunk_fix_endian(298240, 169);
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_ci	#
2718c2ecf20Sopenharmony_ci	# Firmware 12, type: STD FW    (0x00000000), id: PAL/BG NICAM/B (0000000800000007), size: 161
2728c2ecf20Sopenharmony_ci	#
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
2758c2ecf20Sopenharmony_ci	write_le64(0x00000008, 0x00000007);	# ID
2768c2ecf20Sopenharmony_ci	write_le32(161);			# Size
2778c2ecf20Sopenharmony_ci	write_hunk_fix_endian(298416, 161);
2788c2ecf20Sopenharmony_ci
2798c2ecf20Sopenharmony_ci	#
2808c2ecf20Sopenharmony_ci	# Firmware 13, type: STD FW    MTS (0x00000004), id: PAL/BG NICAM/B (0000000800000007), size: 169
2818c2ecf20Sopenharmony_ci	#
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
2848c2ecf20Sopenharmony_ci	write_le64(0x00000008, 0x00000007);	# ID
2858c2ecf20Sopenharmony_ci	write_le32(169);			# Size
2868c2ecf20Sopenharmony_ci	write_hunk_fix_endian(298584, 169);
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci	#
2898c2ecf20Sopenharmony_ci	# Firmware 14, type: STD FW    (0x00000000), id: PAL/DK A2 (00000003000000e0), size: 161
2908c2ecf20Sopenharmony_ci	#
2918c2ecf20Sopenharmony_ci
2928c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
2938c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
2948c2ecf20Sopenharmony_ci	write_le32(161);			# Size
2958c2ecf20Sopenharmony_ci	write_hunk_fix_endian(298760, 161);
2968c2ecf20Sopenharmony_ci
2978c2ecf20Sopenharmony_ci	#
2988c2ecf20Sopenharmony_ci	# Firmware 15, type: STD FW    MTS (0x00000004), id: PAL/DK A2 (00000003000000e0), size: 169
2998c2ecf20Sopenharmony_ci	#
3008c2ecf20Sopenharmony_ci
3018c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
3028c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
3038c2ecf20Sopenharmony_ci	write_le32(169);			# Size
3048c2ecf20Sopenharmony_ci	write_hunk_fix_endian(298928, 169);
3058c2ecf20Sopenharmony_ci
3068c2ecf20Sopenharmony_ci	#
3078c2ecf20Sopenharmony_ci	# Firmware 16, type: STD FW    (0x00000000), id: PAL/DK NICAM (0000000c000000e0), size: 161
3088c2ecf20Sopenharmony_ci	#
3098c2ecf20Sopenharmony_ci
3108c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
3118c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x000000e0);	# ID
3128c2ecf20Sopenharmony_ci	write_le32(161);			# Size
3138c2ecf20Sopenharmony_ci	write_hunk_fix_endian(299104, 161);
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci	#
3168c2ecf20Sopenharmony_ci	# Firmware 17, type: STD FW    MTS (0x00000004), id: PAL/DK NICAM (0000000c000000e0), size: 169
3178c2ecf20Sopenharmony_ci	#
3188c2ecf20Sopenharmony_ci
3198c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
3208c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x000000e0);	# ID
3218c2ecf20Sopenharmony_ci	write_le32(169);			# Size
3228c2ecf20Sopenharmony_ci	write_hunk_fix_endian(299272, 169);
3238c2ecf20Sopenharmony_ci
3248c2ecf20Sopenharmony_ci	#
3258c2ecf20Sopenharmony_ci	# Firmware 18, type: STD FW    (0x00000000), id: SECAM/K1 (0000000000200000), size: 161
3268c2ecf20Sopenharmony_ci	#
3278c2ecf20Sopenharmony_ci
3288c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
3298c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
3308c2ecf20Sopenharmony_ci	write_le32(161);			# Size
3318c2ecf20Sopenharmony_ci	write_hunk_fix_endian(299448, 161);
3328c2ecf20Sopenharmony_ci
3338c2ecf20Sopenharmony_ci	#
3348c2ecf20Sopenharmony_ci	# Firmware 19, type: STD FW    MTS (0x00000004), id: SECAM/K1 (0000000000200000), size: 169
3358c2ecf20Sopenharmony_ci	#
3368c2ecf20Sopenharmony_ci
3378c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
3388c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
3398c2ecf20Sopenharmony_ci	write_le32(169);			# Size
3408c2ecf20Sopenharmony_ci	write_hunk_fix_endian(299616, 169);
3418c2ecf20Sopenharmony_ci
3428c2ecf20Sopenharmony_ci	#
3438c2ecf20Sopenharmony_ci	# Firmware 20, type: STD FW    (0x00000000), id: SECAM/K3 (0000000004000000), size: 161
3448c2ecf20Sopenharmony_ci	#
3458c2ecf20Sopenharmony_ci
3468c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
3478c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x04000000);	# ID
3488c2ecf20Sopenharmony_ci	write_le32(161);			# Size
3498c2ecf20Sopenharmony_ci	write_hunk_fix_endian(299792, 161);
3508c2ecf20Sopenharmony_ci
3518c2ecf20Sopenharmony_ci	#
3528c2ecf20Sopenharmony_ci	# Firmware 21, type: STD FW    MTS (0x00000004), id: SECAM/K3 (0000000004000000), size: 169
3538c2ecf20Sopenharmony_ci	#
3548c2ecf20Sopenharmony_ci
3558c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
3568c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x04000000);	# ID
3578c2ecf20Sopenharmony_ci	write_le32(169);			# Size
3588c2ecf20Sopenharmony_ci	write_hunk_fix_endian(299960, 169);
3598c2ecf20Sopenharmony_ci
3608c2ecf20Sopenharmony_ci	#
3618c2ecf20Sopenharmony_ci	# Firmware 22, type: STD FW    D2633 DTV6 ATSC (0x00010030), id: (0000000000000000), size: 149
3628c2ecf20Sopenharmony_ci	#
3638c2ecf20Sopenharmony_ci
3648c2ecf20Sopenharmony_ci	write_le32(0x00010030);			# Type
3658c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
3668c2ecf20Sopenharmony_ci	write_le32(149);			# Size
3678c2ecf20Sopenharmony_ci	write_hunk_fix_endian(300136, 149);
3688c2ecf20Sopenharmony_ci
3698c2ecf20Sopenharmony_ci	#
3708c2ecf20Sopenharmony_ci	# Firmware 23, type: STD FW    D2620 DTV6 QAM (0x00000068), id: (0000000000000000), size: 149
3718c2ecf20Sopenharmony_ci	#
3728c2ecf20Sopenharmony_ci
3738c2ecf20Sopenharmony_ci	write_le32(0x00000068);			# Type
3748c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
3758c2ecf20Sopenharmony_ci	write_le32(149);			# Size
3768c2ecf20Sopenharmony_ci	write_hunk_fix_endian(300296, 149);
3778c2ecf20Sopenharmony_ci
3788c2ecf20Sopenharmony_ci	#
3798c2ecf20Sopenharmony_ci	# Firmware 24, type: STD FW    D2633 DTV6 QAM (0x00000070), id: (0000000000000000), size: 149
3808c2ecf20Sopenharmony_ci	#
3818c2ecf20Sopenharmony_ci
3828c2ecf20Sopenharmony_ci	write_le32(0x00000070);			# Type
3838c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
3848c2ecf20Sopenharmony_ci	write_le32(149);			# Size
3858c2ecf20Sopenharmony_ci	write_hunk_fix_endian(300448, 149);
3868c2ecf20Sopenharmony_ci
3878c2ecf20Sopenharmony_ci	#
3888c2ecf20Sopenharmony_ci	# Firmware 25, type: STD FW    D2620 DTV7 (0x00000088), id: (0000000000000000), size: 149
3898c2ecf20Sopenharmony_ci	#
3908c2ecf20Sopenharmony_ci
3918c2ecf20Sopenharmony_ci	write_le32(0x00000088);			# Type
3928c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
3938c2ecf20Sopenharmony_ci	write_le32(149);			# Size
3948c2ecf20Sopenharmony_ci	write_hunk_fix_endian(300608, 149);
3958c2ecf20Sopenharmony_ci
3968c2ecf20Sopenharmony_ci	#
3978c2ecf20Sopenharmony_ci	# Firmware 26, type: STD FW    D2633 DTV7 (0x00000090), id: (0000000000000000), size: 149
3988c2ecf20Sopenharmony_ci	#
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_ci	write_le32(0x00000090);			# Type
4018c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
4028c2ecf20Sopenharmony_ci	write_le32(149);			# Size
4038c2ecf20Sopenharmony_ci	write_hunk_fix_endian(300760, 149);
4048c2ecf20Sopenharmony_ci
4058c2ecf20Sopenharmony_ci	#
4068c2ecf20Sopenharmony_ci	# Firmware 27, type: STD FW    D2620 DTV78 (0x00000108), id: (0000000000000000), size: 149
4078c2ecf20Sopenharmony_ci	#
4088c2ecf20Sopenharmony_ci
4098c2ecf20Sopenharmony_ci	write_le32(0x00000108);			# Type
4108c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
4118c2ecf20Sopenharmony_ci	write_le32(149);			# Size
4128c2ecf20Sopenharmony_ci	write_hunk_fix_endian(300920, 149);
4138c2ecf20Sopenharmony_ci
4148c2ecf20Sopenharmony_ci	#
4158c2ecf20Sopenharmony_ci	# Firmware 28, type: STD FW    D2633 DTV78 (0x00000110), id: (0000000000000000), size: 149
4168c2ecf20Sopenharmony_ci	#
4178c2ecf20Sopenharmony_ci
4188c2ecf20Sopenharmony_ci	write_le32(0x00000110);			# Type
4198c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
4208c2ecf20Sopenharmony_ci	write_le32(149);			# Size
4218c2ecf20Sopenharmony_ci	write_hunk_fix_endian(301072, 149);
4228c2ecf20Sopenharmony_ci
4238c2ecf20Sopenharmony_ci	#
4248c2ecf20Sopenharmony_ci	# Firmware 29, type: STD FW    D2620 DTV8 (0x00000208), id: (0000000000000000), size: 149
4258c2ecf20Sopenharmony_ci	#
4268c2ecf20Sopenharmony_ci
4278c2ecf20Sopenharmony_ci	write_le32(0x00000208);			# Type
4288c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
4298c2ecf20Sopenharmony_ci	write_le32(149);			# Size
4308c2ecf20Sopenharmony_ci	write_hunk_fix_endian(301232, 149);
4318c2ecf20Sopenharmony_ci
4328c2ecf20Sopenharmony_ci	#
4338c2ecf20Sopenharmony_ci	# Firmware 30, type: STD FW    D2633 DTV8 (0x00000210), id: (0000000000000000), size: 149
4348c2ecf20Sopenharmony_ci	#
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_ci	write_le32(0x00000210);			# Type
4378c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
4388c2ecf20Sopenharmony_ci	write_le32(149);			# Size
4398c2ecf20Sopenharmony_ci	write_hunk_fix_endian(301384, 149);
4408c2ecf20Sopenharmony_ci
4418c2ecf20Sopenharmony_ci	#
4428c2ecf20Sopenharmony_ci	# Firmware 31, type: STD FW    FM (0x00000400), id: (0000000000000000), size: 135
4438c2ecf20Sopenharmony_ci	#
4448c2ecf20Sopenharmony_ci
4458c2ecf20Sopenharmony_ci	write_le32(0x00000400);			# Type
4468c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
4478c2ecf20Sopenharmony_ci	write_le32(135);			# Size
4488c2ecf20Sopenharmony_ci	write_hunk_fix_endian(301554, 135);
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci	#
4518c2ecf20Sopenharmony_ci	# Firmware 32, type: STD FW    (0x00000000), id: PAL/I (0000000000000010), size: 161
4528c2ecf20Sopenharmony_ci	#
4538c2ecf20Sopenharmony_ci
4548c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
4558c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000010);	# ID
4568c2ecf20Sopenharmony_ci	write_le32(161);			# Size
4578c2ecf20Sopenharmony_ci	write_hunk_fix_endian(301688, 161);
4588c2ecf20Sopenharmony_ci
4598c2ecf20Sopenharmony_ci	#
4608c2ecf20Sopenharmony_ci	# Firmware 33, type: STD FW    MTS (0x00000004), id: PAL/I (0000000000000010), size: 169
4618c2ecf20Sopenharmony_ci	#
4628c2ecf20Sopenharmony_ci
4638c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
4648c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000010);	# ID
4658c2ecf20Sopenharmony_ci	write_le32(169);			# Size
4668c2ecf20Sopenharmony_ci	write_hunk_fix_endian(301856, 169);
4678c2ecf20Sopenharmony_ci
4688c2ecf20Sopenharmony_ci	#
4698c2ecf20Sopenharmony_ci	# Firmware 34, type: STD FW    (0x00000000), id: SECAM/L AM (0000001000400000), size: 169
4708c2ecf20Sopenharmony_ci	#
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_ci	#
4738c2ecf20Sopenharmony_ci	# Firmware 35, type: STD FW    (0x00000000), id: SECAM/L NICAM (0000000c00400000), size: 161
4748c2ecf20Sopenharmony_ci	#
4758c2ecf20Sopenharmony_ci
4768c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
4778c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x00400000);	# ID
4788c2ecf20Sopenharmony_ci	write_le32(161);			# Size
4798c2ecf20Sopenharmony_ci	write_hunk_fix_endian(302032, 161);
4808c2ecf20Sopenharmony_ci
4818c2ecf20Sopenharmony_ci	#
4828c2ecf20Sopenharmony_ci	# Firmware 36, type: STD FW    (0x00000000), id: SECAM/Lc (0000000000800000), size: 161
4838c2ecf20Sopenharmony_ci	#
4848c2ecf20Sopenharmony_ci
4858c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
4868c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00800000);	# ID
4878c2ecf20Sopenharmony_ci	write_le32(161);			# Size
4888c2ecf20Sopenharmony_ci	write_hunk_fix_endian(302200, 161);
4898c2ecf20Sopenharmony_ci
4908c2ecf20Sopenharmony_ci	#
4918c2ecf20Sopenharmony_ci	# Firmware 37, type: STD FW    (0x00000000), id: NTSC/M Kr (0000000000008000), size: 161
4928c2ecf20Sopenharmony_ci	#
4938c2ecf20Sopenharmony_ci
4948c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
4958c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
4968c2ecf20Sopenharmony_ci	write_le32(161);			# Size
4978c2ecf20Sopenharmony_ci	write_hunk_fix_endian(302368, 161);
4988c2ecf20Sopenharmony_ci
4998c2ecf20Sopenharmony_ci	#
5008c2ecf20Sopenharmony_ci	# Firmware 38, type: STD FW    LCD (0x00001000), id: NTSC/M Kr (0000000000008000), size: 161
5018c2ecf20Sopenharmony_ci	#
5028c2ecf20Sopenharmony_ci
5038c2ecf20Sopenharmony_ci	write_le32(0x00001000);			# Type
5048c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
5058c2ecf20Sopenharmony_ci	write_le32(161);			# Size
5068c2ecf20Sopenharmony_ci	write_hunk_fix_endian(302536, 161);
5078c2ecf20Sopenharmony_ci
5088c2ecf20Sopenharmony_ci	#
5098c2ecf20Sopenharmony_ci	# Firmware 39, type: STD FW    LCD NOGD (0x00003000), id: NTSC/M Kr (0000000000008000), size: 161
5108c2ecf20Sopenharmony_ci	#
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_ci	write_le32(0x00003000);			# Type
5138c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
5148c2ecf20Sopenharmony_ci	write_le32(161);			# Size
5158c2ecf20Sopenharmony_ci	write_hunk_fix_endian(302704, 161);
5168c2ecf20Sopenharmony_ci
5178c2ecf20Sopenharmony_ci	#
5188c2ecf20Sopenharmony_ci	# Firmware 40, type: STD FW    MTS (0x00000004), id: NTSC/M Kr (0000000000008000), size: 169
5198c2ecf20Sopenharmony_ci	#
5208c2ecf20Sopenharmony_ci
5218c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
5228c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
5238c2ecf20Sopenharmony_ci	write_le32(169);			# Size
5248c2ecf20Sopenharmony_ci	write_hunk_fix_endian(302872, 169);
5258c2ecf20Sopenharmony_ci
5268c2ecf20Sopenharmony_ci	#
5278c2ecf20Sopenharmony_ci	# Firmware 41, type: STD FW    (0x00000000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
5288c2ecf20Sopenharmony_ci	#
5298c2ecf20Sopenharmony_ci
5308c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
5318c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
5328c2ecf20Sopenharmony_ci	write_le32(161);			# Size
5338c2ecf20Sopenharmony_ci	write_hunk_fix_endian(303048, 161);
5348c2ecf20Sopenharmony_ci
5358c2ecf20Sopenharmony_ci	#
5368c2ecf20Sopenharmony_ci	# Firmware 42, type: STD FW    LCD (0x00001000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
5378c2ecf20Sopenharmony_ci	#
5388c2ecf20Sopenharmony_ci
5398c2ecf20Sopenharmony_ci	write_le32(0x00001000);			# Type
5408c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
5418c2ecf20Sopenharmony_ci	write_le32(161);			# Size
5428c2ecf20Sopenharmony_ci	write_hunk_fix_endian(303216, 161);
5438c2ecf20Sopenharmony_ci
5448c2ecf20Sopenharmony_ci	#
5458c2ecf20Sopenharmony_ci	# Firmware 43, type: STD FW    LCD NOGD (0x00003000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
5468c2ecf20Sopenharmony_ci	#
5478c2ecf20Sopenharmony_ci
5488c2ecf20Sopenharmony_ci	write_le32(0x00003000);			# Type
5498c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
5508c2ecf20Sopenharmony_ci	write_le32(161);			# Size
5518c2ecf20Sopenharmony_ci	write_hunk_fix_endian(303384, 161);
5528c2ecf20Sopenharmony_ci
5538c2ecf20Sopenharmony_ci	#
5548c2ecf20Sopenharmony_ci	# Firmware 44, type: STD FW    (0x00000000), id: NTSC/M Jp (0000000000002000), size: 161
5558c2ecf20Sopenharmony_ci	#
5568c2ecf20Sopenharmony_ci
5578c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
5588c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00002000);	# ID
5598c2ecf20Sopenharmony_ci	write_le32(161);			# Size
5608c2ecf20Sopenharmony_ci	write_hunk_fix_endian(303552, 161);
5618c2ecf20Sopenharmony_ci
5628c2ecf20Sopenharmony_ci	#
5638c2ecf20Sopenharmony_ci	# Firmware 45, type: STD FW    MTS (0x00000004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
5648c2ecf20Sopenharmony_ci	#
5658c2ecf20Sopenharmony_ci
5668c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
5678c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
5688c2ecf20Sopenharmony_ci	write_le32(169);			# Size
5698c2ecf20Sopenharmony_ci	write_hunk_fix_endian(303720, 169);
5708c2ecf20Sopenharmony_ci
5718c2ecf20Sopenharmony_ci	#
5728c2ecf20Sopenharmony_ci	# Firmware 46, type: STD FW    MTS LCD (0x00001004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
5738c2ecf20Sopenharmony_ci	#
5748c2ecf20Sopenharmony_ci
5758c2ecf20Sopenharmony_ci	write_le32(0x00001004);			# Type
5768c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
5778c2ecf20Sopenharmony_ci	write_le32(169);			# Size
5788c2ecf20Sopenharmony_ci	write_hunk_fix_endian(303896, 169);
5798c2ecf20Sopenharmony_ci
5808c2ecf20Sopenharmony_ci	#
5818c2ecf20Sopenharmony_ci	# Firmware 47, type: STD FW    MTS LCD NOGD (0x00003004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
5828c2ecf20Sopenharmony_ci	#
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_ci	write_le32(0x00003004);			# Type
5858c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
5868c2ecf20Sopenharmony_ci	write_le32(169);			# Size
5878c2ecf20Sopenharmony_ci	write_hunk_fix_endian(304072, 169);
5888c2ecf20Sopenharmony_ci
5898c2ecf20Sopenharmony_ci	#
5908c2ecf20Sopenharmony_ci	# Firmware 48, type: SCODE FW  HAS IF (0x60000000), IF = 3.28 MHz id: (0000000000000000), size: 192
5918c2ecf20Sopenharmony_ci	#
5928c2ecf20Sopenharmony_ci
5938c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
5948c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
5958c2ecf20Sopenharmony_ci	write_le16(3280);			# IF
5968c2ecf20Sopenharmony_ci	write_le32(192);			# Size
5978c2ecf20Sopenharmony_ci	write_hunk(309048, 192);
5988c2ecf20Sopenharmony_ci
5998c2ecf20Sopenharmony_ci	#
6008c2ecf20Sopenharmony_ci	# Firmware 49, type: SCODE FW  HAS IF (0x60000000), IF = 3.30 MHz id: (0000000000000000), size: 192
6018c2ecf20Sopenharmony_ci	#
6028c2ecf20Sopenharmony_ci
6038c2ecf20Sopenharmony_ci#	write_le32(0x60000000);			# Type
6048c2ecf20Sopenharmony_ci#	write_le64(0x00000000, 0x00000000);	# ID
6058c2ecf20Sopenharmony_ci#	write_le16(3300);			# IF
6068c2ecf20Sopenharmony_ci#	write_le32(192);			# Size
6078c2ecf20Sopenharmony_ci#	write_hunk(304440, 192);
6088c2ecf20Sopenharmony_ci
6098c2ecf20Sopenharmony_ci	#
6108c2ecf20Sopenharmony_ci	# Firmware 50, type: SCODE FW  HAS IF (0x60000000), IF = 3.44 MHz id: (0000000000000000), size: 192
6118c2ecf20Sopenharmony_ci	#
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
6148c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
6158c2ecf20Sopenharmony_ci	write_le16(3440);			# IF
6168c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6178c2ecf20Sopenharmony_ci	write_hunk(309432, 192);
6188c2ecf20Sopenharmony_ci
6198c2ecf20Sopenharmony_ci	#
6208c2ecf20Sopenharmony_ci	# Firmware 51, type: SCODE FW  HAS IF (0x60000000), IF = 3.46 MHz id: (0000000000000000), size: 192
6218c2ecf20Sopenharmony_ci	#
6228c2ecf20Sopenharmony_ci
6238c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
6248c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
6258c2ecf20Sopenharmony_ci	write_le16(3460);			# IF
6268c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6278c2ecf20Sopenharmony_ci	write_hunk(309624, 192);
6288c2ecf20Sopenharmony_ci
6298c2ecf20Sopenharmony_ci	#
6308c2ecf20Sopenharmony_ci	# Firmware 52, type: SCODE FW  DTV6 ATSC OREN36 HAS IF (0x60210020), IF = 3.80 MHz id: (0000000000000000), size: 192
6318c2ecf20Sopenharmony_ci	#
6328c2ecf20Sopenharmony_ci
6338c2ecf20Sopenharmony_ci	write_le32(0x60210020);			# Type
6348c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
6358c2ecf20Sopenharmony_ci	write_le16(3800);			# IF
6368c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6378c2ecf20Sopenharmony_ci	write_hunk(306936, 192);
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_ci	#
6408c2ecf20Sopenharmony_ci	# Firmware 53, type: SCODE FW  HAS IF (0x60000000), IF = 4.00 MHz id: (0000000000000000), size: 192
6418c2ecf20Sopenharmony_ci	#
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
6448c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
6458c2ecf20Sopenharmony_ci	write_le16(4000);			# IF
6468c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6478c2ecf20Sopenharmony_ci	write_hunk(309240, 192);
6488c2ecf20Sopenharmony_ci
6498c2ecf20Sopenharmony_ci	#
6508c2ecf20Sopenharmony_ci	# Firmware 54, type: SCODE FW  DTV6 ATSC TOYOTA388 HAS IF (0x60410020), IF = 4.08 MHz id: (0000000000000000), size: 192
6518c2ecf20Sopenharmony_ci	#
6528c2ecf20Sopenharmony_ci
6538c2ecf20Sopenharmony_ci	write_le32(0x60410020);			# Type
6548c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
6558c2ecf20Sopenharmony_ci	write_le16(4080);			# IF
6568c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6578c2ecf20Sopenharmony_ci	write_hunk(307128, 192);
6588c2ecf20Sopenharmony_ci
6598c2ecf20Sopenharmony_ci	#
6608c2ecf20Sopenharmony_ci	# Firmware 55, type: SCODE FW  HAS IF (0x60000000), IF = 4.20 MHz id: (0000000000000000), size: 192
6618c2ecf20Sopenharmony_ci	#
6628c2ecf20Sopenharmony_ci
6638c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
6648c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
6658c2ecf20Sopenharmony_ci	write_le16(4200);			# IF
6668c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6678c2ecf20Sopenharmony_ci	write_hunk(308856, 192);
6688c2ecf20Sopenharmony_ci
6698c2ecf20Sopenharmony_ci	#
6708c2ecf20Sopenharmony_ci	# Firmware 56, type: SCODE FW  MONO HAS IF (0x60008000), IF = 4.32 MHz id: NTSC/M Kr (0000000000008000), size: 192
6718c2ecf20Sopenharmony_ci	#
6728c2ecf20Sopenharmony_ci
6738c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
6748c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
6758c2ecf20Sopenharmony_ci	write_le16(4320);			# IF
6768c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6778c2ecf20Sopenharmony_ci	write_hunk(305208, 192);
6788c2ecf20Sopenharmony_ci
6798c2ecf20Sopenharmony_ci	#
6808c2ecf20Sopenharmony_ci	# Firmware 57, type: SCODE FW  HAS IF (0x60000000), IF = 4.45 MHz id: (0000000000000000), size: 192
6818c2ecf20Sopenharmony_ci	#
6828c2ecf20Sopenharmony_ci
6838c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
6848c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
6858c2ecf20Sopenharmony_ci	write_le16(4450);			# IF
6868c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6878c2ecf20Sopenharmony_ci	write_hunk(309816, 192);
6888c2ecf20Sopenharmony_ci
6898c2ecf20Sopenharmony_ci	#
6908c2ecf20Sopenharmony_ci	# Firmware 58, type: SCODE FW  MTS LCD NOGD MONO IF HAS IF (0x6002b004), IF = 4.50 MHz id: NTSC PAL/M PAL/N (000000000000b700), size: 192
6918c2ecf20Sopenharmony_ci	#
6928c2ecf20Sopenharmony_ci
6938c2ecf20Sopenharmony_ci	write_le32(0x6002b004);			# Type
6948c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
6958c2ecf20Sopenharmony_ci	write_le16(4500);			# IF
6968c2ecf20Sopenharmony_ci	write_le32(192);			# Size
6978c2ecf20Sopenharmony_ci	write_hunk(304824, 192);
6988c2ecf20Sopenharmony_ci
6998c2ecf20Sopenharmony_ci	#
7008c2ecf20Sopenharmony_ci	# Firmware 59, type: SCODE FW  LCD NOGD IF HAS IF (0x60023000), IF = 4.60 MHz id: NTSC/M Kr (0000000000008000), size: 192
7018c2ecf20Sopenharmony_ci	#
7028c2ecf20Sopenharmony_ci
7038c2ecf20Sopenharmony_ci	write_le32(0x60023000);			# Type
7048c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
7058c2ecf20Sopenharmony_ci	write_le16(4600);			# IF
7068c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7078c2ecf20Sopenharmony_ci	write_hunk(305016, 192);
7088c2ecf20Sopenharmony_ci
7098c2ecf20Sopenharmony_ci	#
7108c2ecf20Sopenharmony_ci	# Firmware 60, type: SCODE FW  DTV6 QAM DTV7 DTV78 DTV8 ZARLINK456 HAS IF (0x620003e0), IF = 4.76 MHz id: (0000000000000000), size: 192
7118c2ecf20Sopenharmony_ci	#
7128c2ecf20Sopenharmony_ci
7138c2ecf20Sopenharmony_ci	write_le32(0x620003e0);			# Type
7148c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
7158c2ecf20Sopenharmony_ci	write_le16(4760);			# IF
7168c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7178c2ecf20Sopenharmony_ci	write_hunk(304440, 192);
7188c2ecf20Sopenharmony_ci
7198c2ecf20Sopenharmony_ci	#
7208c2ecf20Sopenharmony_ci	# Firmware 61, type: SCODE FW  HAS IF (0x60000000), IF = 4.94 MHz id: (0000000000000000), size: 192
7218c2ecf20Sopenharmony_ci	#
7228c2ecf20Sopenharmony_ci
7238c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
7248c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
7258c2ecf20Sopenharmony_ci	write_le16(4940);			# IF
7268c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7278c2ecf20Sopenharmony_ci	write_hunk(308664, 192);
7288c2ecf20Sopenharmony_ci
7298c2ecf20Sopenharmony_ci	#
7308c2ecf20Sopenharmony_ci	# Firmware 62, type: SCODE FW  HAS IF (0x60000000), IF = 5.26 MHz id: (0000000000000000), size: 192
7318c2ecf20Sopenharmony_ci	#
7328c2ecf20Sopenharmony_ci
7338c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
7348c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
7358c2ecf20Sopenharmony_ci	write_le16(5260);			# IF
7368c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7378c2ecf20Sopenharmony_ci	write_hunk(307704, 192);
7388c2ecf20Sopenharmony_ci
7398c2ecf20Sopenharmony_ci	#
7408c2ecf20Sopenharmony_ci	# Firmware 63, type: SCODE FW  MONO HAS IF (0x60008000), IF = 5.32 MHz id: PAL/BG A2 NICAM (0000000f00000007), size: 192
7418c2ecf20Sopenharmony_ci	#
7428c2ecf20Sopenharmony_ci
7438c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
7448c2ecf20Sopenharmony_ci	write_le64(0x0000000f, 0x00000007);	# ID
7458c2ecf20Sopenharmony_ci	write_le16(5320);			# IF
7468c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7478c2ecf20Sopenharmony_ci	write_hunk(307896, 192);
7488c2ecf20Sopenharmony_ci
7498c2ecf20Sopenharmony_ci	#
7508c2ecf20Sopenharmony_ci	# Firmware 64, type: SCODE FW  DTV7 DTV78 DTV8 DIBCOM52 CHINA HAS IF (0x65000380), IF = 5.40 MHz id: (0000000000000000), size: 192
7518c2ecf20Sopenharmony_ci	#
7528c2ecf20Sopenharmony_ci
7538c2ecf20Sopenharmony_ci	write_le32(0x65000380);			# Type
7548c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
7558c2ecf20Sopenharmony_ci	write_le16(5400);			# IF
7568c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7578c2ecf20Sopenharmony_ci	write_hunk(304248, 192);
7588c2ecf20Sopenharmony_ci
7598c2ecf20Sopenharmony_ci	#
7608c2ecf20Sopenharmony_ci	# Firmware 65, type: SCODE FW  DTV6 ATSC OREN538 HAS IF (0x60110020), IF = 5.58 MHz id: (0000000000000000), size: 192
7618c2ecf20Sopenharmony_ci	#
7628c2ecf20Sopenharmony_ci
7638c2ecf20Sopenharmony_ci	write_le32(0x60110020);			# Type
7648c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
7658c2ecf20Sopenharmony_ci	write_le16(5580);			# IF
7668c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7678c2ecf20Sopenharmony_ci	write_hunk(306744, 192);
7688c2ecf20Sopenharmony_ci
7698c2ecf20Sopenharmony_ci	#
7708c2ecf20Sopenharmony_ci	# Firmware 66, type: SCODE FW  HAS IF (0x60000000), IF = 5.64 MHz id: PAL/BG A2 (0000000300000007), size: 192
7718c2ecf20Sopenharmony_ci	#
7728c2ecf20Sopenharmony_ci
7738c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
7748c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x00000007);	# ID
7758c2ecf20Sopenharmony_ci	write_le16(5640);			# IF
7768c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7778c2ecf20Sopenharmony_ci	write_hunk(305592, 192);
7788c2ecf20Sopenharmony_ci
7798c2ecf20Sopenharmony_ci	#
7808c2ecf20Sopenharmony_ci	# Firmware 67, type: SCODE FW  HAS IF (0x60000000), IF = 5.74 MHz id: PAL/BG NICAM (0000000c00000007), size: 192
7818c2ecf20Sopenharmony_ci	#
7828c2ecf20Sopenharmony_ci
7838c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
7848c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x00000007);	# ID
7858c2ecf20Sopenharmony_ci	write_le16(5740);			# IF
7868c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7878c2ecf20Sopenharmony_ci	write_hunk(305784, 192);
7888c2ecf20Sopenharmony_ci
7898c2ecf20Sopenharmony_ci	#
7908c2ecf20Sopenharmony_ci	# Firmware 68, type: SCODE FW  HAS IF (0x60000000), IF = 5.90 MHz id: (0000000000000000), size: 192
7918c2ecf20Sopenharmony_ci	#
7928c2ecf20Sopenharmony_ci
7938c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
7948c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
7958c2ecf20Sopenharmony_ci	write_le16(5900);			# IF
7968c2ecf20Sopenharmony_ci	write_le32(192);			# Size
7978c2ecf20Sopenharmony_ci	write_hunk(307512, 192);
7988c2ecf20Sopenharmony_ci
7998c2ecf20Sopenharmony_ci	#
8008c2ecf20Sopenharmony_ci	# Firmware 69, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.00 MHz id: PAL/DK PAL/I SECAM/K3 SECAM/L SECAM/Lc NICAM (0000000c04c000f0), size: 192
8018c2ecf20Sopenharmony_ci	#
8028c2ecf20Sopenharmony_ci
8038c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
8048c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x04c000f0);	# ID
8058c2ecf20Sopenharmony_ci	write_le16(6000);			# IF
8068c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8078c2ecf20Sopenharmony_ci	write_hunk(305576, 192);
8088c2ecf20Sopenharmony_ci
8098c2ecf20Sopenharmony_ci	#
8108c2ecf20Sopenharmony_ci	# Firmware 70, type: SCODE FW  DTV6 QAM ATSC LG60 F6MHZ HAS IF (0x68050060), IF = 6.20 MHz id: (0000000000000000), size: 192
8118c2ecf20Sopenharmony_ci	#
8128c2ecf20Sopenharmony_ci
8138c2ecf20Sopenharmony_ci	write_le32(0x68050060);			# Type
8148c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
8158c2ecf20Sopenharmony_ci	write_le16(6200);			# IF
8168c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8178c2ecf20Sopenharmony_ci	write_hunk(306552, 192);
8188c2ecf20Sopenharmony_ci
8198c2ecf20Sopenharmony_ci	#
8208c2ecf20Sopenharmony_ci	# Firmware 71, type: SCODE FW  HAS IF (0x60000000), IF = 6.24 MHz id: PAL/I (0000000000000010), size: 192
8218c2ecf20Sopenharmony_ci	#
8228c2ecf20Sopenharmony_ci
8238c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
8248c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000010);	# ID
8258c2ecf20Sopenharmony_ci	write_le16(6240);			# IF
8268c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8278c2ecf20Sopenharmony_ci	write_hunk(305400, 192);
8288c2ecf20Sopenharmony_ci
8298c2ecf20Sopenharmony_ci	#
8308c2ecf20Sopenharmony_ci	# Firmware 72, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.32 MHz id: SECAM/K1 (0000000000200000), size: 192
8318c2ecf20Sopenharmony_ci	#
8328c2ecf20Sopenharmony_ci
8338c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
8348c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
8358c2ecf20Sopenharmony_ci	write_le16(6320);			# IF
8368c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8378c2ecf20Sopenharmony_ci	write_hunk(308472, 192);
8388c2ecf20Sopenharmony_ci
8398c2ecf20Sopenharmony_ci	#
8408c2ecf20Sopenharmony_ci	# Firmware 73, type: SCODE FW  HAS IF (0x60000000), IF = 6.34 MHz id: SECAM/K1 (0000000000200000), size: 192
8418c2ecf20Sopenharmony_ci	#
8428c2ecf20Sopenharmony_ci
8438c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
8448c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
8458c2ecf20Sopenharmony_ci	write_le16(6340);			# IF
8468c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8478c2ecf20Sopenharmony_ci	write_hunk(306360, 192);
8488c2ecf20Sopenharmony_ci
8498c2ecf20Sopenharmony_ci	#
8508c2ecf20Sopenharmony_ci	# Firmware 74, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.50 MHz id: PAL/DK SECAM/K3 SECAM/L NICAM (0000000c044000e0), size: 192
8518c2ecf20Sopenharmony_ci	#
8528c2ecf20Sopenharmony_ci
8538c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
8548c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x044000e0);	# ID
8558c2ecf20Sopenharmony_ci	write_le16(6500);			# IF
8568c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8578c2ecf20Sopenharmony_ci	write_hunk(308280, 192);
8588c2ecf20Sopenharmony_ci
8598c2ecf20Sopenharmony_ci	#
8608c2ecf20Sopenharmony_ci	# Firmware 75, type: SCODE FW  DTV6 ATSC ATI638 HAS IF (0x60090020), IF = 6.58 MHz id: (0000000000000000), size: 192
8618c2ecf20Sopenharmony_ci	#
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_ci	write_le32(0x60090020);			# Type
8648c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
8658c2ecf20Sopenharmony_ci	write_le16(6580);			# IF
8668c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8678c2ecf20Sopenharmony_ci	write_hunk(304632, 192);
8688c2ecf20Sopenharmony_ci
8698c2ecf20Sopenharmony_ci	#
8708c2ecf20Sopenharmony_ci	# Firmware 76, type: SCODE FW  HAS IF (0x60000000), IF = 6.60 MHz id: PAL/DK A2 (00000003000000e0), size: 192
8718c2ecf20Sopenharmony_ci	#
8728c2ecf20Sopenharmony_ci
8738c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
8748c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
8758c2ecf20Sopenharmony_ci	write_le16(6600);			# IF
8768c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8778c2ecf20Sopenharmony_ci	write_hunk(306168, 192);
8788c2ecf20Sopenharmony_ci
8798c2ecf20Sopenharmony_ci	#
8808c2ecf20Sopenharmony_ci	# Firmware 77, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.68 MHz id: PAL/DK A2 (00000003000000e0), size: 192
8818c2ecf20Sopenharmony_ci	#
8828c2ecf20Sopenharmony_ci
8838c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
8848c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
8858c2ecf20Sopenharmony_ci	write_le16(6680);			# IF
8868c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8878c2ecf20Sopenharmony_ci	write_hunk(308088, 192);
8888c2ecf20Sopenharmony_ci
8898c2ecf20Sopenharmony_ci	#
8908c2ecf20Sopenharmony_ci	# Firmware 78, type: SCODE FW  DTV6 ATSC TOYOTA794 HAS IF (0x60810020), IF = 8.14 MHz id: (0000000000000000), size: 192
8918c2ecf20Sopenharmony_ci	#
8928c2ecf20Sopenharmony_ci
8938c2ecf20Sopenharmony_ci	write_le32(0x60810020);			# Type
8948c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
8958c2ecf20Sopenharmony_ci	write_le16(8140);			# IF
8968c2ecf20Sopenharmony_ci	write_le32(192);			# Size
8978c2ecf20Sopenharmony_ci	write_hunk(307320, 192);
8988c2ecf20Sopenharmony_ci
8998c2ecf20Sopenharmony_ci	#
9008c2ecf20Sopenharmony_ci	# Firmware 79, type: SCODE FW  HAS IF (0x60000000), IF = 8.20 MHz id: (0000000000000000), size: 192
9018c2ecf20Sopenharmony_ci	#
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_ci#	write_le32(0x60000000);			# Type
9048c2ecf20Sopenharmony_ci#	write_le64(0x00000000, 0x00000000);	# ID
9058c2ecf20Sopenharmony_ci#	write_le16(8200);			# IF
9068c2ecf20Sopenharmony_ci#	write_le32(192);			# Size
9078c2ecf20Sopenharmony_ci#	write_hunk(308088, 192);
9088c2ecf20Sopenharmony_ci}
9098c2ecf20Sopenharmony_ci
9108c2ecf20Sopenharmony_cisub main_firmware_27($$$$)
9118c2ecf20Sopenharmony_ci{
9128c2ecf20Sopenharmony_ci	my $out;
9138c2ecf20Sopenharmony_ci	my $j=0;
9148c2ecf20Sopenharmony_ci	my $outfile = shift;
9158c2ecf20Sopenharmony_ci	my $name    = shift;
9168c2ecf20Sopenharmony_ci	my $version = shift;
9178c2ecf20Sopenharmony_ci	my $nr_desc = shift;
9188c2ecf20Sopenharmony_ci
9198c2ecf20Sopenharmony_ci	for ($j = length($name); $j <32; $j++) {
9208c2ecf20Sopenharmony_ci		$name = $name.chr(0);
9218c2ecf20Sopenharmony_ci	}
9228c2ecf20Sopenharmony_ci
9238c2ecf20Sopenharmony_ci	open OUTFILE, ">$outfile";
9248c2ecf20Sopenharmony_ci	syswrite(OUTFILE, $name);
9258c2ecf20Sopenharmony_ci	write_le16($version);
9268c2ecf20Sopenharmony_ci	write_le16($nr_desc);
9278c2ecf20Sopenharmony_ci
9288c2ecf20Sopenharmony_ci	#
9298c2ecf20Sopenharmony_ci	# Firmware 0, type: BASE FW   F8MHZ (0x00000003), id: (0000000000000000), size: 8718
9308c2ecf20Sopenharmony_ci	#
9318c2ecf20Sopenharmony_ci
9328c2ecf20Sopenharmony_ci	write_le32(0x00000003);			# Type
9338c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
9348c2ecf20Sopenharmony_ci	write_le32(8718);			# Size
9358c2ecf20Sopenharmony_ci	write_hunk_fix_endian(813432, 8718);
9368c2ecf20Sopenharmony_ci
9378c2ecf20Sopenharmony_ci	#
9388c2ecf20Sopenharmony_ci	# Firmware 1, type: BASE FW   F8MHZ MTS (0x00000007), id: (0000000000000000), size: 8712
9398c2ecf20Sopenharmony_ci	#
9408c2ecf20Sopenharmony_ci
9418c2ecf20Sopenharmony_ci	write_le32(0x00000007);			# Type
9428c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
9438c2ecf20Sopenharmony_ci	write_le32(8712);			# Size
9448c2ecf20Sopenharmony_ci	write_hunk_fix_endian(822152, 8712);
9458c2ecf20Sopenharmony_ci
9468c2ecf20Sopenharmony_ci	#
9478c2ecf20Sopenharmony_ci	# Firmware 2, type: BASE FW   FM (0x00000401), id: (0000000000000000), size: 8562
9488c2ecf20Sopenharmony_ci	#
9498c2ecf20Sopenharmony_ci
9508c2ecf20Sopenharmony_ci	write_le32(0x00000401);			# Type
9518c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
9528c2ecf20Sopenharmony_ci	write_le32(8562);			# Size
9538c2ecf20Sopenharmony_ci	write_hunk_fix_endian(830872, 8562);
9548c2ecf20Sopenharmony_ci
9558c2ecf20Sopenharmony_ci	#
9568c2ecf20Sopenharmony_ci	# Firmware 3, type: BASE FW   FM INPUT1 (0x00000c01), id: (0000000000000000), size: 8576
9578c2ecf20Sopenharmony_ci	#
9588c2ecf20Sopenharmony_ci
9598c2ecf20Sopenharmony_ci	write_le32(0x00000c01);			# Type
9608c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
9618c2ecf20Sopenharmony_ci	write_le32(8576);			# Size
9628c2ecf20Sopenharmony_ci	write_hunk_fix_endian(839440, 8576);
9638c2ecf20Sopenharmony_ci
9648c2ecf20Sopenharmony_ci	#
9658c2ecf20Sopenharmony_ci	# Firmware 4, type: BASE FW   (0x00000001), id: (0000000000000000), size: 8706
9668c2ecf20Sopenharmony_ci	#
9678c2ecf20Sopenharmony_ci
9688c2ecf20Sopenharmony_ci	write_le32(0x00000001);			# Type
9698c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
9708c2ecf20Sopenharmony_ci	write_le32(8706);			# Size
9718c2ecf20Sopenharmony_ci	write_hunk_fix_endian(848024, 8706);
9728c2ecf20Sopenharmony_ci
9738c2ecf20Sopenharmony_ci	#
9748c2ecf20Sopenharmony_ci	# Firmware 5, type: BASE FW   MTS (0x00000005), id: (0000000000000000), size: 8682
9758c2ecf20Sopenharmony_ci	#
9768c2ecf20Sopenharmony_ci
9778c2ecf20Sopenharmony_ci	write_le32(0x00000005);			# Type
9788c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
9798c2ecf20Sopenharmony_ci	write_le32(8682);			# Size
9808c2ecf20Sopenharmony_ci	write_hunk_fix_endian(856736, 8682);
9818c2ecf20Sopenharmony_ci
9828c2ecf20Sopenharmony_ci	#
9838c2ecf20Sopenharmony_ci	# Firmware 6, type: STD FW    (0x00000000), id: PAL/BG A2/A (0000000100000007), size: 161
9848c2ecf20Sopenharmony_ci	#
9858c2ecf20Sopenharmony_ci
9868c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
9878c2ecf20Sopenharmony_ci	write_le64(0x00000001, 0x00000007);	# ID
9888c2ecf20Sopenharmony_ci	write_le32(161);			# Size
9898c2ecf20Sopenharmony_ci	write_hunk_fix_endian(865424, 161);
9908c2ecf20Sopenharmony_ci
9918c2ecf20Sopenharmony_ci	#
9928c2ecf20Sopenharmony_ci	# Firmware 7, type: STD FW    MTS (0x00000004), id: PAL/BG A2/A (0000000100000007), size: 169
9938c2ecf20Sopenharmony_ci	#
9948c2ecf20Sopenharmony_ci
9958c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
9968c2ecf20Sopenharmony_ci	write_le64(0x00000001, 0x00000007);	# ID
9978c2ecf20Sopenharmony_ci	write_le32(169);			# Size
9988c2ecf20Sopenharmony_ci	write_hunk_fix_endian(865592, 169);
9998c2ecf20Sopenharmony_ci
10008c2ecf20Sopenharmony_ci	#
10018c2ecf20Sopenharmony_ci	# Firmware 8, type: STD FW    (0x00000000), id: PAL/BG A2/B (0000000200000007), size: 161
10028c2ecf20Sopenharmony_ci	#
10038c2ecf20Sopenharmony_ci
10048c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
10058c2ecf20Sopenharmony_ci	write_le64(0x00000002, 0x00000007);	# ID
10068c2ecf20Sopenharmony_ci	write_le32(161);			# Size
10078c2ecf20Sopenharmony_ci	write_hunk_fix_endian(865424, 161);
10088c2ecf20Sopenharmony_ci
10098c2ecf20Sopenharmony_ci	#
10108c2ecf20Sopenharmony_ci	# Firmware 9, type: STD FW    MTS (0x00000004), id: PAL/BG A2/B (0000000200000007), size: 169
10118c2ecf20Sopenharmony_ci	#
10128c2ecf20Sopenharmony_ci
10138c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
10148c2ecf20Sopenharmony_ci	write_le64(0x00000002, 0x00000007);	# ID
10158c2ecf20Sopenharmony_ci	write_le32(169);			# Size
10168c2ecf20Sopenharmony_ci	write_hunk_fix_endian(865592, 169);
10178c2ecf20Sopenharmony_ci
10188c2ecf20Sopenharmony_ci	#
10198c2ecf20Sopenharmony_ci	# Firmware 10, type: STD FW    (0x00000000), id: PAL/BG NICAM/A (0000000400000007), size: 161
10208c2ecf20Sopenharmony_ci	#
10218c2ecf20Sopenharmony_ci
10228c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
10238c2ecf20Sopenharmony_ci	write_le64(0x00000004, 0x00000007);	# ID
10248c2ecf20Sopenharmony_ci	write_le32(161);			# Size
10258c2ecf20Sopenharmony_ci	write_hunk_fix_endian(866112, 161);
10268c2ecf20Sopenharmony_ci
10278c2ecf20Sopenharmony_ci	#
10288c2ecf20Sopenharmony_ci	# Firmware 11, type: STD FW    MTS (0x00000004), id: PAL/BG NICAM/A (0000000400000007), size: 169
10298c2ecf20Sopenharmony_ci	#
10308c2ecf20Sopenharmony_ci
10318c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
10328c2ecf20Sopenharmony_ci	write_le64(0x00000004, 0x00000007);	# ID
10338c2ecf20Sopenharmony_ci	write_le32(169);			# Size
10348c2ecf20Sopenharmony_ci	write_hunk_fix_endian(866280, 169);
10358c2ecf20Sopenharmony_ci
10368c2ecf20Sopenharmony_ci	#
10378c2ecf20Sopenharmony_ci	# Firmware 12, type: STD FW    (0x00000000), id: PAL/BG NICAM/B (0000000800000007), size: 161
10388c2ecf20Sopenharmony_ci	#
10398c2ecf20Sopenharmony_ci
10408c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
10418c2ecf20Sopenharmony_ci	write_le64(0x00000008, 0x00000007);	# ID
10428c2ecf20Sopenharmony_ci	write_le32(161);			# Size
10438c2ecf20Sopenharmony_ci	write_hunk_fix_endian(866112, 161);
10448c2ecf20Sopenharmony_ci
10458c2ecf20Sopenharmony_ci	#
10468c2ecf20Sopenharmony_ci	# Firmware 13, type: STD FW    MTS (0x00000004), id: PAL/BG NICAM/B (0000000800000007), size: 169
10478c2ecf20Sopenharmony_ci	#
10488c2ecf20Sopenharmony_ci
10498c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
10508c2ecf20Sopenharmony_ci	write_le64(0x00000008, 0x00000007);	# ID
10518c2ecf20Sopenharmony_ci	write_le32(169);			# Size
10528c2ecf20Sopenharmony_ci	write_hunk_fix_endian(866280, 169);
10538c2ecf20Sopenharmony_ci
10548c2ecf20Sopenharmony_ci	#
10558c2ecf20Sopenharmony_ci	# Firmware 14, type: STD FW    (0x00000000), id: PAL/DK A2 (00000003000000e0), size: 161
10568c2ecf20Sopenharmony_ci	#
10578c2ecf20Sopenharmony_ci
10588c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
10598c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
10608c2ecf20Sopenharmony_ci	write_le32(161);			# Size
10618c2ecf20Sopenharmony_ci	write_hunk_fix_endian(866800, 161);
10628c2ecf20Sopenharmony_ci
10638c2ecf20Sopenharmony_ci	#
10648c2ecf20Sopenharmony_ci	# Firmware 15, type: STD FW    MTS (0x00000004), id: PAL/DK A2 (00000003000000e0), size: 169
10658c2ecf20Sopenharmony_ci	#
10668c2ecf20Sopenharmony_ci
10678c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
10688c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
10698c2ecf20Sopenharmony_ci	write_le32(169);			# Size
10708c2ecf20Sopenharmony_ci	write_hunk_fix_endian(866968, 169);
10718c2ecf20Sopenharmony_ci
10728c2ecf20Sopenharmony_ci	#
10738c2ecf20Sopenharmony_ci	# Firmware 16, type: STD FW    (0x00000000), id: PAL/DK NICAM (0000000c000000e0), size: 161
10748c2ecf20Sopenharmony_ci	#
10758c2ecf20Sopenharmony_ci
10768c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
10778c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x000000e0);	# ID
10788c2ecf20Sopenharmony_ci	write_le32(161);			# Size
10798c2ecf20Sopenharmony_ci	write_hunk_fix_endian(867144, 161);
10808c2ecf20Sopenharmony_ci
10818c2ecf20Sopenharmony_ci	#
10828c2ecf20Sopenharmony_ci	# Firmware 17, type: STD FW    MTS (0x00000004), id: PAL/DK NICAM (0000000c000000e0), size: 169
10838c2ecf20Sopenharmony_ci	#
10848c2ecf20Sopenharmony_ci
10858c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
10868c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x000000e0);	# ID
10878c2ecf20Sopenharmony_ci	write_le32(169);			# Size
10888c2ecf20Sopenharmony_ci	write_hunk_fix_endian(867312, 169);
10898c2ecf20Sopenharmony_ci
10908c2ecf20Sopenharmony_ci	#
10918c2ecf20Sopenharmony_ci	# Firmware 18, type: STD FW    (0x00000000), id: SECAM/K1 (0000000000200000), size: 161
10928c2ecf20Sopenharmony_ci	#
10938c2ecf20Sopenharmony_ci
10948c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
10958c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
10968c2ecf20Sopenharmony_ci	write_le32(161);			# Size
10978c2ecf20Sopenharmony_ci	write_hunk_fix_endian(867488, 161);
10988c2ecf20Sopenharmony_ci
10998c2ecf20Sopenharmony_ci	#
11008c2ecf20Sopenharmony_ci	# Firmware 19, type: STD FW    MTS (0x00000004), id: SECAM/K1 (0000000000200000), size: 169
11018c2ecf20Sopenharmony_ci	#
11028c2ecf20Sopenharmony_ci
11038c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
11048c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
11058c2ecf20Sopenharmony_ci	write_le32(169);			# Size
11068c2ecf20Sopenharmony_ci	write_hunk_fix_endian(867656, 169);
11078c2ecf20Sopenharmony_ci
11088c2ecf20Sopenharmony_ci	#
11098c2ecf20Sopenharmony_ci	# Firmware 20, type: STD FW    (0x00000000), id: SECAM/K3 (0000000004000000), size: 161
11108c2ecf20Sopenharmony_ci	#
11118c2ecf20Sopenharmony_ci
11128c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
11138c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x04000000);	# ID
11148c2ecf20Sopenharmony_ci	write_le32(161);			# Size
11158c2ecf20Sopenharmony_ci	write_hunk_fix_endian(867832, 161);
11168c2ecf20Sopenharmony_ci
11178c2ecf20Sopenharmony_ci	#
11188c2ecf20Sopenharmony_ci	# Firmware 21, type: STD FW    MTS (0x00000004), id: SECAM/K3 (0000000004000000), size: 169
11198c2ecf20Sopenharmony_ci	#
11208c2ecf20Sopenharmony_ci
11218c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
11228c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x04000000);	# ID
11238c2ecf20Sopenharmony_ci	write_le32(169);			# Size
11248c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868000, 169);
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_ci	#
11278c2ecf20Sopenharmony_ci	# Firmware 22, type: STD FW    D2633 DTV6 ATSC (0x00010030), id: (0000000000000000), size: 149
11288c2ecf20Sopenharmony_ci	#
11298c2ecf20Sopenharmony_ci
11308c2ecf20Sopenharmony_ci	write_le32(0x00010030);			# Type
11318c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11328c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11338c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868176, 149);
11348c2ecf20Sopenharmony_ci
11358c2ecf20Sopenharmony_ci	#
11368c2ecf20Sopenharmony_ci	# Firmware 23, type: STD FW    D2620 DTV6 QAM (0x00000068), id: (0000000000000000), size: 149
11378c2ecf20Sopenharmony_ci	#
11388c2ecf20Sopenharmony_ci
11398c2ecf20Sopenharmony_ci	write_le32(0x00000068);			# Type
11408c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11418c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11428c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868336, 149);
11438c2ecf20Sopenharmony_ci
11448c2ecf20Sopenharmony_ci	#
11458c2ecf20Sopenharmony_ci	# Firmware 24, type: STD FW    D2633 DTV6 QAM (0x00000070), id: (0000000000000000), size: 149
11468c2ecf20Sopenharmony_ci	#
11478c2ecf20Sopenharmony_ci
11488c2ecf20Sopenharmony_ci	write_le32(0x00000070);			# Type
11498c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11508c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11518c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868488, 149);
11528c2ecf20Sopenharmony_ci
11538c2ecf20Sopenharmony_ci	#
11548c2ecf20Sopenharmony_ci	# Firmware 25, type: STD FW    D2620 DTV7 (0x00000088), id: (0000000000000000), size: 149
11558c2ecf20Sopenharmony_ci	#
11568c2ecf20Sopenharmony_ci
11578c2ecf20Sopenharmony_ci	write_le32(0x00000088);			# Type
11588c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11598c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11608c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868648, 149);
11618c2ecf20Sopenharmony_ci
11628c2ecf20Sopenharmony_ci	#
11638c2ecf20Sopenharmony_ci	# Firmware 26, type: STD FW    D2633 DTV7 (0x00000090), id: (0000000000000000), size: 149
11648c2ecf20Sopenharmony_ci	#
11658c2ecf20Sopenharmony_ci
11668c2ecf20Sopenharmony_ci	write_le32(0x00000090);			# Type
11678c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11688c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11698c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868800, 149);
11708c2ecf20Sopenharmony_ci
11718c2ecf20Sopenharmony_ci	#
11728c2ecf20Sopenharmony_ci	# Firmware 27, type: STD FW    D2620 DTV78 (0x00000108), id: (0000000000000000), size: 149
11738c2ecf20Sopenharmony_ci	#
11748c2ecf20Sopenharmony_ci
11758c2ecf20Sopenharmony_ci	write_le32(0x00000108);			# Type
11768c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11778c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11788c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868960, 149);
11798c2ecf20Sopenharmony_ci
11808c2ecf20Sopenharmony_ci	#
11818c2ecf20Sopenharmony_ci	# Firmware 28, type: STD FW    D2633 DTV78 (0x00000110), id: (0000000000000000), size: 149
11828c2ecf20Sopenharmony_ci	#
11838c2ecf20Sopenharmony_ci
11848c2ecf20Sopenharmony_ci	write_le32(0x00000110);			# Type
11858c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11868c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11878c2ecf20Sopenharmony_ci	write_hunk_fix_endian(869112, 149);
11888c2ecf20Sopenharmony_ci
11898c2ecf20Sopenharmony_ci	#
11908c2ecf20Sopenharmony_ci	# Firmware 29, type: STD FW    D2620 DTV8 (0x00000208), id: (0000000000000000), size: 149
11918c2ecf20Sopenharmony_ci	#
11928c2ecf20Sopenharmony_ci
11938c2ecf20Sopenharmony_ci	write_le32(0x00000208);			# Type
11948c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
11958c2ecf20Sopenharmony_ci	write_le32(149);			# Size
11968c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868648, 149);
11978c2ecf20Sopenharmony_ci
11988c2ecf20Sopenharmony_ci	#
11998c2ecf20Sopenharmony_ci	# Firmware 30, type: STD FW    D2633 DTV8 (0x00000210), id: (0000000000000000), size: 149
12008c2ecf20Sopenharmony_ci	#
12018c2ecf20Sopenharmony_ci
12028c2ecf20Sopenharmony_ci	write_le32(0x00000210);			# Type
12038c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
12048c2ecf20Sopenharmony_ci	write_le32(149);			# Size
12058c2ecf20Sopenharmony_ci	write_hunk_fix_endian(868800, 149);
12068c2ecf20Sopenharmony_ci
12078c2ecf20Sopenharmony_ci	#
12088c2ecf20Sopenharmony_ci	# Firmware 31, type: STD FW    FM (0x00000400), id: (0000000000000000), size: 135
12098c2ecf20Sopenharmony_ci	#
12108c2ecf20Sopenharmony_ci
12118c2ecf20Sopenharmony_ci	write_le32(0x00000400);			# Type
12128c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
12138c2ecf20Sopenharmony_ci	write_le32(135);			# Size
12148c2ecf20Sopenharmony_ci	write_hunk_fix_endian(869584, 135);
12158c2ecf20Sopenharmony_ci
12168c2ecf20Sopenharmony_ci	#
12178c2ecf20Sopenharmony_ci	# Firmware 32, type: STD FW    (0x00000000), id: PAL/I (0000000000000010), size: 161
12188c2ecf20Sopenharmony_ci	#
12198c2ecf20Sopenharmony_ci
12208c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
12218c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000010);	# ID
12228c2ecf20Sopenharmony_ci	write_le32(161);			# Size
12238c2ecf20Sopenharmony_ci	write_hunk_fix_endian(869728, 161);
12248c2ecf20Sopenharmony_ci
12258c2ecf20Sopenharmony_ci	#
12268c2ecf20Sopenharmony_ci	# Firmware 33, type: STD FW    MTS (0x00000004), id: PAL/I (0000000000000010), size: 169
12278c2ecf20Sopenharmony_ci	#
12288c2ecf20Sopenharmony_ci
12298c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
12308c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000010);	# ID
12318c2ecf20Sopenharmony_ci	write_le32(169);			# Size
12328c2ecf20Sopenharmony_ci	write_hunk_fix_endian(869896, 169);
12338c2ecf20Sopenharmony_ci
12348c2ecf20Sopenharmony_ci	#
12358c2ecf20Sopenharmony_ci	# Firmware 34, type: STD FW    (0x00000000), id: SECAM/L AM (0000001000400000), size: 169
12368c2ecf20Sopenharmony_ci	#
12378c2ecf20Sopenharmony_ci
12388c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
12398c2ecf20Sopenharmony_ci	write_le64(0x00000010, 0x00400000);	# ID
12408c2ecf20Sopenharmony_ci	write_le32(169);			# Size
12418c2ecf20Sopenharmony_ci	write_hunk_fix_endian(870072, 169);
12428c2ecf20Sopenharmony_ci
12438c2ecf20Sopenharmony_ci	#
12448c2ecf20Sopenharmony_ci	# Firmware 35, type: STD FW    (0x00000000), id: SECAM/L NICAM (0000000c00400000), size: 161
12458c2ecf20Sopenharmony_ci	#
12468c2ecf20Sopenharmony_ci
12478c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
12488c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x00400000);	# ID
12498c2ecf20Sopenharmony_ci	write_le32(161);			# Size
12508c2ecf20Sopenharmony_ci	write_hunk_fix_endian(870248, 161);
12518c2ecf20Sopenharmony_ci
12528c2ecf20Sopenharmony_ci	#
12538c2ecf20Sopenharmony_ci	# Firmware 36, type: STD FW    (0x00000000), id: SECAM/Lc (0000000000800000), size: 161
12548c2ecf20Sopenharmony_ci	#
12558c2ecf20Sopenharmony_ci
12568c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
12578c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00800000);	# ID
12588c2ecf20Sopenharmony_ci	write_le32(161);			# Size
12598c2ecf20Sopenharmony_ci	write_hunk_fix_endian(870416, 161);
12608c2ecf20Sopenharmony_ci
12618c2ecf20Sopenharmony_ci	#
12628c2ecf20Sopenharmony_ci	# Firmware 37, type: STD FW    (0x00000000), id: NTSC/M Kr (0000000000008000), size: 161
12638c2ecf20Sopenharmony_ci	#
12648c2ecf20Sopenharmony_ci
12658c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
12668c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
12678c2ecf20Sopenharmony_ci	write_le32(161);			# Size
12688c2ecf20Sopenharmony_ci	write_hunk_fix_endian(870584, 161);
12698c2ecf20Sopenharmony_ci
12708c2ecf20Sopenharmony_ci	#
12718c2ecf20Sopenharmony_ci	# Firmware 38, type: STD FW    LCD (0x00001000), id: NTSC/M Kr (0000000000008000), size: 161
12728c2ecf20Sopenharmony_ci	#
12738c2ecf20Sopenharmony_ci
12748c2ecf20Sopenharmony_ci	write_le32(0x00001000);			# Type
12758c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
12768c2ecf20Sopenharmony_ci	write_le32(161);			# Size
12778c2ecf20Sopenharmony_ci	write_hunk_fix_endian(870752, 161);
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_ci	#
12808c2ecf20Sopenharmony_ci	# Firmware 39, type: STD FW    LCD NOGD (0x00003000), id: NTSC/M Kr (0000000000008000), size: 161
12818c2ecf20Sopenharmony_ci	#
12828c2ecf20Sopenharmony_ci
12838c2ecf20Sopenharmony_ci	write_le32(0x00003000);			# Type
12848c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
12858c2ecf20Sopenharmony_ci	write_le32(161);			# Size
12868c2ecf20Sopenharmony_ci	write_hunk_fix_endian(870920, 161);
12878c2ecf20Sopenharmony_ci
12888c2ecf20Sopenharmony_ci	#
12898c2ecf20Sopenharmony_ci	# Firmware 40, type: STD FW    MTS (0x00000004), id: NTSC/M Kr (0000000000008000), size: 169
12908c2ecf20Sopenharmony_ci	#
12918c2ecf20Sopenharmony_ci
12928c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
12938c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
12948c2ecf20Sopenharmony_ci	write_le32(169);			# Size
12958c2ecf20Sopenharmony_ci	write_hunk_fix_endian(871088, 169);
12968c2ecf20Sopenharmony_ci
12978c2ecf20Sopenharmony_ci	#
12988c2ecf20Sopenharmony_ci	# Firmware 41, type: STD FW    (0x00000000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
12998c2ecf20Sopenharmony_ci	#
13008c2ecf20Sopenharmony_ci
13018c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
13028c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
13038c2ecf20Sopenharmony_ci	write_le32(161);			# Size
13048c2ecf20Sopenharmony_ci	write_hunk_fix_endian(871264, 161);
13058c2ecf20Sopenharmony_ci
13068c2ecf20Sopenharmony_ci	#
13078c2ecf20Sopenharmony_ci	# Firmware 42, type: STD FW    LCD (0x00001000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
13088c2ecf20Sopenharmony_ci	#
13098c2ecf20Sopenharmony_ci
13108c2ecf20Sopenharmony_ci	write_le32(0x00001000);			# Type
13118c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
13128c2ecf20Sopenharmony_ci	write_le32(161);			# Size
13138c2ecf20Sopenharmony_ci	write_hunk_fix_endian(871432, 161);
13148c2ecf20Sopenharmony_ci
13158c2ecf20Sopenharmony_ci	#
13168c2ecf20Sopenharmony_ci	# Firmware 43, type: STD FW    LCD NOGD (0x00003000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
13178c2ecf20Sopenharmony_ci	#
13188c2ecf20Sopenharmony_ci
13198c2ecf20Sopenharmony_ci	write_le32(0x00003000);			# Type
13208c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
13218c2ecf20Sopenharmony_ci	write_le32(161);			# Size
13228c2ecf20Sopenharmony_ci	write_hunk_fix_endian(871600, 161);
13238c2ecf20Sopenharmony_ci
13248c2ecf20Sopenharmony_ci	#
13258c2ecf20Sopenharmony_ci	# Firmware 44, type: STD FW    (0x00000000), id: NTSC/M Jp (0000000000002000), size: 161
13268c2ecf20Sopenharmony_ci	#
13278c2ecf20Sopenharmony_ci
13288c2ecf20Sopenharmony_ci	write_le32(0x00000000);			# Type
13298c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00002000);	# ID
13308c2ecf20Sopenharmony_ci	write_le32(161);			# Size
13318c2ecf20Sopenharmony_ci	write_hunk_fix_endian(871264, 161);
13328c2ecf20Sopenharmony_ci
13338c2ecf20Sopenharmony_ci	#
13348c2ecf20Sopenharmony_ci	# Firmware 45, type: STD FW    MTS (0x00000004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
13358c2ecf20Sopenharmony_ci	#
13368c2ecf20Sopenharmony_ci
13378c2ecf20Sopenharmony_ci	write_le32(0x00000004);			# Type
13388c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
13398c2ecf20Sopenharmony_ci	write_le32(169);			# Size
13408c2ecf20Sopenharmony_ci	write_hunk_fix_endian(871936, 169);
13418c2ecf20Sopenharmony_ci
13428c2ecf20Sopenharmony_ci	#
13438c2ecf20Sopenharmony_ci	# Firmware 46, type: STD FW    MTS LCD (0x00001004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
13448c2ecf20Sopenharmony_ci	#
13458c2ecf20Sopenharmony_ci
13468c2ecf20Sopenharmony_ci	write_le32(0x00001004);			# Type
13478c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
13488c2ecf20Sopenharmony_ci	write_le32(169);			# Size
13498c2ecf20Sopenharmony_ci	write_hunk_fix_endian(872112, 169);
13508c2ecf20Sopenharmony_ci
13518c2ecf20Sopenharmony_ci	#
13528c2ecf20Sopenharmony_ci	# Firmware 47, type: STD FW    MTS LCD NOGD (0x00003004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
13538c2ecf20Sopenharmony_ci	#
13548c2ecf20Sopenharmony_ci
13558c2ecf20Sopenharmony_ci	write_le32(0x00003004);			# Type
13568c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
13578c2ecf20Sopenharmony_ci	write_le32(169);			# Size
13588c2ecf20Sopenharmony_ci	write_hunk_fix_endian(872288, 169);
13598c2ecf20Sopenharmony_ci
13608c2ecf20Sopenharmony_ci	#
13618c2ecf20Sopenharmony_ci	# Firmware 48, type: SCODE FW  HAS IF (0x60000000), IF = 3.28 MHz id: (0000000000000000), size: 192
13628c2ecf20Sopenharmony_ci	#
13638c2ecf20Sopenharmony_ci
13648c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
13658c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
13668c2ecf20Sopenharmony_ci	write_le16(3280);			# IF
13678c2ecf20Sopenharmony_ci	write_le32(192);			# Size
13688c2ecf20Sopenharmony_ci	write_hunk(811896, 192);
13698c2ecf20Sopenharmony_ci
13708c2ecf20Sopenharmony_ci	#
13718c2ecf20Sopenharmony_ci	# Firmware 49, type: SCODE FW  HAS IF (0x60000000), IF = 3.30 MHz id: (0000000000000000), size: 192
13728c2ecf20Sopenharmony_ci	#
13738c2ecf20Sopenharmony_ci
13748c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
13758c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
13768c2ecf20Sopenharmony_ci	write_le16(3300);			# IF
13778c2ecf20Sopenharmony_ci	write_le32(192);			# Size
13788c2ecf20Sopenharmony_ci	write_hunk(813048, 192);
13798c2ecf20Sopenharmony_ci
13808c2ecf20Sopenharmony_ci	#
13818c2ecf20Sopenharmony_ci	# Firmware 50, type: SCODE FW  HAS IF (0x60000000), IF = 3.44 MHz id: (0000000000000000), size: 192
13828c2ecf20Sopenharmony_ci	#
13838c2ecf20Sopenharmony_ci
13848c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
13858c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
13868c2ecf20Sopenharmony_ci	write_le16(3440);			# IF
13878c2ecf20Sopenharmony_ci	write_le32(192);			# Size
13888c2ecf20Sopenharmony_ci	write_hunk(812280, 192);
13898c2ecf20Sopenharmony_ci
13908c2ecf20Sopenharmony_ci	#
13918c2ecf20Sopenharmony_ci	# Firmware 51, type: SCODE FW  HAS IF (0x60000000), IF = 3.46 MHz id: (0000000000000000), size: 192
13928c2ecf20Sopenharmony_ci	#
13938c2ecf20Sopenharmony_ci
13948c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
13958c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
13968c2ecf20Sopenharmony_ci	write_le16(3460);			# IF
13978c2ecf20Sopenharmony_ci	write_le32(192);			# Size
13988c2ecf20Sopenharmony_ci	write_hunk(812472, 192);
13998c2ecf20Sopenharmony_ci
14008c2ecf20Sopenharmony_ci	#
14018c2ecf20Sopenharmony_ci	# Firmware 52, type: SCODE FW  DTV6 ATSC OREN36 HAS IF (0x60210020), IF = 3.80 MHz id: (0000000000000000), size: 192
14028c2ecf20Sopenharmony_ci	#
14038c2ecf20Sopenharmony_ci
14048c2ecf20Sopenharmony_ci	write_le32(0x60210020);			# Type
14058c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
14068c2ecf20Sopenharmony_ci	write_le16(3800);			# IF
14078c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14088c2ecf20Sopenharmony_ci	write_hunk(809784, 192);
14098c2ecf20Sopenharmony_ci
14108c2ecf20Sopenharmony_ci	#
14118c2ecf20Sopenharmony_ci	# Firmware 53, type: SCODE FW  HAS IF (0x60000000), IF = 4.00 MHz id: (0000000000000000), size: 192
14128c2ecf20Sopenharmony_ci	#
14138c2ecf20Sopenharmony_ci
14148c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
14158c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
14168c2ecf20Sopenharmony_ci	write_le16(4000);			# IF
14178c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14188c2ecf20Sopenharmony_ci	write_hunk(812088, 192);
14198c2ecf20Sopenharmony_ci
14208c2ecf20Sopenharmony_ci	#
14218c2ecf20Sopenharmony_ci	# Firmware 54, type: SCODE FW  DTV6 ATSC TOYOTA388 HAS IF (0x60410020), IF = 4.08 MHz id: (0000000000000000), size: 192
14228c2ecf20Sopenharmony_ci	#
14238c2ecf20Sopenharmony_ci
14248c2ecf20Sopenharmony_ci	write_le32(0x60410020);			# Type
14258c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
14268c2ecf20Sopenharmony_ci	write_le16(4080);			# IF
14278c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14288c2ecf20Sopenharmony_ci	write_hunk(809976, 192);
14298c2ecf20Sopenharmony_ci
14308c2ecf20Sopenharmony_ci	#
14318c2ecf20Sopenharmony_ci	# Firmware 55, type: SCODE FW  HAS IF (0x60000000), IF = 4.20 MHz id: (0000000000000000), size: 192
14328c2ecf20Sopenharmony_ci	#
14338c2ecf20Sopenharmony_ci
14348c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
14358c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
14368c2ecf20Sopenharmony_ci	write_le16(4200);			# IF
14378c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14388c2ecf20Sopenharmony_ci	write_hunk(811704, 192);
14398c2ecf20Sopenharmony_ci
14408c2ecf20Sopenharmony_ci	#
14418c2ecf20Sopenharmony_ci	# Firmware 56, type: SCODE FW  MONO HAS IF (0x60008000), IF = 4.32 MHz id: NTSC/M Kr (0000000000008000), size: 192
14428c2ecf20Sopenharmony_ci	#
14438c2ecf20Sopenharmony_ci
14448c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
14458c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
14468c2ecf20Sopenharmony_ci	write_le16(4320);			# IF
14478c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14488c2ecf20Sopenharmony_ci	write_hunk(808056, 192);
14498c2ecf20Sopenharmony_ci
14508c2ecf20Sopenharmony_ci	#
14518c2ecf20Sopenharmony_ci	# Firmware 57, type: SCODE FW  HAS IF (0x60000000), IF = 4.45 MHz id: (0000000000000000), size: 192
14528c2ecf20Sopenharmony_ci	#
14538c2ecf20Sopenharmony_ci
14548c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
14558c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
14568c2ecf20Sopenharmony_ci	write_le16(4450);			# IF
14578c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14588c2ecf20Sopenharmony_ci	write_hunk(812664, 192);
14598c2ecf20Sopenharmony_ci
14608c2ecf20Sopenharmony_ci	#
14618c2ecf20Sopenharmony_ci	# Firmware 58, type: SCODE FW  MTS LCD NOGD MONO IF HAS IF (0x6002b004), IF = 4.50 MHz id: NTSC PAL/M PAL/N (000000000000b700), size: 192
14628c2ecf20Sopenharmony_ci	#
14638c2ecf20Sopenharmony_ci
14648c2ecf20Sopenharmony_ci	write_le32(0x6002b004);			# Type
14658c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x0000b700);	# ID
14668c2ecf20Sopenharmony_ci	write_le16(4500);			# IF
14678c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14688c2ecf20Sopenharmony_ci	write_hunk(807672, 192);
14698c2ecf20Sopenharmony_ci
14708c2ecf20Sopenharmony_ci	#
14718c2ecf20Sopenharmony_ci	# Firmware 59, type: SCODE FW  LCD NOGD IF HAS IF (0x60023000), IF = 4.60 MHz id: NTSC/M Kr (0000000000008000), size: 192
14728c2ecf20Sopenharmony_ci	#
14738c2ecf20Sopenharmony_ci
14748c2ecf20Sopenharmony_ci	write_le32(0x60023000);			# Type
14758c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00008000);	# ID
14768c2ecf20Sopenharmony_ci	write_le16(4600);			# IF
14778c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14788c2ecf20Sopenharmony_ci	write_hunk(807864, 192);
14798c2ecf20Sopenharmony_ci
14808c2ecf20Sopenharmony_ci	#
14818c2ecf20Sopenharmony_ci	# Firmware 60, type: SCODE FW  DTV6 QAM DTV7 DTV78 DTV8 ZARLINK456 HAS IF (0x620003e0), IF = 4.76 MHz id: (0000000000000000), size: 192
14828c2ecf20Sopenharmony_ci	#
14838c2ecf20Sopenharmony_ci
14848c2ecf20Sopenharmony_ci	write_le32(0x620003e0);			# Type
14858c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
14868c2ecf20Sopenharmony_ci	write_le16(4760);			# IF
14878c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14888c2ecf20Sopenharmony_ci	write_hunk(807288, 192);
14898c2ecf20Sopenharmony_ci
14908c2ecf20Sopenharmony_ci	#
14918c2ecf20Sopenharmony_ci	# Firmware 61, type: SCODE FW  HAS IF (0x60000000), IF = 4.94 MHz id: (0000000000000000), size: 192
14928c2ecf20Sopenharmony_ci	#
14938c2ecf20Sopenharmony_ci
14948c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
14958c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
14968c2ecf20Sopenharmony_ci	write_le16(4940);			# IF
14978c2ecf20Sopenharmony_ci	write_le32(192);			# Size
14988c2ecf20Sopenharmony_ci	write_hunk(811512, 192);
14998c2ecf20Sopenharmony_ci
15008c2ecf20Sopenharmony_ci	#
15018c2ecf20Sopenharmony_ci	# Firmware 62, type: SCODE FW  HAS IF (0x60000000), IF = 5.26 MHz id: (0000000000000000), size: 192
15028c2ecf20Sopenharmony_ci	#
15038c2ecf20Sopenharmony_ci
15048c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
15058c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
15068c2ecf20Sopenharmony_ci	write_le16(5260);			# IF
15078c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15088c2ecf20Sopenharmony_ci	write_hunk(810552, 192);
15098c2ecf20Sopenharmony_ci
15108c2ecf20Sopenharmony_ci	#
15118c2ecf20Sopenharmony_ci	# Firmware 63, type: SCODE FW  MONO HAS IF (0x60008000), IF = 5.32 MHz id: PAL/BG A2 NICAM (0000000f00000007), size: 192
15128c2ecf20Sopenharmony_ci	#
15138c2ecf20Sopenharmony_ci
15148c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
15158c2ecf20Sopenharmony_ci	write_le64(0x0000000f, 0x00000007);	# ID
15168c2ecf20Sopenharmony_ci	write_le16(5320);			# IF
15178c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15188c2ecf20Sopenharmony_ci	write_hunk(810744, 192);
15198c2ecf20Sopenharmony_ci
15208c2ecf20Sopenharmony_ci	#
15218c2ecf20Sopenharmony_ci	# Firmware 64, type: SCODE FW  DTV7 DTV78 DTV8 DIBCOM52 CHINA HAS IF (0x65000380), IF = 5.40 MHz id: (0000000000000000), size: 192
15228c2ecf20Sopenharmony_ci	#
15238c2ecf20Sopenharmony_ci
15248c2ecf20Sopenharmony_ci	write_le32(0x65000380);			# Type
15258c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
15268c2ecf20Sopenharmony_ci	write_le16(5400);			# IF
15278c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15288c2ecf20Sopenharmony_ci	write_hunk(807096, 192);
15298c2ecf20Sopenharmony_ci
15308c2ecf20Sopenharmony_ci	#
15318c2ecf20Sopenharmony_ci	# Firmware 65, type: SCODE FW  DTV6 ATSC OREN538 HAS IF (0x60110020), IF = 5.58 MHz id: (0000000000000000), size: 192
15328c2ecf20Sopenharmony_ci	#
15338c2ecf20Sopenharmony_ci
15348c2ecf20Sopenharmony_ci	write_le32(0x60110020);			# Type
15358c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
15368c2ecf20Sopenharmony_ci	write_le16(5580);			# IF
15378c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15388c2ecf20Sopenharmony_ci	write_hunk(809592, 192);
15398c2ecf20Sopenharmony_ci
15408c2ecf20Sopenharmony_ci	#
15418c2ecf20Sopenharmony_ci	# Firmware 66, type: SCODE FW  HAS IF (0x60000000), IF = 5.64 MHz id: PAL/BG A2 (0000000300000007), size: 192
15428c2ecf20Sopenharmony_ci	#
15438c2ecf20Sopenharmony_ci
15448c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
15458c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x00000007);	# ID
15468c2ecf20Sopenharmony_ci	write_le16(5640);			# IF
15478c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15488c2ecf20Sopenharmony_ci	write_hunk(808440, 192);
15498c2ecf20Sopenharmony_ci
15508c2ecf20Sopenharmony_ci	#
15518c2ecf20Sopenharmony_ci	# Firmware 67, type: SCODE FW  HAS IF (0x60000000), IF = 5.74 MHz id: PAL/BG NICAM (0000000c00000007), size: 192
15528c2ecf20Sopenharmony_ci	#
15538c2ecf20Sopenharmony_ci
15548c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
15558c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x00000007);	# ID
15568c2ecf20Sopenharmony_ci	write_le16(5740);			# IF
15578c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15588c2ecf20Sopenharmony_ci	write_hunk(808632, 192);
15598c2ecf20Sopenharmony_ci
15608c2ecf20Sopenharmony_ci	#
15618c2ecf20Sopenharmony_ci	# Firmware 68, type: SCODE FW  HAS IF (0x60000000), IF = 5.90 MHz id: (0000000000000000), size: 192
15628c2ecf20Sopenharmony_ci	#
15638c2ecf20Sopenharmony_ci
15648c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
15658c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
15668c2ecf20Sopenharmony_ci	write_le16(5900);			# IF
15678c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15688c2ecf20Sopenharmony_ci	write_hunk(810360, 192);
15698c2ecf20Sopenharmony_ci
15708c2ecf20Sopenharmony_ci	#
15718c2ecf20Sopenharmony_ci	# Firmware 69, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.00 MHz id: PAL/DK PAL/I SECAM/K3 SECAM/L SECAM/Lc NICAM (0000000c04c000f0), size: 192
15728c2ecf20Sopenharmony_ci	#
15738c2ecf20Sopenharmony_ci
15748c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
15758c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x04c000f0);	# ID
15768c2ecf20Sopenharmony_ci	write_le16(6000);			# IF
15778c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15788c2ecf20Sopenharmony_ci	write_hunk(808824, 192);
15798c2ecf20Sopenharmony_ci
15808c2ecf20Sopenharmony_ci	#
15818c2ecf20Sopenharmony_ci	# Firmware 70, type: SCODE FW  DTV6 QAM ATSC LG60 F6MHZ HAS IF (0x68050060), IF = 6.20 MHz id: (0000000000000000), size: 192
15828c2ecf20Sopenharmony_ci	#
15838c2ecf20Sopenharmony_ci
15848c2ecf20Sopenharmony_ci	write_le32(0x68050060);			# Type
15858c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
15868c2ecf20Sopenharmony_ci	write_le16(6200);			# IF
15878c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15888c2ecf20Sopenharmony_ci	write_hunk(809400, 192);
15898c2ecf20Sopenharmony_ci
15908c2ecf20Sopenharmony_ci	#
15918c2ecf20Sopenharmony_ci	# Firmware 71, type: SCODE FW  HAS IF (0x60000000), IF = 6.24 MHz id: PAL/I (0000000000000010), size: 192
15928c2ecf20Sopenharmony_ci	#
15938c2ecf20Sopenharmony_ci
15948c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
15958c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000010);	# ID
15968c2ecf20Sopenharmony_ci	write_le16(6240);			# IF
15978c2ecf20Sopenharmony_ci	write_le32(192);			# Size
15988c2ecf20Sopenharmony_ci	write_hunk(808248, 192);
15998c2ecf20Sopenharmony_ci
16008c2ecf20Sopenharmony_ci	#
16018c2ecf20Sopenharmony_ci	# Firmware 72, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.32 MHz id: SECAM/K1 (0000000000200000), size: 192
16028c2ecf20Sopenharmony_ci	#
16038c2ecf20Sopenharmony_ci
16048c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
16058c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
16068c2ecf20Sopenharmony_ci	write_le16(6320);			# IF
16078c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16088c2ecf20Sopenharmony_ci	write_hunk(811320, 192);
16098c2ecf20Sopenharmony_ci
16108c2ecf20Sopenharmony_ci	#
16118c2ecf20Sopenharmony_ci	# Firmware 73, type: SCODE FW  HAS IF (0x60000000), IF = 6.34 MHz id: SECAM/K1 (0000000000200000), size: 192
16128c2ecf20Sopenharmony_ci	#
16138c2ecf20Sopenharmony_ci
16148c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
16158c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00200000);	# ID
16168c2ecf20Sopenharmony_ci	write_le16(6340);			# IF
16178c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16188c2ecf20Sopenharmony_ci	write_hunk(809208, 192);
16198c2ecf20Sopenharmony_ci
16208c2ecf20Sopenharmony_ci	#
16218c2ecf20Sopenharmony_ci	# Firmware 74, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.50 MHz id: PAL/DK SECAM/K3 SECAM/L NICAM (0000000c044000e0), size: 192
16228c2ecf20Sopenharmony_ci	#
16238c2ecf20Sopenharmony_ci
16248c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
16258c2ecf20Sopenharmony_ci	write_le64(0x0000000c, 0x044000e0);	# ID
16268c2ecf20Sopenharmony_ci	write_le16(6500);			# IF
16278c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16288c2ecf20Sopenharmony_ci	write_hunk(811128, 192);
16298c2ecf20Sopenharmony_ci
16308c2ecf20Sopenharmony_ci	#
16318c2ecf20Sopenharmony_ci	# Firmware 75, type: SCODE FW  DTV6 ATSC ATI638 HAS IF (0x60090020), IF = 6.58 MHz id: (0000000000000000), size: 192
16328c2ecf20Sopenharmony_ci	#
16338c2ecf20Sopenharmony_ci
16348c2ecf20Sopenharmony_ci	write_le32(0x60090020);			# Type
16358c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
16368c2ecf20Sopenharmony_ci	write_le16(6580);			# IF
16378c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16388c2ecf20Sopenharmony_ci	write_hunk(807480, 192);
16398c2ecf20Sopenharmony_ci
16408c2ecf20Sopenharmony_ci	#
16418c2ecf20Sopenharmony_ci	# Firmware 76, type: SCODE FW  HAS IF (0x60000000), IF = 6.60 MHz id: PAL/DK A2 (00000003000000e0), size: 192
16428c2ecf20Sopenharmony_ci	#
16438c2ecf20Sopenharmony_ci
16448c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
16458c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
16468c2ecf20Sopenharmony_ci	write_le16(6600);			# IF
16478c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16488c2ecf20Sopenharmony_ci	write_hunk(809016, 192);
16498c2ecf20Sopenharmony_ci
16508c2ecf20Sopenharmony_ci	#
16518c2ecf20Sopenharmony_ci	# Firmware 77, type: SCODE FW  MONO HAS IF (0x60008000), IF = 6.68 MHz id: PAL/DK A2 (00000003000000e0), size: 192
16528c2ecf20Sopenharmony_ci	#
16538c2ecf20Sopenharmony_ci
16548c2ecf20Sopenharmony_ci	write_le32(0x60008000);			# Type
16558c2ecf20Sopenharmony_ci	write_le64(0x00000003, 0x000000e0);	# ID
16568c2ecf20Sopenharmony_ci	write_le16(6680);			# IF
16578c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16588c2ecf20Sopenharmony_ci	write_hunk(810936, 192);
16598c2ecf20Sopenharmony_ci
16608c2ecf20Sopenharmony_ci	#
16618c2ecf20Sopenharmony_ci	# Firmware 78, type: SCODE FW  DTV6 ATSC TOYOTA794 HAS IF (0x60810020), IF = 8.14 MHz id: (0000000000000000), size: 192
16628c2ecf20Sopenharmony_ci	#
16638c2ecf20Sopenharmony_ci
16648c2ecf20Sopenharmony_ci	write_le32(0x60810020);			# Type
16658c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
16668c2ecf20Sopenharmony_ci	write_le16(8140);			# IF
16678c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16688c2ecf20Sopenharmony_ci	write_hunk(810168, 192);
16698c2ecf20Sopenharmony_ci
16708c2ecf20Sopenharmony_ci	#
16718c2ecf20Sopenharmony_ci	# Firmware 79, type: SCODE FW  HAS IF (0x60000000), IF = 8.20 MHz id: (0000000000000000), size: 192
16728c2ecf20Sopenharmony_ci	#
16738c2ecf20Sopenharmony_ci
16748c2ecf20Sopenharmony_ci	write_le32(0x60000000);			# Type
16758c2ecf20Sopenharmony_ci	write_le64(0x00000000, 0x00000000);	# ID
16768c2ecf20Sopenharmony_ci	write_le16(8200);			# IF
16778c2ecf20Sopenharmony_ci	write_le32(192);			# Size
16788c2ecf20Sopenharmony_ci	write_hunk(812856, 192);
16798c2ecf20Sopenharmony_ci}
16808c2ecf20Sopenharmony_ci
16818c2ecf20Sopenharmony_ci
16828c2ecf20Sopenharmony_cisub extract_firmware {
16838c2ecf20Sopenharmony_ci	my $sourcefile_24 = "UDXTTM6000.sys";
16848c2ecf20Sopenharmony_ci	my $hash_24 = "cb9deb5508a5e150af2880f5b0066d78";
16858c2ecf20Sopenharmony_ci	my $outfile_24 = "xc3028-v24.fw";
16868c2ecf20Sopenharmony_ci	my $name_24 = "xc2028 firmware";
16878c2ecf20Sopenharmony_ci	my $version_24 = 516;
16888c2ecf20Sopenharmony_ci	my $nr_desc_24 = 77;
16898c2ecf20Sopenharmony_ci	my $out;
16908c2ecf20Sopenharmony_ci
16918c2ecf20Sopenharmony_ci	my $sourcefile_27 = "hcw85bda.sys";
16928c2ecf20Sopenharmony_ci	my $hash_27 = "0e44dbf63bb0169d57446aec21881ff2";
16938c2ecf20Sopenharmony_ci	my $outfile_27 = "xc3028-v27.fw";
16948c2ecf20Sopenharmony_ci	my $name_27 = "xc2028 firmware";
16958c2ecf20Sopenharmony_ci	my $version_27 = 519;
16968c2ecf20Sopenharmony_ci	my $nr_desc_27 = 80;
16978c2ecf20Sopenharmony_ci	my $out;
16988c2ecf20Sopenharmony_ci
16998c2ecf20Sopenharmony_ci	if (-e $sourcefile_24) {
17008c2ecf20Sopenharmony_ci		verify($sourcefile_24, $hash_24);
17018c2ecf20Sopenharmony_ci
17028c2ecf20Sopenharmony_ci		open INFILE, "<$sourcefile_24";
17038c2ecf20Sopenharmony_ci		main_firmware_24($outfile_24, $name_24, $version_24, $nr_desc_24);
17048c2ecf20Sopenharmony_ci		close INFILE;
17058c2ecf20Sopenharmony_ci	}
17068c2ecf20Sopenharmony_ci
17078c2ecf20Sopenharmony_ci	if (-e $sourcefile_27) {
17088c2ecf20Sopenharmony_ci		verify($sourcefile_27, $hash_27);
17098c2ecf20Sopenharmony_ci
17108c2ecf20Sopenharmony_ci		open INFILE, "<$sourcefile_27";
17118c2ecf20Sopenharmony_ci		main_firmware_27($outfile_27, $name_27, $version_27, $nr_desc_27);
17128c2ecf20Sopenharmony_ci		close INFILE;
17138c2ecf20Sopenharmony_ci	}
17148c2ecf20Sopenharmony_ci}
17158c2ecf20Sopenharmony_ci
17168c2ecf20Sopenharmony_ciextract_firmware;
17178c2ecf20Sopenharmony_ciprintf "Firmwares generated.\n";
1718