diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/Makefile | 1 | ||||
-rw-r--r-- | firmware/WHENCE | 10 | ||||
-rw-r--r-- | firmware/av7110/Boot.S | 109 | ||||
-rw-r--r-- | firmware/av7110/bootcode.bin.ihex | 15 |
4 files changed, 135 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 95fb42c2285a..4267f68164b5 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -37,6 +37,7 @@ fw-shipped-$(CONFIG_COMPUTONE) += intelliport2.bin | |||
37 | fw-shipped-$(CONFIG_CHELSIO_T3) += cxgb3/t3b_psram-1.1.0.bin \ | 37 | fw-shipped-$(CONFIG_CHELSIO_T3) += cxgb3/t3b_psram-1.1.0.bin \ |
38 | cxgb3/t3c_psram-1.1.0.bin \ | 38 | cxgb3/t3c_psram-1.1.0.bin \ |
39 | cxgb3/t3fw-7.1.0.bin | 39 | cxgb3/t3fw-7.1.0.bin |
40 | fw-shipped-$(CONFIG_DVB_AV7110) += av7110/bootcode.bin | ||
40 | fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += ttusb-budget/dspbootcode.bin | 41 | fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += ttusb-budget/dspbootcode.bin |
41 | fw-shipped-$(CONFIG_E100) += e100/d101m_ucode.bin e100/d101s_ucode.bin \ | 42 | fw-shipped-$(CONFIG_E100) += e100/d101m_ucode.bin e100/d101s_ucode.bin \ |
42 | e100/d102e_ucode.bin | 43 | e100/d102e_ucode.bin |
diff --git a/firmware/WHENCE b/firmware/WHENCE index c006af85a1aa..c0a7c8f20c0e 100644 --- a/firmware/WHENCE +++ b/firmware/WHENCE | |||
@@ -632,3 +632,13 @@ Licence: Unknown | |||
632 | Found in hex form in kernel source. | 632 | Found in hex form in kernel source. |
633 | 633 | ||
634 | -------------------------------------------------------------------------- | 634 | -------------------------------------------------------------------------- |
635 | |||
636 | Driver: DVB AV7110 -- AV7110 cards | ||
637 | |||
638 | File: av7110/bootcode.bin | ||
639 | |||
640 | Licence: GPLv2 or later | ||
641 | |||
642 | ARM assembly source code available at http://www.linuxtv.org/downloads/firmware/Boot.S | ||
643 | |||
644 | -------------------------------------------------------------------------- | ||
diff --git a/firmware/av7110/Boot.S b/firmware/av7110/Boot.S new file mode 100644 index 000000000000..d562fdc2908f --- /dev/null +++ b/firmware/av7110/Boot.S | |||
@@ -0,0 +1,109 @@ | |||
1 | /* | ||
2 | Boot.S: boot loader for Siemens DVB-S card | ||
3 | |||
4 | Copyright (C) 2001 Convergence integrated media GmbH | ||
5 | Written by Ralph Metzler | ||
6 | <rjkm@convergence.de> | ||
7 | Copyright (C) 2006 Matthieu CASTET <castet.mattheiu@free.fr> | ||
8 | |||
9 | This program is free software; you can redistribute it and/or | ||
10 | modify it under the terms of the GNU General Public License | ||
11 | as published by the Free Software Foundation; either version 2 | ||
12 | of the License, or (at your option) any later version. | ||
13 | |||
14 | This program is distributed in the hope that it will be useful, | ||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | GNU General Public License for more details. | ||
18 | |||
19 | You should have received a copy of the GNU General Public License | ||
20 | along with this program; if not, write to the Free Software | ||
21 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
22 | |||
23 | */ | ||
24 | |||
25 | /* | ||
26 | check AV711x_3_1.pdf for some hardware infos | ||
27 | build it with : | ||
28 | $ cc -mbig-endian -c Boot.S | ||
29 | $ ld -Ttext 0x2c000000 -EB -o Boot Boot.o | ||
30 | $ objcopy -Obinary Boot | ||
31 | */ | ||
32 | |||
33 | .text | ||
34 | .align | ||
35 | .globl _start | ||
36 | _start: | ||
37 | b reset // reset vector | ||
38 | movs pc, r14 // undefined | ||
39 | subs pc, r14, #4 // SWI | ||
40 | subs pc, r14, #4 // prefetch abort | ||
41 | subs pc, r14, #8 // data abort | ||
42 | subs pc, r14, #4 // reserved | ||
43 | subs pc, r14, #4 // IRQ | ||
44 | subs pc, r14, #4 // FIQ | ||
45 | |||
46 | .word tbl // table needed by firmware ROM | ||
47 | tbl: .word (endtbl - tbl) | ||
48 | .word 0 | ||
49 | .word conf | ||
50 | endtbl: .word 0 | ||
51 | conf: .word 0xa5a55a5a | ||
52 | .word 0x001f1555 | ||
53 | .word 0x00000009 | ||
54 | |||
55 | reset: ldr r13, buffer | ||
56 | ldr r4, flag | ||
57 | mov r0, #0 | ||
58 | str r0, [r4] | ||
59 | str r0, [r4, #4] | ||
60 | |||
61 | ldr r1, wait_address | ||
62 | ldr r2, flag_address | ||
63 | ldr r3, sram | ||
64 | |||
65 | copycode: // copy the code HW Sram | ||
66 | ldmia r1!, {r5-r12} | ||
67 | stmia r3!, {r5-r12} | ||
68 | cmp r1, r2 | ||
69 | ble copycode | ||
70 | ldr pc, sram // jump to the copied code | ||
71 | |||
72 | wait: ldrh r1, [r4] // wait for flag!=0 | ||
73 | cmp r1, #0 | ||
74 | beq wait | ||
75 | |||
76 | mov r1, r13 // buffer address | ||
77 | ldr r3, [r4,#4] // destaddr | ||
78 | |||
79 | ldrh r2, [r4,#2] // get segment length | ||
80 | add r2, r2, #63 // round length to next 64 bytes | ||
81 | movs r2, r2, lsr #6 // and divide by 64 | ||
82 | moveq r0, #2 // if 0, set flag to 2, else signal | ||
83 | strh r0, [r4] // that buffer is accepted by setting to 0 | ||
84 | beq wait | ||
85 | |||
86 | copyloop: | ||
87 | ldmia r1!, {r5-r12} | ||
88 | stmia r3!, {r5-r12} | ||
89 | ldmia r1!, {r5-r12} | ||
90 | stmia r3!, {r5-r12} | ||
91 | subs r2, r2, #1 | ||
92 | bne copyloop | ||
93 | |||
94 | eor r13, r13, #0x1400 // switch to other buffer | ||
95 | b wait | ||
96 | |||
97 | // flag is stored at 0x2c0003f8, length at 0x2c0003fa, | ||
98 | // destaddr at 0x2c0003fc | ||
99 | |||
100 | flag: .word 0x2c0003f8 | ||
101 | |||
102 | |||
103 | // buffer 1 is at 0x2c000400, buffer 2 at 0x2c001000 | ||
104 | |||
105 | buffer: .word 0x2c000400 | ||
106 | |||
107 | sram: .word 0x9e000800 | ||
108 | wait_address: .word wait | ||
109 | flag_address: .word flag | ||
diff --git a/firmware/av7110/bootcode.bin.ihex b/firmware/av7110/bootcode.bin.ihex new file mode 100644 index 000000000000..26a2993e0723 --- /dev/null +++ b/firmware/av7110/bootcode.bin.ihex | |||
@@ -0,0 +1,15 @@ | |||
1 | :10000000EA00000EE1B0F00EE25EF004E25EF00401 | ||
2 | :10001000E25EF008E25EF004E25EF004E25EF0040C | ||
3 | :100020002C0000240000000C000000002C00003414 | ||
4 | :1000300000000000A5A55A5A001F15550000000930 | ||
5 | :10004000E59FD07CE59F4074E3A00000E5840000BC | ||
6 | :10005000E5840004E59F1070E59F2070E59F306403 | ||
7 | :10006000E8B11FE0E8A31FE0E1510002DAFFFFFB67 | ||
8 | :10007000E59FF050E1D410B0E35100000AFFFFFC0F | ||
9 | :10008000E1A0100DE5943004E1D420B2E282203FDB | ||
10 | :10009000E1B0232203A00002E1C400B00AFFFFF494 | ||
11 | :1000A000E8B11FE0E8A31FE0E8B11FE0E8A31FE00C | ||
12 | :1000B000E25220011AFFFFF9E22DDB05EAFFFFEC17 | ||
13 | :1000C0002C0003F82C0004009E0008002C00007493 | ||
14 | :0400D0002C0000C040 | ||
15 | :00000001FF | ||