2 * Board functions for CompuLab cl_som_am57x board
4 * (C) Copyright 2016 CompuLab, Ltd. http://compulab.co.il/
6 * Author: Dmitry Lifshitz <lifshitz@compulab.co.il>
8 * SPDX-License-Identifier: GPL-2.0+
15 #include <asm/arch/mmc_host_def.h>
16 #include <asm/arch/sys_proto.h>
17 #include "../common/common.h"
18 #include "../common/eeprom.h"
19 #include <asm/omap_common.h>
21 DECLARE_GLOBAL_DATA_PTR
;
23 const struct omap_sysinfo sysinfo
= {
24 "Board: CL-SOM-AM57x\n"
29 /* Disable PMIC Powerhold feature, DEV_CTRL.DEV_ON = 1 */
30 palmas_i2c_write_u8(TPS65903X_CHIP_P1
, 0xA0, 0x1);
32 gd
->bd
->bi_boot_params
= CONFIG_SYS_SDRAM_BASE
+ 0x100;
38 #define SB_SOM_CD_GPIO 187
39 #define SB_SOM_WP_GPIO 188
41 int board_mmc_init(bd_t
*bis
)
45 ret0
= omap_mmc_init(0, 0, 0, SB_SOM_CD_GPIO
, SB_SOM_WP_GPIO
);
47 printf("cl-som-am57x: failed to initialize mmc0\n");
49 ret1
= omap_mmc_init(1, 0, 0, -1, -1);
51 printf("cl-som-am57x: failed to initialize mmc1\n");
55 #endif /* CONFIG_MMC */
64 u32
get_board_rev(void)
66 return cl_eeprom_get_board_rev(CONFIG_SYS_I2C_EEPROM_BUS
);
69 int board_usb_init(int index
, enum usb_init_type init
)
71 enable_usb_clocks(index
);
75 int board_usb_cleanup(int index
, enum usb_init_type init
)
77 disable_usb_clocks(index
);