This is very much college/program specific. My tenure track wife has tried with two different different universities to get tenure credit by writing an open access text book. In both cases (R1 programs) neither would recognize anything except 1st/2nd author publications in peer reviewed journals. They would not recognize textbooks.