Merge branch '2019-07-29-master-imports'
- Assorted bug fixes
This commit is contained in:
@@ -352,9 +352,10 @@ int dm_gpio_lookup_name(const char *name, struct gpio_desc *desc);
|
||||
* gpio_hog_lookup_name() - Look up a named GPIO and return the gpio descr.
|
||||
*
|
||||
* @name: Name to look up
|
||||
* @return: Returns gpio_desc for gpio
|
||||
* @desc: Returns GPIO description, on success, else NULL
|
||||
* @return: Returns 0 if OK, else -ENODEV
|
||||
*/
|
||||
struct gpio_desc *gpio_hog_lookup_name(const char *name);
|
||||
int gpio_hog_lookup_name(const char *name, struct gpio_desc **desc);
|
||||
|
||||
/**
|
||||
* gpio_hog_probe_all() - probe all gpio devices with
|
||||
@@ -523,12 +524,13 @@ int gpio_request_list_by_name_nodev(ofnode node, const char *list_name,
|
||||
* gpio_dev_request_index() - request single GPIO from gpio device
|
||||
*
|
||||
* @dev: GPIO device
|
||||
* @nodename: Name of node
|
||||
* @nodename: Name of node for which gpio gets requested, used
|
||||
* for the gpio label name
|
||||
* @list_name: Name of GPIO list (e.g. "board-id-gpios")
|
||||
* @index: Index number of the GPIO in that list use request (0=first)
|
||||
* @flags: GPIOD_* flags
|
||||
* @dtflags: GPIO flags read from DT
|
||||
* @desc: GPIO descriotor filled from this function
|
||||
* @dtflags: GPIO flags read from DT defined see GPIOD_*
|
||||
* @desc: returns GPIO descriptor filled from this function
|
||||
* @return: return value from gpio_request_tail()
|
||||
*/
|
||||
int gpio_dev_request_index(struct udevice *dev, const char *nodename,
|
||||
|
||||
@@ -59,23 +59,6 @@ int do_bootm_states(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
|
||||
|
||||
void arch_preboot_os(void);
|
||||
|
||||
/**
|
||||
* bootm_decomp_image() - decompress the operating system
|
||||
*
|
||||
* @comp: Compression algorithm that is used (IH_COMP_...)
|
||||
* @load: Destination load address in U-Boot memory
|
||||
* @image_start Image start address (where we are decompressing from)
|
||||
* @type: OS type (IH_OS_...)
|
||||
* @load_bug: Place to decompress to
|
||||
* @image_buf: Address to decompress from
|
||||
* @image_len: Number of bytes in @image_buf to decompress
|
||||
* @unc_len: Available space for decompression
|
||||
* @return 0 if OK, -ve on error (BOOTM_ERR_...)
|
||||
*/
|
||||
int bootm_decomp_image(int comp, ulong load, ulong image_start, int type,
|
||||
void *load_buf, void *image_buf, ulong image_len,
|
||||
uint unc_len, ulong *load_end);
|
||||
|
||||
/*
|
||||
* boards should define this to disable devices when EFI exits from boot
|
||||
* services.
|
||||
|
||||
@@ -225,7 +225,6 @@
|
||||
*/
|
||||
#define CONFIG_SYS_RTC_BUS_NUM 0x01
|
||||
#define CONFIG_SYS_I2C_RTC_ADDR 0x32
|
||||
#define CONFIG_RTC_RX8025
|
||||
|
||||
/* Pass Ethernet MAC to VxWorks */
|
||||
#define CONFIG_SYS_VXWORKS_MAC_PTR 0x000043f0
|
||||
|
||||
55
include/configs/pumpkin.h
Normal file
55
include/configs/pumpkin.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Configuration for Pumpkin board
|
||||
*
|
||||
* Copyright (C) 2019 BayLibre, SAS
|
||||
* Author: Fabien Parent <fparent@baylibre.com
|
||||
*/
|
||||
|
||||
#ifndef __PUMPKIN_H
|
||||
#define __PUMPKIN_H
|
||||
|
||||
#include <linux/sizes.h>
|
||||
|
||||
#define CONFIG_ENV_SIZE SZ_4K
|
||||
#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_MALLOC_LEN SZ_4M
|
||||
|
||||
#define CONFIG_CPU_ARMV8
|
||||
#define COUNTER_FREQUENCY 13000000
|
||||
|
||||
#define CONFIG_SYS_NS16550_SERIAL
|
||||
#define CONFIG_SYS_NS16550_REG_SIZE -4
|
||||
#define CONFIG_SYS_NS16550_MEM32
|
||||
#define CONFIG_SYS_NS16550_COM1 0x11005000
|
||||
#define CONFIG_SYS_NS16550_CLK 26000000
|
||||
|
||||
#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + SZ_2M - \
|
||||
GENERATED_GBL_DATA_SIZE)
|
||||
|
||||
#define CONFIG_SYS_BOOTM_LEN SZ_64M
|
||||
|
||||
/* Environment settings */
|
||||
#include <config_distro_bootcmd.h>
|
||||
|
||||
#define MMCBOOT \
|
||||
"mmcdev=0\0" \
|
||||
"kernel_partition=2\0" \
|
||||
"rootfs_partition=3\0" \
|
||||
"mmc_discover_partition=" \
|
||||
"part start mmc ${mmcdev} ${kernel_partition} kernel_part_addr;" \
|
||||
"part size mmc ${mmcdev} ${kernel_partition} kernel_part_size;\0" \
|
||||
"mmcboot=" \
|
||||
"mmc dev ${mmcdev};" \
|
||||
"run mmc_discover_partition;" \
|
||||
"mmc read ${kerneladdr} ${kernel_part_addr} ${kernel_part_size};" \
|
||||
"setenv bootargs ${bootargs} root=/dev/mmcblk${mmcdev}p${rootfs_partition} rootwait; " \
|
||||
"bootm ${kerneladdr}; \0"
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"kerneladdr=0x4A000000\0" \
|
||||
MMCBOOT \
|
||||
"bootcmd=run mmcboot;\0"
|
||||
|
||||
#endif
|
||||
@@ -187,7 +187,6 @@
|
||||
#define CONFIG_SYS_FSL_I2C2_OFFSET 0x3100
|
||||
|
||||
/* I2C RTC */
|
||||
#define CONFIG_RTC_RX8025 /* Use Epson rx8025 rtc via i2c */
|
||||
#define CONFIG_SYS_I2C_RTC_ADDR 0x32 /* at address 0x32 */
|
||||
|
||||
/* I2C W83782G HW-Monitoring IC */
|
||||
|
||||
@@ -225,7 +225,6 @@
|
||||
*/
|
||||
#define CONFIG_SYS_RTC_BUS_NUM 0x01
|
||||
#define CONFIG_SYS_I2C_RTC_ADDR 0x32
|
||||
#define CONFIG_RTC_RX8025
|
||||
|
||||
/* Pass Ethernet MAC to VxWorks */
|
||||
#define CONFIG_SYS_VXWORKS_MAC_PTR 0x000043f0
|
||||
|
||||
@@ -849,6 +849,23 @@ static inline int image_check_target_arch(const image_header_t *hdr)
|
||||
}
|
||||
#endif /* USE_HOSTCC */
|
||||
|
||||
/**
|
||||
* image_decomp() - decompress an image
|
||||
*
|
||||
* @comp: Compression algorithm that is used (IH_COMP_...)
|
||||
* @load: Destination load address in U-Boot memory
|
||||
* @image_start Image start address (where we are decompressing from)
|
||||
* @type: OS type (IH_OS_...)
|
||||
* @load_bug: Place to decompress to
|
||||
* @image_buf: Address to decompress from
|
||||
* @image_len: Number of bytes in @image_buf to decompress
|
||||
* @unc_len: Available space for decompression
|
||||
* @return 0 if OK, -ve on error (BOOTM_ERR_...)
|
||||
*/
|
||||
int image_decomp(int comp, ulong load, ulong image_start, int type,
|
||||
void *load_buf, void *image_buf, ulong image_len,
|
||||
uint unc_len, ulong *load_end);
|
||||
|
||||
/**
|
||||
* Set up properties in the FDT
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user