projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
status_led: Kconfig migration
[platform/kernel/u-boot.git]
/
board
/
compulab
/
cm_t3517
/
cm_t3517.c
diff --git
a/board/compulab/cm_t3517/cm_t3517.c
b/board/compulab/cm_t3517/cm_t3517.c
index
cac1ad9
..
50312b1
100644
(file)
--- a/
board/compulab/cm_t3517/cm_t3517.c
+++ b/
board/compulab/cm_t3517/cm_t3517.c
@@
-50,12
+50,12
@@
static struct omap_musb_board_data cm_t3517_musb_board_data = {
};
static struct musb_hdrc_platform_data cm_t3517_musb_pdata = {
};
static struct musb_hdrc_platform_data cm_t3517_musb_pdata = {
-#if defined(CONFIG_MUSB_HOST)
+#if defined(CONFIG_
USB_
MUSB_HOST)
.mode = MUSB_HOST,
.mode = MUSB_HOST,
-#elif defined(CONFIG_MUSB_GADGET)
+#elif defined(CONFIG_
USB_
MUSB_GADGET)
.mode = MUSB_PERIPHERAL,
#else
.mode = MUSB_PERIPHERAL,
#else
-#error "Please define either CONFIG_
MUSB_HOST or CONFIG
_MUSB_GADGET"
+#error "Please define either CONFIG_
USB_MUSB_HOST or CONFIG_USB
_MUSB_GADGET"
#endif
.config = &cm_t3517_musb_config,
.power = 250,
#endif
.config = &cm_t3517_musb_config,
.power = 250,
@@
-89,8
+89,8
@@
int board_init(void)
/* boot param addr */
gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
/* boot param addr */
gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
-#if defined(CONFIG_
STATUS_LED) && defined(STATUS_LED_BOOT
)
- status_led_set(
STATUS_LED_BOOT, STATUS_LED
_ON);
+#if defined(CONFIG_
LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE
)
+ status_led_set(
CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS
_ON);
#endif
cm_t3517_musb_init();
#endif
cm_t3517_musb_init();
@@
-98,10
+98,19
@@
int board_init(void)
return 0;
}
return 0;
}
+/*
+ * Routine: get_board_rev
+ * Description: read system revision
+ */
+u32 get_board_rev(void)
+{
+ return cl_eeprom_get_board_rev(CONFIG_SYS_I2C_EEPROM_BUS);
+};
+
int misc_init_r(void)
{
cl_print_pcb_info();
int misc_init_r(void)
{
cl_print_pcb_info();
-
dieid_num_r
();
+
omap_die_id_display
();
return 0;
}
return 0;
}
@@
-132,7
+141,7
@@
static int am3517_get_efuse_enetaddr(u8 *enetaddr)
enetaddr[4] = (u8)((lsb >> 8) & 0xff);
enetaddr[5] = (u8)(lsb & 0xff);
enetaddr[4] = (u8)((lsb >> 8) & 0xff);
enetaddr[5] = (u8)(lsb & 0xff);
- return is_valid_eth
er_
addr(enetaddr);
+ return is_valid_ethaddr(enetaddr);
}
static inline int cm_t3517_init_emac(bd_t *bis)
}
static inline int cm_t3517_init_emac(bd_t *bis)
@@
-163,14
+172,14
@@
static int cm_t3517_handle_mac_address(void)
if (ret)
return 0;
if (ret)
return 0;
- ret = cl_eeprom_read_mac_addr(enetaddr);
+ ret = cl_eeprom_read_mac_addr(enetaddr
, CONFIG_SYS_I2C_EEPROM_BUS
);
if (ret) {
ret = am3517_get_efuse_enetaddr(enetaddr);
if (ret)
return ret;
}
if (ret) {
ret = am3517_get_efuse_enetaddr(enetaddr);
if (ret)
return ret;
}
- if (!is_valid_eth
er_
addr(enetaddr))
+ if (!is_valid_ethaddr(enetaddr))
return -1;
return eth_setenv_enetaddr("ethaddr", enetaddr);
return -1;
return eth_setenv_enetaddr("ethaddr", enetaddr);