	.file	"extr_phy-exynos5-usbdrd.c_exynos5_usbdrd_phy_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	exynos5_usbdrd_phy_init, @function
exynos5_usbdrd_phy_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	phy_get_drvdata@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	to_usbdrd_phy@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	clk_prepare_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	xor	edi, edi
	mov	rsi, QWORD PTR EXYNOS5_DRD_PHYREG0[rip]
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	xor	edi, edi
	mov	rsi, QWORD PTR EXYNOS5_DRD_PHYRESUME[rip]
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	mov	edi, 32
	call	LINKSYSTEM_FLADJ@PLT
	or	eax, DWORD PTR LINKSYSTEM_XHCI_VERSION_CONTROL[rip]
	mov	rsi, QWORD PTR EXYNOS5_DRD_LINKSYSTEM[rip]
	mov	edi, eax
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	mov	rdi, QWORD PTR EXYNOS5_DRD_PHYPARAM0[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	edi, DWORD PTR PHYPARAM0_REF_USE_PAD[rip]
	mov	rsi, QWORD PTR EXYNOS5_DRD_PHYPARAM0[rip]
	add	rsi, QWORD PTR 8[rbx]
	not	edi
	and	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR EXYNOS5_DRD_PHYUTMICLKSEL[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	or	eax, DWORD PTR PHYUTMICLKSEL_UTMI_CLKSEL[rip]
	mov	rsi, QWORD PTR EXYNOS5_DRD_PHYUTMICLKSEL[rip]
	mov	edi, eax
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbx
	call	[QWORD PTR 8[rax]]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	ebp, DWORD PTR PHYCLKRST_RETENABLEN[rip]
	or	ebp, DWORD PTR PHYCLKRST_REF_SSP_EN[rip]
	or	ebp, DWORD PTR PHYCLKRST_SSC_EN[rip]
	or	ebp, DWORD PTR PHYCLKRST_COMMONONN[rip]
	or	ebp, DWORD PTR PHYCLKRST_PORTRESET[rip]
	mov	rsi, QWORD PTR EXYNOS5_DRD_PHYCLKRST[rip]
	or	ebp, eax
	add	rsi, QWORD PTR 8[rbx]
	mov	edi, ebp
	call	writel@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	edi, DWORD PTR PHYCLKRST_PORTRESET[rip]
	mov	rsi, QWORD PTR EXYNOS5_DRD_PHYCLKRST[rip]
	add	rsi, QWORD PTR 8[rbx]
	not	edi
	and	edi, ebp
	call	writel@PLT
	mov	edi, DWORD PTR [rbx]
	call	clk_disable_unprepare@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	exynos5_usbdrd_phy_init, .-exynos5_usbdrd_phy_init
	.comm	PHYUTMICLKSEL_UTMI_CLKSEL,4,4
	.comm	PHYPARAM0_REF_USE_PAD,4,4
	.comm	PHYCLKRST_SSC_EN,4,4
	.comm	PHYCLKRST_RETENABLEN,4,4
	.comm	PHYCLKRST_REF_SSP_EN,4,4
	.comm	PHYCLKRST_PORTRESET,4,4
	.comm	PHYCLKRST_COMMONONN,4,4
	.comm	LINKSYSTEM_XHCI_VERSION_CONTROL,4,4
	.comm	EXYNOS5_DRD_PHYUTMICLKSEL,8,8
	.comm	EXYNOS5_DRD_PHYRESUME,8,8
	.comm	EXYNOS5_DRD_PHYREG0,8,8
	.comm	EXYNOS5_DRD_PHYPARAM0,8,8
	.comm	EXYNOS5_DRD_PHYCLKRST,8,8
	.comm	EXYNOS5_DRD_LINKSYSTEM,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_phy-exynos5-usbdrd.c_exynos5_usbdrd_phy_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exynos5_usbdrd_phy_init, %function
exynos5_usbdrd_phy_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	phy_get_drvdata
	mov	r5, r0
	bl	to_usbdrd_phy
	mov	r4, r0
	ldr	r0, [r0]
	bl	clk_prepare_enable
	subs	r6, r0, #0
	bne	.L1
	ldr	r3, .L5
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	ldr	r7, .L5+4
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L5+8
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
	mov	r0, #32
	bl	LINKSYSTEM_FLADJ
	ldr	r2, .L5+12
	ldr	r3, .L5+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	orr	r0, r0, r2
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r7]
	ldr	r0, [r4, #4]
	ldr	r8, .L5+20
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L5+24
	ldr	r2, [r7]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	bic	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	ldr	r3, [r8]
	ldr	r0, [r4, #4]
	ldr	r7, .L5+28
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L5+32
	ldr	r2, [r8]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	orr	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r3, [r3, #4]
	blx	r3
	ldr	r3, [r5]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
	ldr	r1, .L5+36
	ldr	r2, .L5+40
	ldr	r3, .L5+44
	ldr	r5, [r1]
	ldr	r1, [r2]
	ldr	r2, .L5+48
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r5, r5, r1
	ldr	r8, .L5+52
	orr	r5, r5, r3
	ldr	r3, [r7]
	orr	r5, r5, r2
	ldr	r1, [r4, #4]
	orr	r5, r5, r3
	ldr	r3, [r8]
	orr	r5, r5, r0
	add	r1, r1, r3
	mov	r0, r5
	bl	writel
	mov	r0, #10
	bl	udelay
	ldr	r0, [r7]
	ldr	r3, [r8]
	ldr	r1, [r4, #4]
	bic	r0, r5, r0
	add	r1, r1, r3
	bl	writel
	ldr	r0, [r4]
	bl	clk_disable_unprepare
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	EXYNOS5_DRD_PHYREG0
	.word	EXYNOS5_DRD_PHYPARAM0
	.word	EXYNOS5_DRD_PHYRESUME
	.word	LINKSYSTEM_XHCI_VERSION_CONTROL
	.word	EXYNOS5_DRD_LINKSYSTEM
	.word	EXYNOS5_DRD_PHYUTMICLKSEL
	.word	PHYPARAM0_REF_USE_PAD
	.word	PHYCLKRST_PORTRESET
	.word	PHYUTMICLKSEL_UTMI_CLKSEL
	.word	PHYCLKRST_RETENABLEN
	.word	PHYCLKRST_REF_SSP_EN
	.word	PHYCLKRST_SSC_EN
	.word	PHYCLKRST_COMMONONN
	.word	EXYNOS5_DRD_PHYCLKRST
	.size	exynos5_usbdrd_phy_init, .-exynos5_usbdrd_phy_init
	.comm	PHYUTMICLKSEL_UTMI_CLKSEL,4,4
	.comm	PHYPARAM0_REF_USE_PAD,4,4
	.comm	PHYCLKRST_SSC_EN,4,4
	.comm	PHYCLKRST_RETENABLEN,4,4
	.comm	PHYCLKRST_REF_SSP_EN,4,4
	.comm	PHYCLKRST_PORTRESET,4,4
	.comm	PHYCLKRST_COMMONONN,4,4
	.comm	LINKSYSTEM_XHCI_VERSION_CONTROL,4,4
	.comm	EXYNOS5_DRD_PHYUTMICLKSEL,4,4
	.comm	EXYNOS5_DRD_PHYRESUME,4,4
	.comm	EXYNOS5_DRD_PHYREG0,4,4
	.comm	EXYNOS5_DRD_PHYPARAM0,4,4
	.comm	EXYNOS5_DRD_PHYCLKRST,4,4
	.comm	EXYNOS5_DRD_LINKSYSTEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
