mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-17 12:46:59 +02:00
Fixes for buildman and sysreset
-----BEGIN PGP SIGNATURE----- iQFFBAABCgAvFiEEslwAIq+Gp8wWVbYnfxc6PpAIreYFAmQl/ucRHHNqZ0BjaHJv bWl1bS5vcmcACgkQfxc6PpAIreaN+Af9E7rh1oM0fbZbEqwnIAT2RIDj3VEOTKf8 UpNO+v86KPkChvHLnZKIW5Aa5rf6Goi4rppN59HdFUM6++13V7Gdp/cshu9b7j7R 4NoOqI/k4/PPe6W5pU3f1GzV820LdV6NTKb3UPHz9FTAAjlY/KX41vNf5+kKdse7 rxlr3i5L05/68ZPMjH3lLfn2pSh0ZizbImbqHZpxTTvAA9iG1cz0Pftpfzu6zXpg gqLeRk2d5dQUgQ0L216/e/L2OMnxMsDTBrhPFR+fK9rtb6b7sUCBajHTE/Lthj1R 4IEinNS4MYJeTQ3MM5RQFajbpcmroU7a39IDOrjn/2owgzyQiub8AQ== =4ef+ -----END PGP SIGNATURE----- Merge tag 'dm-pull-31mar23' of https://source.denx.de/u-boot/custodians/u-boot-dm Fixes for buildman and sysreset
This commit is contained in:
commit
897d634a98
@ -17,6 +17,7 @@ struct gpio_reboot_priv {
|
|||||||
static int gpio_reboot_request(struct udevice *dev, enum sysreset_t type)
|
static int gpio_reboot_request(struct udevice *dev, enum sysreset_t type)
|
||||||
{
|
{
|
||||||
struct gpio_reboot_priv *priv = dev_get_priv(dev);
|
struct gpio_reboot_priv *priv = dev_get_priv(dev);
|
||||||
|
int ret;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When debug log is enabled please make sure that chars won't end up
|
* When debug log is enabled please make sure that chars won't end up
|
||||||
@ -26,7 +27,11 @@ static int gpio_reboot_request(struct udevice *dev, enum sysreset_t type)
|
|||||||
debug("GPIO reset\n");
|
debug("GPIO reset\n");
|
||||||
|
|
||||||
/* Writing 1 respects polarity (active high/low) based on gpio->flags */
|
/* Writing 1 respects polarity (active high/low) based on gpio->flags */
|
||||||
return dm_gpio_set_value(&priv->gpio, 1);
|
ret = dm_gpio_set_value(&priv->gpio, 1);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
return -EINPROGRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct sysreset_ops gpio_reboot_ops = {
|
static struct sysreset_ops gpio_reboot_ops = {
|
||||||
|
@ -420,7 +420,7 @@ class Toolchains:
|
|||||||
Returns:
|
Returns:
|
||||||
Resolved string
|
Resolved string
|
||||||
|
|
||||||
>>> bsettings.Setup()
|
>>> bsettings.Setup(None)
|
||||||
>>> tcs = Toolchains()
|
>>> tcs = Toolchains()
|
||||||
>>> tcs.Add('fred', False)
|
>>> tcs.Add('fred', False)
|
||||||
>>> var_dict = {'oblique' : 'OBLIQUE', 'first' : 'fi${second}rst', \
|
>>> var_dict = {'oblique' : 'OBLIQUE', 'first' : 'fi${second}rst', \
|
||||||
|
Loading…
Reference in New Issue
Block a user