mirror of https://github.com/OpenIPC/firmware.git
Enable GPIO over SYSFS, disable getting mtdparts from anyka env. Use mtdparts=spi0.0:...
parent
dbb90a8d66
commit
97d45e0119
|
@ -30,7 +30,7 @@ CONFIG_HAVE_IRQ_WORK=y
|
||||||
#
|
#
|
||||||
# General setup
|
# General setup
|
||||||
#
|
#
|
||||||
# CONFIG_EXPERIMENTAL is not set
|
CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_BROKEN_ON_SMP=y
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
CONFIG_INIT_ENV_ARG_LIMIT=32
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
CONFIG_CROSS_COMPILE=""
|
CONFIG_CROSS_COMPILE=""
|
||||||
|
@ -893,6 +893,7 @@ CONFIG_SPI_ANYKA=y
|
||||||
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
||||||
CONFIG_GPIOLIB=y
|
CONFIG_GPIOLIB=y
|
||||||
# CONFIG_DEBUG_GPIO is not set
|
# CONFIG_DEBUG_GPIO is not set
|
||||||
|
CONFIG_GPIO_SYSFS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Memory mapped GPIO drivers:
|
# Memory mapped GPIO drivers:
|
||||||
|
@ -1339,6 +1340,7 @@ CONFIG_INOTIFY_USER=y
|
||||||
# CONFIG_QUOTACTL is not set
|
# CONFIG_QUOTACTL is not set
|
||||||
# CONFIG_AUTOFS4_FS is not set
|
# CONFIG_AUTOFS4_FS is not set
|
||||||
# CONFIG_FUSE_FS is not set
|
# CONFIG_FUSE_FS is not set
|
||||||
|
CONFIG_OVERLAYFS_FS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Caches
|
# Caches
|
||||||
|
|
|
@ -30,7 +30,7 @@ CONFIG_HAVE_IRQ_WORK=y
|
||||||
#
|
#
|
||||||
# General setup
|
# General setup
|
||||||
#
|
#
|
||||||
# CONFIG_EXPERIMENTAL is not set
|
CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_BROKEN_ON_SMP=y
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
CONFIG_INIT_ENV_ARG_LIMIT=32
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
CONFIG_CROSS_COMPILE=""
|
CONFIG_CROSS_COMPILE=""
|
||||||
|
@ -893,6 +893,7 @@ CONFIG_SPI_ANYKA=y
|
||||||
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
||||||
CONFIG_GPIOLIB=y
|
CONFIG_GPIOLIB=y
|
||||||
# CONFIG_DEBUG_GPIO is not set
|
# CONFIG_DEBUG_GPIO is not set
|
||||||
|
CONFIG_GPIO_SYSFS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Memory mapped GPIO drivers:
|
# Memory mapped GPIO drivers:
|
||||||
|
@ -1339,6 +1340,7 @@ CONFIG_INOTIFY_USER=y
|
||||||
# CONFIG_QUOTACTL is not set
|
# CONFIG_QUOTACTL is not set
|
||||||
# CONFIG_AUTOFS4_FS is not set
|
# CONFIG_AUTOFS4_FS is not set
|
||||||
# CONFIG_FUSE_FS is not set
|
# CONFIG_FUSE_FS is not set
|
||||||
|
CONFIG_OVERLAYFS_FS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Caches
|
# Caches
|
||||||
|
|
|
@ -121146,7 +121146,7 @@ index 00000000..d697595b
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
+
|
+
|
||||||
+#ifndef CONFIG_MTD_SPINAND_PRODUCER
|
+#ifdef CONFIG_MTD_SPINAND_PRODUCER
|
||||||
+static int ak_mount_partitions(struct spi_device *spi)
|
+static int ak_mount_partitions(struct spi_device *spi)
|
||||||
+{
|
+{
|
||||||
+ int i, ret;
|
+ int i, ret;
|
||||||
|
@ -121514,7 +121514,7 @@ index 00000000..d697595b
|
||||||
+ kfree(flash);
|
+ kfree(flash);
|
||||||
+ return -EINVAL;
|
+ return -EINVAL;
|
||||||
+ }
|
+ }
|
||||||
+#ifndef CONFIG_MTD_SPINAND_PRODUCER
|
+#ifdef CONFIG_MTD_SPINAND_PRODUCER
|
||||||
+ ret = ak_mount_partitions(spi);
|
+ ret = ak_mount_partitions(spi);
|
||||||
+ if (ret)
|
+ if (ret)
|
||||||
+ printk("Add MTD partitions failed\n");
|
+ printk("Add MTD partitions failed\n");
|
||||||
|
|
Loading…
Reference in New Issue