|
@@ -137,3 +137,74 @@ static void read_factory_config(struct memory_accessor *a, void *context)
|
|
|
goto bad_config;
|
|
|
}
|
|
|
|
|
|
+ pr_info("MityOMAPL138: Found MAC = %pM\n", factory_config.mac);
|
|
|
+ if (is_valid_ether_addr(factory_config.mac))
|
|
|
+ memcpy(soc_info->emac_pdata->mac_addr,
|
|
|
+ factory_config.mac, ETH_ALEN);
|
|
|
+ else
|
|
|
+ pr_warning("MityOMAPL138: Invalid MAC found "
|
|
|
+ "in factory config block\n");
|
|
|
+
|
|
|
+ partnum = factory_config.partnum;
|
|
|
+ pr_info("MityOMAPL138: Part Number = %s\n", partnum);
|
|
|
+
|
|
|
+bad_config:
|
|
|
+ /* default maximum speed is valid for all platforms */
|
|
|
+ mityomapl138_cpufreq_init(partnum);
|
|
|
+}
|
|
|
+
|
|
|
+static struct at24_platform_data mityomapl138_fd_chip = {
|
|
|
+ .byte_len = 256,
|
|
|
+ .page_size = 8,
|
|
|
+ .flags = AT24_FLAG_READONLY | AT24_FLAG_IRUGO,
|
|
|
+ .setup = read_factory_config,
|
|
|
+ .context = NULL,
|
|
|
+};
|
|
|
+
|
|
|
+static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = {
|
|
|
+ .bus_freq = 100, /* kHz */
|
|
|
+ .bus_delay = 0, /* usec */
|
|
|
+};
|
|
|
+
|
|
|
+/* TPS65023 voltage regulator support */
|
|
|
+/* 1.2V Core */
|
|
|
+static struct regulator_consumer_supply tps65023_dcdc1_consumers[] = {
|
|
|
+ {
|
|
|
+ .supply = "cvdd",
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* 1.8V */
|
|
|
+static struct regulator_consumer_supply tps65023_dcdc2_consumers[] = {
|
|
|
+ {
|
|
|
+ .supply = "usb0_vdda18",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .supply = "usb1_vdda18",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .supply = "ddr_dvdd18",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .supply = "sata_vddr",
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* 1.2V */
|
|
|
+static struct regulator_consumer_supply tps65023_dcdc3_consumers[] = {
|
|
|
+ {
|
|
|
+ .supply = "sata_vdd",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .supply = "usb_cvdd",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .supply = "pll0_vdda",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .supply = "pll1_vdda",
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* 1.8V Aux LDO, not used */
|
|
|
+static struct regulator_consumer_supply tps65023_ldo1_consumers[] = {
|