summaryrefslogtreecommitdiffstats
path: root/board/compulab/cm_t35/cm_t35.c
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2013-09-16 21:49:58 +0300
committerTom Rini <trini@ti.com>2013-11-01 15:55:59 -0400
commit689be5f83c17af6221764ab3a3890510af3c9022 (patch)
tree41415fe70d163fab056bc4a192eb1d80cea47c93 /board/compulab/cm_t35/cm_t35.c
parent0178296588fe3004238c77d3dc0996d82b8c8ca1 (diff)
downloadblackbird-obmc-uboot-689be5f83c17af6221764ab3a3890510af3c9022.tar.gz
blackbird-obmc-uboot-689be5f83c17af6221764ab3a3890510af3c9022.zip
cm-t35: move the eeprom code to common place
Compulab boards use the same eeprom code, so move the eeprom related code to live under board/compulab/common directory. Also make several adjustments to eeprom functions namespace, so it will be generic for compulab boards. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Tested-by: Nikita Kiryanov <nikita@compulab.co.il>
Diffstat (limited to 'board/compulab/cm_t35/cm_t35.c')
-rw-r--r--board/compulab/cm_t35/cm_t35.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/board/compulab/cm_t35/cm_t35.c b/board/compulab/cm_t35/cm_t35.c
index 3caa5be845..a6d4aba250 100644
--- a/board/compulab/cm_t35/cm_t35.c
+++ b/board/compulab/cm_t35/cm_t35.c
@@ -33,7 +33,7 @@
#include <asm/ehci-omap.h>
#include <asm/gpio.h>
-#include "eeprom.h"
+#include "../common/eeprom.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -160,7 +160,7 @@ static u32 cm_t3x_rev;
u32 get_board_rev(void)
{
if (!cm_t3x_rev)
- cm_t3x_rev = cm_t3x_eeprom_get_board_rev();
+ cm_t3x_rev = cl_eeprom_get_board_rev();
return cm_t3x_rev;
};
@@ -509,7 +509,7 @@ static int handle_mac_address(void)
if (rc)
return 0;
- rc = cm_t3x_eeprom_read_mac_addr(enetaddr);
+ rc = cl_eeprom_read_mac_addr(enetaddr);
if (rc)
return rc;
@@ -598,5 +598,4 @@ int ehci_hcd_stop(void)
{
return omap_ehci_hcd_stop();
}
-
#endif /* CONFIG_USB_EHCI_OMAP */
OpenPOWER on IntegriCloud