|
@@ -676,3 +676,62 @@ static struct mtd_partition balloon3_partition_info[] = {
|
|
|
.name = "RootFS",
|
|
|
.offset = MTDPART_OFS_APPEND,
|
|
|
.size = MTDPART_SIZ_FULL
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_nand_data balloon3_nand_pdata = {
|
|
|
+ .chip = {
|
|
|
+ .nr_chips = 4,
|
|
|
+ .chip_offset = 0,
|
|
|
+ .nr_partitions = ARRAY_SIZE(balloon3_partition_info),
|
|
|
+ .partitions = balloon3_partition_info,
|
|
|
+ .chip_delay = 50,
|
|
|
+ },
|
|
|
+ .ctrl = {
|
|
|
+ .hwcontrol = 0,
|
|
|
+ .dev_ready = balloon3_nand_dev_ready,
|
|
|
+ .select_chip = balloon3_nand_select_chip,
|
|
|
+ .cmd_ctrl = balloon3_nand_cmd_ctl,
|
|
|
+ .probe = balloon3_nand_probe,
|
|
|
+ .remove = balloon3_nand_remove,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct resource balloon3_nand_resource[] = {
|
|
|
+ [0] = {
|
|
|
+ .start = BALLOON3_NAND_BASE,
|
|
|
+ .end = BALLOON3_NAND_BASE + 0x4,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device balloon3_nand = {
|
|
|
+ .name = "gen_nand",
|
|
|
+ .num_resources = ARRAY_SIZE(balloon3_nand_resource),
|
|
|
+ .resource = balloon3_nand_resource,
|
|
|
+ .id = -1,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &balloon3_nand_pdata,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+static void __init balloon3_nand_init(void)
|
|
|
+{
|
|
|
+ platform_device_register(&balloon3_nand);
|
|
|
+}
|
|
|
+#else
|
|
|
+static inline void balloon3_nand_init(void) {}
|
|
|
+#endif
|
|
|
+
|
|
|
+/******************************************************************************
|
|
|
+ * Core power regulator
|
|
|
+ ******************************************************************************/
|
|
|
+#if defined(CONFIG_REGULATOR_MAX1586) || \
|
|
|
+ defined(CONFIG_REGULATOR_MAX1586_MODULE)
|
|
|
+static struct regulator_consumer_supply balloon3_max1587a_consumers[] = {
|
|
|
+ REGULATOR_SUPPLY("vcc_core", NULL),
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data balloon3_max1587a_v3_info = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "vcc_core range",
|