Fix the spl build error.
This is a workaround for building a rpi3 spl image.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
static int bcm2835_gpio_get_function(struct udevice *dev, unsigned offset)
{
+#ifndef CONFIG_SPL_BUILD
struct bcm2835_gpios *priv = dev_get_priv(dev);
int funcid;
default:
return GPIOF_FUNC;
}
+#else
+ return GPIOF_FUNC;
+#endif
}
static const struct dm_gpio_ops gpio_bcm2835_ops = {
*/
static bool bcm283x_is_serial_muxed(void)
{
+#ifndef CONFIG_SPL_BUILD
int serial_gpio = 15;
struct udevice *dev;
if (pinctrl_get_gpio_mux(dev, 0, serial_gpio) != BCM2835_GPIO_ALT5)
return false;
+#endif
return true;
}
*/
static bool bcm283x_is_serial_muxed(void)
{
+#ifndef CONFIG_SPL_BUILD
int serial_gpio = 15;
struct udevice *dev;
if (pinctrl_get_gpio_mux(dev, 0, serial_gpio) != BCM2835_GPIO_ALT0)
return false;
+#endif
return true;
}
/* NFSDOWN */
#define CONFIG_IP_DEFRAG
-#define CONFIG_NFS_READ_SIZE 65536
#define CONFIG_SET_DFU_ALT_INFO
#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K)