<apritzel>
sunshavi: an "accessor" is a wrapper function, that abstracts access to something
<apritzel>
sunshavi: for instance we have MMIO accessors (readl/writel), that must be used instead of reading from or writing directly to the memory region (using a pointer)
<sunshavi>
apritzel: something like this 'specific_hw_get_accessor'
<apritzel>
sunshavi: PCI accessors would wrap accesses to MMIO regions mapped through a PCI BAR
<apritzel>
sunshavi: what is 'specific_hw_get_accessor'?
<sunshavi>
a funct name
<apritzel>
where?
<sunshavi>
in no place. I just wanted to show me the way i get a pointer to the accesor (that is a region in mem)
camus has joined #linux-sunxi
<apritzel>
an accessor means *every* access goes through that function, no one should use a pointer directly
kaspter has quit [Ping timeout: 265 seconds]
camus is now known as kaspter
<apritzel>
so you can do things beside the actual access, like boundary checks, dynamic mappings, adding a barrier, ...
<sunshavi>
apritzel: thanks. I think I need to see an accessor in action
<apritzel>
sunshavi: readl and writel are examples
<apritzel>
sunshavi: ^^^ that's a closely related concept
<sunshavi>
apritzel: getter and setter in OOP. Thanks
<apritzel>
sunshavi: yes, but in a more general way, not only to access variables in a language defined object
OnkelUlla has quit [Ping timeout: 265 seconds]
<sunshavi>
apritzel: probably structs aka objects
<apritzel>
in the PCI accessors case you would force every access to a PCI device's register through accessors, so you can fix them up in case the hardware is broken
Mangy_Dog has quit [Ping timeout: 265 seconds]
<sunshavi>
apritzel: Just one point of change. Nice
<apritzel>
sunshavi: yes, *if* you have the accessors from the beginning. But we don't (for PCI), so would need to touch every driver and change it to use those accessors
<sunshavi>
apritzel: refactoring
<apritzel>
(of the painful kind)
<sunshavi>
which one is your editor?
OnkelUlla has joined #linux-sunxi
<sunshavi>
apritzel: Nicolas Saenz is the one who is going to do the change
<apritzel>
sunshavi: he is *asking* whether that's a good idea
<apritzel>
and he certainly won't do all the changes
<apritzel>
it's more than just search/replace, mind you
<sunshavi>
apritzel: ok. That's the reason Nicolas is asking for ideas
Nakaori has quit [Ping timeout: 256 seconds]
Nakaori has joined #linux-sunxi
jbrown has quit [Quit: Leaving]
Nakaori has quit [Ping timeout: 260 seconds]
Nakaori has joined #linux-sunxi
jbrown has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
chewitt has quit [Quit: Adios!]
apritzel has quit [Ping timeout: 272 seconds]
buzzmarshall has joined #linux-sunxi
no1b4me has joined #linux-sunxi
buzzmarshall has quit [Remote host closed the connection]
victhor has quit [Ping timeout: 246 seconds]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 264 seconds]
camus is now known as kaspter
no1b4me has quit [Remote host closed the connection]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 264 seconds]
cnxsoft has quit [Read error: Connection reset by peer]
camus is now known as kaspter
cnxsoft has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has joined #linux-sunxi
asdf28 has joined #linux-sunxi
scherazada has joined #linux-sunxi
scherazada has left #linux-sunxi [#linux-sunxi]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 264 seconds]
camus is now known as kaspter
ldevulder has joined #linux-sunxi
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 260 seconds]
apritzel has joined #linux-sunxi
kaspter has quit [Ping timeout: 265 seconds]
kaspter has joined #linux-sunxi
hlauer has joined #linux-sunxi
cmeerw has joined #linux-sunxi
apritzel has quit [Ping timeout: 256 seconds]
cmeerw has quit [Ping timeout: 260 seconds]
wens has quit [Quit: leaving]
wens has joined #linux-sunxi
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #linux-sunxi
abelvesa has quit [Ping timeout: 265 seconds]
abelvesa has joined #linux-sunxi
warpme_ has joined #linux-sunxi
ldevulder_ is now known as ldevulder
mmarc__ has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
hlauer has quit [Read error: Connection reset by peer]
kmaincent has joined #linux-sunxi
hlauer has joined #linux-sunxi
dev1990 has quit [Excess Flood]
dev1990 has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.1, revision: 5.0.1+git-7433-0df9f22f2, build type: debug, sources date: 20160102, built on: 2019-12-08 19:19:20 UTC 5.0.1+git-7433-0df9f22f2 http://www.kvirc.net/]
apritzel has joined #linux-sunxi
victhor has joined #linux-sunxi
Perlovka has quit [Ping timeout: 265 seconds]
Perlovka has joined #linux-sunxi
random_yanek has quit [Ping timeout: 272 seconds]
kmaincent has quit [Quit: WeeChat 1.9.1]
matthias_bgg has joined #linux-sunxi
kmaincent has joined #linux-sunxi
<kmaincent>
mripard: Hello, I got inspired from you DIPs detection code to write a generic extension board detection mechanism but I got an issue with the CHIP board example.
Mangy_Dog has joined #linux-sunxi
<kmaincent>
mripard: The W1 EEPROM is located on the DIPs but to enable the detection I need to add the EEPROM node to the CHIP dts which is wrong.
random_yanek has joined #linux-sunxi
<kmaincent>
I am just wondering if you have an idea to solve my issue. I am thinking to add the node sun5i-r8-chip-u-boot.dtsi but it is surely not the best solution.
<apritzel>
kmaincent: I think it's at least *safe* to always add the chip to the DT (since users can put on DIPs anytime), and we can actually detect whether the EEPROM is there
<apritzel>
kmaincent: maybe we can "force" the 1-Wire driver, by filling platform information, then calling probe()
<apritzel>
as I think DT is not the only way to get a DM compliant driver to probe
<apritzel>
(similar to what we do in the SPL for some platforms, where the DT is parsed at build time, see of-platdata)
mmarc__ has quit [Remote host closed the connection]
andy25225 has joined #linux-sunxi
mmarc__ has joined #linux-sunxi
<gediz0x539>
wens: i've seen his previous coasters and thought "how cool, i wish i had one with an A13"
mmarc__ has quit [Ping timeout: 264 seconds]
<gediz0x539>
apparently he did an A13 one with a marking code using the A13 cover image from wiki
<gediz0x539>
i have that A13 lol
<gediz0x539>
but im not sure if they're completely unique though
<hlauer>
probaly missed an answer: what does the soft reset function of i2c controller in A20? From the code it's unclear to me if it's used in the current driver
mmarc__ has joined #linux-sunxi
<kmaincent>
mripard: the w1_new_device function has moved to w1_eeprom_register_new_device in w1-eeprom-uclass.c
<kmaincent>
and it loops on the uclass devices
mmarc__ has quit [Remote host closed the connection]
scherazada has joined #linux-sunxi
faruk_ has quit [Quit: Leaving]
faruk has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
<faruk>
Hello all. I have a question for writing .img to SD card.
<faruk>
I use A13. I want to insert the empty SD card into the device and print images on the card from the computer(Maybe I can use A13 here as an sd card writer. Is it possible) or via ethernet.
<faruk>
Also, since I read in linux sunxi, the device has to boot over nand in order to do this. If this is the case, can't I write anything to the SD card when the device boot is completely blank?
<faruk>
Soory my poor English thanks
<faruk>
Is there such a method?
<KotCzarny>
if your device isnt special, then having bootable sdcard inserted will make device start from sdcard
<KotCzarny>
keep in mind nand support in mainline uboot/kernel isnt done
<KotCzarny>
real question is: what do you want to do?
<faruk>
I understand thank you for reply.
<KotCzarny>
you can prepare bootable sdcard using pc
<KotCzarny>
you dont need to do it in device
<faruk>
I think I couldn't express myself fully. let me tell you step by step
<faruk>
I want write image to blank SD card. I'll write SD card more than once for multiple devices. I don't want deal this process.
<faruk>
So I'll insert the blank SD card into the device. And I want write image to this SD card(SD card inserted to board now). How can I do this?
<faruk>
When I want to write a different image, I want to do this when the SD card is on the device.
<faruk>
Something like recovery mode can work. However, I am not sure how to set up the system.
mmarc__ has joined #linux-sunxi
s_frit has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 272 seconds]
hexdump0815 has joined #linux-sunxi
<mripard>
kmaincent: it doesn't seem to call device_bind anymore though
<mripard>
maybe it's worth looking into
scherazada has quit [Read error: Connection reset by peer]
mmarc__ has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 272 seconds]
<libv>
wens, gediz0x539: this guy has to do a VIA MVP4 northbridge (the first iteration)
<libv>
dromede: start documenting on the wiki, you'll soon find that after the basics are filled in, that this device page becomes your own personal information store
Mangy_Dog has joined #linux-sunxi
cmeerw has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
gaston1980 has joined #linux-sunxi
Net147 has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
<diego71>
dromede: also someone else add new information in the future ...
Turl has quit [Quit: >.<]
damex has quit [Ping timeout: 240 seconds]
Turl has joined #linux-sunxi
lkcl has quit [Ping timeout: 264 seconds]
damex has joined #linux-sunxi
lkcl has joined #linux-sunxi
damex has quit [Read error: Connection reset by peer]
damex has joined #linux-sunxi
DrFrankensteinUK has quit [Ping timeout: 240 seconds]
asdf28 has quit [Ping timeout: 260 seconds]
asdf28 has joined #linux-sunxi
DrFrankensteinUK has joined #linux-sunxi
tuxd3v has quit [Ping timeout: 265 seconds]
tuxd3v has joined #linux-sunxi
jbrown has quit [Quit: Leaving]
rzerres has quit [Ping timeout: 272 seconds]
tuxd3v has quit [Read error: Connection reset by peer]
tuxd3v has joined #linux-sunxi
<jernej>
apritzel: I continued my U-Boot DE2 rework and now it looks like proper DM driver although there is still work to do