Subversion Repositories freemyipod

Rev

Rev 159 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 159 Rev 179
Line 147... Line 147...
147
	mov	r5, #0x1100
147
	mov	r5, #0x1100
148
	orr	r5, r5, #0x11
148
	orr	r5, r5, #0x11
149
	str	r5, [r0,#0x88]
149
	str	r5, [r0,#0x88]
150
	add	r4, r6, #0x00200000
150
	add	r4, r6, #0x00200000
151
	str	r1, [r4,#0x08]
151
	str	r1, [r4,#0x08]
152
	mov	r5, #0xb7
152
	mov	r5, #0xf3
153
	str	r5, [r4]
153
	str	r5, [r4]
154
	mov	r5, #0x10
154
	mov	r5, #0x10
155
	str	r5, [r4,#0x04]
155
	str	r5, [r4,#0x04]
156
	b	setuppmu
156
	b	setuppmu
157
 
157
 
Line 1546... Line 1546...
1546
	mov	r4, #0
1546
	mov	r4, #0
1547
	str	r4, [r12,#0x08]
1547
	str	r4, [r12,#0x08]
1548
	str	r0, [r12,#0x0c]
1548
	str	r0, [r12,#0x0c]
1549
	mov	r4, #0xf0
1549
	mov	r4, #0xf0
1550
	str	r4, [r12,#0x04]
1550
	str	r4, [r12,#0x04]
1551
	mov	r4, #0xf3
1551
	mov	r4, #0xb7
1552
	str	r4, [r12]
1552
	str	r4, [r12]
1553
	bl	i2cwait
1553
	bl	i2cwait
1554
	str	r1, [r12,#0x0c]
1554
	str	r1, [r12,#0x0c]
1555
	str	r4, [r12]
1555
	str	r4, [r12]
1556
	bl	i2cwait
1556
	bl	i2cwait
Line 1584... Line 1584...
1584
	mov	r4, #0
1584
	mov	r4, #0
1585
	str	r4, [r12,#0x08]
1585
	str	r4, [r12,#0x08]
1586
	str	r0, [r12,#0x0c]
1586
	str	r0, [r12,#0x0c]
1587
	mov	r4, #0xf0
1587
	mov	r4, #0xf0
1588
	str	r4, [r12,#0x04]
1588
	str	r4, [r12,#0x04]
1589
	mov	r4, #0xf3
1589
	mov	r4, #0xb7
1590
	str	r4, [r12]
1590
	str	r4, [r12]
1591
	bl	i2cwait
1591
	bl	i2cwait
1592
	str	r1, [r12,#0x0c]
1592
	str	r1, [r12,#0x0c]
1593
	str	r4, [r12]
1593
	str	r4, [r12]
1594
	bl	i2cwait
1594
	bl	i2cwait
Line 1599... Line 1599...
1599
	str	r0, [r12,#0x04]
1599
	str	r0, [r12,#0x04]
1600
	str	r4, [r12]
1600
	str	r4, [r12]
1601
	bl	i2cwait
1601
	bl	i2cwait
1602
i2crecv_read:
1602
i2crecv_read:
1603
	subs	r3, r3, #1
1603
	subs	r3, r3, #1
1604
	moveq	r4, #0x73
1604
	moveq	r4, #0x37
1605
	str	r4, [r12]
1605
	str	r4, [r12]
1606
	bl	i2cwait
1606
	bl	i2cwait
1607
	ldr	r0, [r12,#0x0c]
1607
	ldr	r0, [r12,#0x0c]
1608
	movs	r2, r2
1608
	movs	r2, r2
1609
	strne	r0, [r2], #1
1609
	strne	r0, [r2], #1
1610
	movs	r3, r3
1610
	movs	r3, r3
1611
	bne	i2crecv_read
1611
	bne	i2crecv_read
1612
	mov	r1, #0x90
1612
	mov	r1, #0x90
1613
	str	r1, [r12,#0x04]
1613
	str	r1, [r12,#0x04]
1614
	mov	r1, #0xf3
1614
	mov	r1, #0xb7
1615
	str	r1, [r12]
1615
	str	r1, [r12]
1616
i2crecv_wait:
1616
i2crecv_wait:
1617
	ldr	r1, [r12,#0x04]
1617
	ldr	r1, [r12,#0x04]
1618
	tst	r1, #0x20
1618
	tst	r1, #0x20
1619
	bne	i2crecv_wait
1619
	bne	i2crecv_wait