Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Apr 2021 09:24:38 +0000
From:      "oskar.holmlund_ohdata.se (Oskar Holmlund)" <phabric-noreply@FreeBSD.org>
To:        Phabricator <phabric-noreply@FreeBSD.org>
Cc:        freebsd-arm@freebsd.org
Subject:   [Differential] D29547: am335x_ehrpwm.c add support for flags (PWM_POLARITY_INVERTED)
Message-ID:  <c2d163b6b2a4847d641675994f6bc25d@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-sl5ukfvhbr7gqquijep4-req@reviews.freebsd.org>
References:  <differential-rev-PHID-DREV-sl5ukfvhbr7gqquijep4-req@reviews.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--b1_c2d163b6b2a4847d641675994f6bc25d
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: base64

b3NrYXIuaG9sbWx1bmRfb2hkYXRhLnNlIGNyZWF0ZWQgdGhpcyByZXZpc2lvbi4Kb3NrYXIuaG9s
bWx1bmRfb2hkYXRhLnNlIGFkZGVkIHJldmlld2VyczogQVJNLCBtYW51Lgpvc2thci5ob2xtbHVu
ZF9vaGRhdGEuc2UgYWRkZWQgYSBwcm9qZWN0OiBBUk0uCkhlcmFsZCBhZGRlZCBhIHN1YnNjcmli
ZXI6IGFuZHJldy4Kb3NrYXIuaG9sbWx1bmRfb2hkYXRhLnNlIHJlcXVlc3RlZCByZXZpZXcgb2Yg
dGhpcyByZXZpc2lvbi4KClJFVklTSU9OIFNVTU1BUlkKICBGb3Igbm93IGp1c3QgYW4gcGxhY2Vo
b2xkZXIgZm9yIHJldmlldyBEMjk1NDYgPGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNkLm9yZy9EMjk1
NDY+CiAgCiAgLSBBZGQgc3VwcG9ydCBmb3IgZmxhZ3MgYW5kIFBXTV9QT0xBUklUWV9JTlZFUlRF
RCBmbGFncwogIC0gQ2xlYW51cCBhbmQgYWRkIGNvbW1lbnRzIGluIHRoZSBpbml0aWFsaXphdGlv
biBjb2RlIGZvciB0aGUgUFdNIGFtMzM1eF9laHJwd21fYXR0YWNoKCkKICAtIEFkZC9maXggcmVn
aXN0ZXIgZGVmaW5lcwoKUkVQT1NJVE9SWQogIFIxMCBGcmVlQlNEIHNyYyByZXBvc2l0b3J5CgpS
RVZJU0lPTiBERVRBSUwKICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcvRDI5NTQ3CgpBRkZF
Q1RFRCBGSUxFUwogIHN5cy9hcm0vdGkvYW0zMzV4L2FtMzM1eF9laHJwd20uYwoKRU1BSUwgUFJF
RkVSRU5DRVMKICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcvc2V0dGluZ3MvcGFuZWwvZW1h
aWxwcmVmZXJlbmNlcy8KClRvOiBvc2thci5ob2xtbHVuZF9vaGRhdGEuc2UsICNhcm0sIG1hbnUK
Q2M6IGZyZWVic2QtYXJtLWxpc3QsIGFuZHJldwo=

--b1_c2d163b6b2a4847d641675994f6bc25d
Content-Type: text/x-patch; charset=utf-8; name="D29547.86734.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D29547.86734.patch"

ZGlmZiAtLWdpdCBhL3N5cy9hcm0vdGkvYW0zMzV4L2FtMzM1eF9laHJwd20uYy53aXRob3V0LnN5
c2N0bCBiL3N5cy9hcm0vdGkvYW0zMzV4L2FtMzM1eF9laHJwd20uYwotLS0gYS9zeXMvYXJtL3Rp
L2FtMzM1eC9hbTMzNXhfZWhycHdtLmMud2l0aG91dC5zeXNjdGwKKysrIGIvc3lzL2FybS90aS9h
bTMzNXgvYW0zMzV4X2VocnB3bS5jCkBAIC00NCw2ICs0NCw4IEBACiAjaW5jbHVkZSA8ZGV2L29m
dy9vZndfYnVzLmg+CiAjaW5jbHVkZSA8ZGV2L29mdy9vZndfYnVzX3N1YnIuaD4KIAorI2luY2x1
ZGUgPGRldi9wd20vcHdtYy5oPgorCiAjaW5jbHVkZSAicHdtYnVzX2lmLmgiCiAKICNpbmNsdWRl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19jaGFubmVsX2NvbmZpZywJYW0zMzV4X2VocnB3bV9j
aGFubmVsX2NvbmZpZyksCiAJREVWTUVUSE9EKHB3bWJ1c19jaGFubmVsX2dldF9jb25maWcsCWFt
MzM1eF9laHJwd21fY2hhbm5lbF9nZXRfY29uZmlnKSwKKwlERVZNRVRIT0QocHdtYnVzX2NoYW5u
ZWxfc2V0X2ZsYWdzLAlhbTMzNXhfZWhycHdtX2NoYW5uZWxfc2V0X2ZsYWdzKSwKKwlERVZNRVRI
T0QocHdtYnVzX2NoYW5uZWxfZ2V0X2ZsYWdzLAlhbTMzNXhfZWhycHdtX2NoYW5uZWxfZ2V0X2Zs
YWdzKSwKIAlERVZNRVRIT0QocHdtYnVzX2NoYW5uZWxfZW5hYmxlLAlhbTMzNXhfZWhycHdtX2No
YW5uZWxfZW5hYmxlKSwKIAlERVZNRVRIT0QocHdtYnVzX2NoYW5uZWxfaXNfZW5hYmxlZCwJYW0z
MzV4X2VocnB3bV9jaGFubmVsX2lzX2VuYWJsZWQpLAogCgo=


--b1_c2d163b6b2a4847d641675994f6bc25d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c2d163b6b2a4847d641675994f6bc25d>