	.file	"extr_w90p910_ts.c_w90p910_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w90p910_open, @function
w90p910_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	call	input_get_drvdata@PLT
	mov	edi, DWORD PTR 12[rax]
	mov	rbx, rax
	call	clk_enable@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, QWORD PTR ADC_RST1[rip]
	call	__raw_writel@PLT
	mov	edi, 1
	call	msleep@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, QWORD PTR ADC_RST0[rip]
	call	__raw_writel@PLT
	mov	edi, 1
	call	msleep@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rdi, 4[rax]
	call	__raw_readl@PLT
	mov	rdx, QWORD PTR [rbx]
	and	rax, QWORD PTR TSC_FOURWIRE[rip]
	mov	rdi, rax
	lea	rsi, 4[rdx]
	call	__raw_writel@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR ADC_DELAY[rip]
	lea	rsi, 8[rax]
	call	__raw_writel@PLT
	mov	eax, DWORD PTR TS_WAIT_NEW_PACKET[rip]
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	call	wmb@PLT
	mov	rdi, QWORD PTR [rbx]
	call	__raw_readl@PLT
	mov	rdi, QWORD PTR ADC_WAITTRIG[rip]
	mov	rsi, QWORD PTR [rbx]
	or	rdi, QWORD PTR ADC_DIV[rip]
	or	rdi, QWORD PTR ADC_EN[rip]
	or	rdi, QWORD PTR WT_INT_EN[rip]
	or	rdi, rax
	call	__raw_writel@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	w90p910_open, .-w90p910_open
	.comm	WT_INT_EN,8,8
	.comm	TS_WAIT_NEW_PACKET,4,4
	.comm	TSC_FOURWIRE,8,8
	.comm	ADC_WAITTRIG,8,8
	.comm	ADC_RST1,8,8
	.comm	ADC_RST0,8,8
	.comm	ADC_EN,8,8
	.comm	ADC_DIV,8,8
	.comm	ADC_DELAY,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_w90p910_ts.c_w90p910_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w90p910_open, %function
w90p910_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	input_get_drvdata
	mov	r4, r0
	ldr	r0, [r0, #8]
	bl	clk_enable
	ldr	r3, .L4
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__raw_writel
	mov	r0, #1
	bl	msleep
	ldr	r3, .L4+4
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	__raw_writel
	mov	r0, #1
	bl	msleep
	ldr	r0, [r4]
	add	r0, r0, #4
	bl	__raw_readl
	ldr	r3, .L4+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	add	r1, r1, #4
	and	r0, r0, r3
	bl	__raw_writel
	ldr	r1, [r4]
	ldr	r3, .L4+12
	add	r1, r1, #8
	ldr	r0, [r3]
	bl	__raw_writel
	ldr	r3, .L4+16
	ldr	r3, [r3]
	str	r3, [r4, #4]
	bl	wmb
	ldr	r0, [r4]
	bl	__raw_readl
	ldr	r2, .L4+20
	ldr	r3, .L4+24
	ldr	r1, .L4+28
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, .L4+32
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, ip
	orr	r3, r3, r1
	orr	r3, r3, r2
	ldr	r1, [r4]
	orr	r0, r3, r0
	bl	__raw_writel
	mov	r0, #0
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	ADC_RST1
	.word	ADC_RST0
	.word	TSC_FOURWIRE
	.word	ADC_DELAY
	.word	TS_WAIT_NEW_PACKET
	.word	ADC_DIV
	.word	ADC_WAITTRIG
	.word	ADC_EN
	.word	WT_INT_EN
	.size	w90p910_open, .-w90p910_open
	.comm	WT_INT_EN,4,4
	.comm	TS_WAIT_NEW_PACKET,4,4
	.comm	TSC_FOURWIRE,4,4
	.comm	ADC_WAITTRIG,4,4
	.comm	ADC_RST1,4,4
	.comm	ADC_RST0,4,4
	.comm	ADC_EN,4,4
	.comm	ADC_DIV,4,4
	.comm	ADC_DELAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
