socfpga: Adding Scan Manager driver
PATCH 1/2 socfpga: Adding Scan Manager driver
Scan Manager driver will be called to configure the IOCSR scan chain. This configuration will setup the IO buffer settings
--- arch/arm/cpu/armv7/socfpga/Makefile | 2 +- arch/arm/cpu/armv7/socfpga/scan_manager.c | 231 ++++++++++++++++++++ arch/arm/cpu/armv7/socfpga/spl.c | 4 + arch/arm/include/asm/arch-socfpga/scan_manager.h | 97 ++++++++ .../include/asm/arch-socfpga/socfpga_base_addrs.h | 1 + include/configs/socfpga_cyclone5.h | 1 + 6 files changed, 335 insertions(+), 1 deletion(-) create mode 100644 arch/arm/cpu/armv7/socfpga/scan_manager.c create mode 100644 arch/arm/include/asm/arch-socfpga/scan_manager.h
arch/arm/cpu/armv7/socfpga/Makefile +1 -1
@@ -9,4 +9,4 @@ obj-y := lowlevel_init.o obj-y += misc.o timer.o reset_manager.o system_manager.o -obj-$(CONFIG_SPL_BUILD) += spl.o freeze_controller.o +obj-$(CONFIG_SPL_BUILD) += spl.o freeze_controller.o scan_manager.o
arch/arm/cpu/armv7/socfpga/scan_manager.c new file +231 -0
231 lines not on this page · raw message
arch/arm/cpu/armv7/socfpga/spl.c +4 -0
@@ -32,6 +32,10 @@ void spl_board_init(void)/* freeze all IO banks */ sys_mgr_frzctrl_freeze_req (); +/* configure the IOCSR / IO buffer settings */ +if (scan_mgr_configure_iocsr ()) +hang (); +/* configure the pin muxing through system manager */ sysmgr_pinmux_init ();#endif /* CONFIG_SOCFPGA_VIRTUAL_TARGET */
arch/arm/include/asm/arch-socfpga/scan_manager.h new file +97 -0
97 lines not on this page · raw message
arch/arm/include/asm/arch-socfpga/socfpga_base_addrs.h +1 -0
@@ -13,5 +13,6 @@#define SOCFPGA_OSC1TIMER0_ADDRESS 0xffd00000#define SOCFPGA_RSTMGR_ADDRESS 0xffd05000#define SOCFPGA_SYSMGR_ADDRESS 0xffd08000 +#define SOCFPGA_SCANMGR_ADDRESS 0xfff02000#endif /* _SOCFPGA_BASE_ADDRS_H_ */
include/configs/socfpga_cyclone5.h +1 -0
@@ -8,6 +8,7 @@#include <asm/arch/socfpga_base_addrs.h> #include "../../board/altera/socfpga/pinmux_config.h" +#include "../../board/altera/socfpga/iocsr_config.h" /* * High level configuration
Signature · 1 line
1.7.9.5
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Quoted 10 lines · Chin Liang See
Scan Manager driver will be called to configure the IOCSR scan chain. This configuration will setup the IO buffer settings
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Wolfgang Denk <[email protected]>CC Pavel Machek <[email protected]>Cc Tom Rini <[email protected]>Cc Albert Aribaud <[email protected]>---
Not sure what the point is of these CC:s in the commit message. Do I miss some use of these? Can I, should I, should I not remove them from the commit when applying to my tree?
Amicalement,
Signature · 1 line
Albert.
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Dear Albert,
Quoted 14 lines · ZY - albert.u.boot
Quoted 10 lines · Chin Liang See
Scan Manager driver will be called to configure the IOCSR scan chain. This configuration will setup the IO buffer settings
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Wolfgang Denk <[email protected]>CC Pavel Machek <[email protected]>Cc Tom Rini <[email protected]>Cc Albert Aribaud <[email protected]>---
Quoted 4 lines
Not sure what the point is of these CC:s in the commit message. Do I miss some use of these? Can I, should I, should I not remove them from the commit when applying to my tree?
Actually these Cc will be helpful when using git send-email. It will auto cc to these mailing list when the patch is send out for review (instead entering the names manually every time). Thanks
Chin Liang
Quoted 1 line
Amicalement,
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Hi Chin,
Quoted 17 lines · Chin Liang See
Dear Albert,
Quoted 14 lines · ZY - albert.u.boot
Quoted 10 lines · Chin Liang See
Scan Manager driver will be called to configure the IOCSR scan chain. This configuration will setup the IO buffer settings
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Wolfgang Denk <[email protected]>CC Pavel Machek <[email protected]>Cc Tom Rini <[email protected]>Cc Albert Aribaud <[email protected]>---
Quoted 8 lines
Quoted 4 lines
Not sure what the point is of these CC:s in the commit message. Do I miss some use of these? Can I, should I, should I not remove them from the commit when applying to my tree?
Actually these Cc will be helpful when using git send-email. It will auto cc to these mailing list when the patch is send out for review (instead entering the names manually every time). Thanks
That is useful to the sender, but useless to anyone else.
Aren't patman's Series-CC tags fulfilling the same function without cluttering the commit message on the receiving/applying end?
Quoted 1 line
Chin Liang
Amicalement,
Signature · 1 line
Albert.
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Hi Albert,
Quoted 27 lines · ZY - albert.u.boot
Hi Chin,
Quoted 22 lines · Chin Liang See
Dear Albert,
Quoted 18 lines · ZY - albert.u.boot
Quoted 10 lines · Chin Liang See
Scan Manager driver will be called to configure the IOCSR scan chain. This configuration will setup the IO buffer settings
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Wolfgang Denk <[email protected]>CC Pavel Machek <[email protected]>Cc Tom Rini <[email protected]>Cc Albert Aribaud <[email protected]>---
Not sure what the point is of these CC:s in the commit message. Do I miss some use of these? Can I, should I, should I not remove them from the commit when applying to my tree?
Quoted 8 lines
Quoted 3 lines
Actually these Cc will be helpful when using git send-email. It will auto cc to these mailing list when the patch is send out for review (instead entering the names manually every time). Thanks
That is useful to the sender, but useless to anyone else.
Aren't patman's Series-CC tags fulfilling the same function without cluttering the commit message on the receiving/applying end?
The patman script looks cool. Let me learn up this and using this when submitting future patches. At same time, sorry for the hassle as I am not aware the git send-email method not helpful for maintainer. For this patch, wonder is it ok for you to manually remove the Ccs? Thanks and appreciate again for your helps.
Chin Liang
Quoted 4 lines
Quoted 2 lines
Chin Liang
Amicalement,
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Dear Chin Liang See,
Quoted 6 lines · In message <[email protected]> you wrote:
The patman script looks cool. Let me learn up this and using this when submitting future patches. At same time, sorry for the hassle as I am not aware the git send-email method not helpful for maintainer. For this patch, wonder is it ok for you to manually remove the Ccs? Thanks and appreciate again for your helps.
Patman and the Cc: in the commit message may overlap, but they may also include different lists of addresses. For documentation purposes, the Cc in the commit message are useful and should be kept. Just my $ 0.02 ...
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de On the subject of C program indentation: "In My Egotistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." - Blair P. Houghton
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Dear Wolfgang,
Quoted 10 lines · ZY - wd
Dear Chin Liang See,
Quoted 6 lines · In message <[email protected]> you wrote:
The patman script looks cool. Let me learn up this and using this when submitting future patches. At same time, sorry for the hassle as I am not aware the git send-email method not helpful for maintainer. For this patch, wonder is it ok for you to manually remove the Ccs? Thanks and appreciate again for your helps.
Quoted 5 lines
Patman and the Cc: in the commit message may overlap, but they may also include different lists of addresses. For documentation purposes, the Cc in the commit message are useful and should be kept. Just my $ 0.02 ...
Thanks for the explanation. It definitely worth more than 2 cents. :)
Chin Liang
Quoted 4 lines
Best regards,
Wolfgang Denk
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
In reply to Albert ARIBAUDDear Albert,
Quoted 6 lines · In message <20140113173924.684ce548@lilith> you wrote:
Quoted 4 lines
Actually these Cc will be helpful when using git send-email. It will auto cc to these mailing list when the patch is send out for review (instead entering the names manually every time). Thanks
That is useful to the sender, but useless to anyone else.
This is not correct. It is also an indicatioin who was explicitly addressed when the patch was submitted, so you can later still see from the commit message who was invited to commend and refrained from doing so. This may help a lot in discussions like "but I never had a chance to see this patch".
Please keep these. The are really useful.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A metaphor is like a simile.
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Hi Wolfgang,
Quoted 10 lines · ZY - wd
Dear Albert,
Quoted 6 lines · In message <20140113173924.684ce548@lilith> you wrote:
Quoted 4 lines
Actually these Cc will be helpful when using git send-email. It will auto cc to these mailing list when the patch is send out for review (instead entering the names manually every time). Thanks
That is useful to the sender, but useless to anyone else.
Quoted 7 lines
This is not correct. It is also an indicatioin who was explicitly addressed when the patch was submitted, so you can later still see from the commit message who was invited to commend and refrained from doing so. This may help a lot in discussions like "but I never had a chance to see this patch".
Please keep these. The are really useful.
I'm glad you weighed in on this. I have done this CC: field many times in patches sent to kernel.org, and have not received any feedbacks to remove it. Some patches can include quite a few entries. So I was kinda surprised to see a comment about it here on the u-boot list.
Dinh
Quoted 5 lines
Best regards,
Wolfgang Denk
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
In reply to Wolfgang DenkHi Wolfgang,
Quoted 10 lines · Wolfgang Denk
Dear Albert,
Quoted 6 lines · In message <20140113173924.684ce548@lilith> you wrote:
Quoted 4 lines
Actually these Cc will be helpful when using git send-email. It will auto cc to these mailing list when the patch is send out for review (instead entering the names manually every time). Thanks
That is useful to the sender, but useless to anyone else.
Quoted 7 lines
This is not correct. It is also an indicatioin who was explicitly addressed when the patch was submitted, so you can later still see from the commit message who was invited to commend and refrained from doing so. This may help a lot in discussions like "but I never had a chance to see this patch".
Please keep these. The are really useful.
Thanks Wolfgang. I hadn't considered this 'traceability' aspect -- I haven't been involved in enough such discussions, obviously.
Chin Liang See: apologies for the noise.
Quoted 3 lines
Best regards,
Wolfgang Denk
Amicalement,
Signature · 1 line
Albert.
[U-Boot] [OT] CC:s in commits (was: [PATCH 1/2] socfpga: Adding Scan Manager driver)
Dear Albert,
Quoted 20 lines · ZY - albert.u.boot
Hi Wolfgang,
Quoted 16 lines · Wolfgang Denk
Dear Albert,
Quoted 6 lines · In message <20140113173924.684ce548@lilith> you wrote:
Quoted 4 lines
Actually these Cc will be helpful when using git send-email. It will auto cc to these mailing list when the patch is send out for review (instead entering the names manually every time). Thanks
That is useful to the sender, but useless to anyone else.
This is not correct. It is also an indicatioin who was explicitly addressed when the patch was submitted, so you can later still see from the commit message who was invited to commend and refrained from doing so. This may help a lot in discussions like "but I never had a chance to see this patch".
Quoted 6 lines
Quoted 1 line
Please keep these. The are really useful.
Thanks Wolfgang. I hadn't considered this 'traceability' aspect -- I haven't been involved in enough such discussions, obviously.
Chin Liang See: apologies for the noise.
No worries. We learned something today :)
Chin Liang
Quoted 6 lines
Quoted 4 lines
Best regards,
Wolfgang Denk
Amicalement,