Lines Matching +full:usb +full:- +full:misc +full:- +full:reg
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2008-2009 Samsung Electronics
13 #include <usb/dwc2_udc.h>
16 #include <samsung/misc.h>
17 #include <usb.h>
19 #include <asm/mach-types.h>
31 gd->bd->bi_arch_number = MACH_TYPE_GONI; in board_init()
32 gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; in board_init()
49 gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE + in dram_init()
57 gd->bd->bi_dram[0].start = PHYS_SDRAM_1; in dram_init_banksize()
58 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; in dram_init_banksize()
59 gd->bd->bi_dram[1].start = PHYS_SDRAM_2; in dram_init_banksize()
60 gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE; in dram_init_banksize()
61 gd->bd->bi_dram[2].start = PHYS_SDRAM_3; in dram_init_banksize()
62 gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE; in dram_init_banksize()
88 * GPG0[2] SD_0_CDn -> Not used in board_mmc_init()
141 int reg, ret; in s5pc1xx_phy_control() local
143 ret = pmic_get("max8998-pmic", &dev); in s5pc1xx_phy_control()
148 reg = pmic_reg_read(dev, MAX8998_REG_ONOFF1); in s5pc1xx_phy_control()
149 reg |= MAX8998_LDO3; in s5pc1xx_phy_control()
150 ret = pmic_reg_write(dev, MAX8998_REG_ONOFF1, reg); in s5pc1xx_phy_control()
153 return -EINVAL; in s5pc1xx_phy_control()
156 reg = pmic_reg_read(dev, MAX8998_REG_ONOFF2); in s5pc1xx_phy_control()
157 reg |= MAX8998_LDO8; in s5pc1xx_phy_control()
158 ret = pmic_reg_write(dev, MAX8998_REG_ONOFF2, reg); in s5pc1xx_phy_control()
161 return -EINVAL; in s5pc1xx_phy_control()
165 reg = pmic_reg_read(dev, MAX8998_REG_ONOFF1); in s5pc1xx_phy_control()
166 reg &= ~MAX8998_LDO3; in s5pc1xx_phy_control()
167 ret = pmic_reg_write(dev, MAX8998_REG_ONOFF1, reg); in s5pc1xx_phy_control()
170 return -EINVAL; in s5pc1xx_phy_control()
173 reg = pmic_reg_read(dev, MAX8998_REG_ONOFF2); in s5pc1xx_phy_control()
174 reg &= ~MAX8998_LDO8; in s5pc1xx_phy_control()
175 ret = pmic_reg_write(dev, MAX8998_REG_ONOFF2, reg); in s5pc1xx_phy_control()
178 return -EINVAL; in s5pc1xx_phy_control()